Browse Source

CHART-15510 toJSON

feature/big-screen
Qinghui.Liu 4 years ago
parent
commit
a1b9c0bcf4
  1. 16
      designer-chart/src/main/java/com/fr/van/chart/designer/component/VanChartTooltipContentPane.java

16
designer-chart/src/main/java/com/fr/van/chart/designer/component/VanChartTooltipContentPane.java

@ -159,14 +159,14 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
Component[][] components = new Component[][]{
new Component[]{null, null},
new Component[]{null, createContentStylePane()}
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Content_Style")), createContentStylePane()}
};
return TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize);
}
private JComponent createContentStylePane() {
UIButton contentTextArea = new UIButton(Toolkit.i18nText("Fine-Design_Chart_Content_Style"));
UIButton contentTextArea = new UIButton(Toolkit.i18nText("Fine-Design_Report_RichTextEditor"));
contentTextArea.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
@ -395,6 +395,14 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
return;
}
VanChartFormatPaneWithCheckBox[] formatPaneGroup = getFormatPaneGroup();
for (VanChartFormatPaneWithCheckBox formatPane : formatPaneGroup) {
if (formatPane != null) {
formatPane.setSelected(false);
}
}
for (String param : params) {
VanChartFormatPaneWithCheckBox formatPane = getTargetFormatPane(param);
@ -450,7 +458,9 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
private void updateTooltipRichText(AttrTooltipContent attrTooltipContent) {
try {
if (attrTooltipContent != null) {
attrTooltipContent.setRichText((AttrTooltipRichText) richText.clone());
AttrTooltipRichText tooltipRichText = attrTooltipContent.getRichText();
tooltipRichText.setContent(richText.getContent());
tooltipRichText.setAuto(richText.isAuto());
}
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);

Loading…
Cancel
Save