|
|
@ -36,7 +36,6 @@ import com.fr.van.chart.designer.component.format.SeriesNameFormatPaneWithoutChe |
|
|
|
import com.fr.van.chart.designer.component.format.ValueFormatPaneWithCheckBox; |
|
|
|
import com.fr.van.chart.designer.component.format.ValueFormatPaneWithCheckBox; |
|
|
|
import com.fr.van.chart.designer.component.format.ValueFormatPaneWithoutCheckBox; |
|
|
|
import com.fr.van.chart.designer.component.format.ValueFormatPaneWithoutCheckBox; |
|
|
|
import com.fr.van.chart.designer.component.format.VanChartFormatPaneWithCheckBox; |
|
|
|
import com.fr.van.chart.designer.component.format.VanChartFormatPaneWithCheckBox; |
|
|
|
import com.fr.van.chart.designer.component.format.VanChartFormatPaneWithoutCheckBox; |
|
|
|
|
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichEditorModel; |
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichEditorModel; |
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichEditorPane; |
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichEditorPane; |
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichTextDialog; |
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichTextDialog; |
|
|
@ -445,7 +444,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
AttrTooltipRichText richText = this.richTextTooltipContent.getRichTextAttr(); |
|
|
|
AttrTooltipRichText richText = this.richTextTooltipContent.getRichTextAttr(); |
|
|
|
|
|
|
|
|
|
|
|
ModernUIPane<VanChartRichEditorModel> richEditorPane = VanChartRichEditorPane.createRichEditorPane(richText); |
|
|
|
ModernUIPane<VanChartRichEditorModel> richEditorPane = VanChartRichEditorPane.createRichEditorPane(richText); |
|
|
|
VanChartRichTextPane richTextPane = this.createRichTextPane(getTableFieldNames(), richEditorPane); |
|
|
|
VanChartRichTextPane richTextPane = this.createRichTextPane(richEditorPane); |
|
|
|
|
|
|
|
|
|
|
|
BasicDialog richTextDialog = new VanChartRichTextDialog(DesignerContext.getDesignerFrame(), richTextPane); |
|
|
|
BasicDialog richTextDialog = new VanChartRichTextDialog(DesignerContext.getDesignerFrame(), richTextPane); |
|
|
|
|
|
|
|
|
|
|
@ -483,19 +482,11 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private List<String> getTableFieldNames() { |
|
|
|
protected VanChartRichTextPane createRichTextPane(ModernUIPane<VanChartRichEditorModel> richEditorPane) { |
|
|
|
if (parent == null) { |
|
|
|
return new VanChartRichTextPane(richEditorPane); |
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return parent.getDataModelColumnNames(); |
|
|
|
protected void refreshRichTextParams(AttrTooltipRichText richText) { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected VanChartRichTextPane createRichTextPane(List<String> tableFieldNames, ModernUIPane<VanChartRichEditorModel> richEditorPane) { |
|
|
|
|
|
|
|
return new VanChartRichTextPane(tableFieldNames, richEditorPane); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected void refreshRichTextFormat(AttrTooltipRichText richText) { |
|
|
|
|
|
|
|
String[] fieldNames = new String[]{ |
|
|
|
String[] fieldNames = new String[]{ |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Category_Use_Name"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Category_Use_Name"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Series_Name"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Series_Name"), |
|
|
@ -516,7 +507,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
params.put(fieldNames[i], fieldFormats[i].getJs()); |
|
|
|
params.put(fieldNames[i], fieldFormats[i].getJs()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
List<String> tableFieldNames = this.getTableFieldNames(); |
|
|
|
List<String> tableFieldNames = VanChartRichEditorPane.getFieldNames(); |
|
|
|
|
|
|
|
|
|
|
|
if (tableFieldNames != null) { |
|
|
|
if (tableFieldNames != null) { |
|
|
|
for (String fieldName : tableFieldNames) { |
|
|
|
for (String fieldName : tableFieldNames) { |
|
|
@ -757,30 +748,13 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void populateRichEditor(AttrTooltipContent attrTooltipContent) { |
|
|
|
protected void populateRichEditor(AttrTooltipContent attrTooltipContent) { |
|
|
|
VanChartFormatPaneWithoutCheckBox[] formatPaneGroup = new VanChartFormatPaneWithoutCheckBox[]{ |
|
|
|
if (parent != null) { |
|
|
|
richTextCategoryNameFormatPane, |
|
|
|
parent.refreshTableFieldNames(); |
|
|
|
richTextSeriesNameFormatPane, |
|
|
|
} |
|
|
|
richTextValueFormatPane, |
|
|
|
|
|
|
|
richTextPercentFormatPane, |
|
|
|
|
|
|
|
richTextChangedValueFormatPane, |
|
|
|
|
|
|
|
richTextChangedPercentFormatPane |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AttrTooltipFormat[] formatGroup = new AttrTooltipFormat[]{ |
|
|
|
|
|
|
|
attrTooltipContent.getRichTextCategoryFormat(), |
|
|
|
|
|
|
|
attrTooltipContent.getRichTextSeriesFormat(), |
|
|
|
|
|
|
|
attrTooltipContent.getRichTextValueFormat(), |
|
|
|
|
|
|
|
attrTooltipContent.getRichTextPercentFormat(), |
|
|
|
|
|
|
|
attrTooltipContent.getRichTextChangedValueFormat(), |
|
|
|
|
|
|
|
attrTooltipContent.getRichTextChangedPercentFormat() |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateTooltipFormat(richTextTooltipContent, attrTooltipContent); |
|
|
|
updateTooltipFormat(richTextTooltipContent, attrTooltipContent); |
|
|
|
// populateRichTextFormat(richTextTooltipContent.getRichTextAttr());
|
|
|
|
refreshRichTextParams(richTextTooltipContent.getRichTextAttr()); |
|
|
|
refreshRichTextFormat(richTextTooltipContent.getRichTextAttr()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
populateRichText(attrTooltipContent.getRichTextAttr()); |
|
|
|
populateRichText(attrTooltipContent.getRichTextAttr()); |
|
|
|
|
|
|
|
|
|
|
|
checkRichEditorState(attrTooltipContent); |
|
|
|
checkRichEditorState(attrTooltipContent); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|