|
|
|
@ -12,9 +12,11 @@ import com.fr.design.layout.TableLayoutHelper;
|
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPane; |
|
|
|
|
import com.fr.design.ui.ModernUIPane; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.plugin.chart.base.AttrTooltipContent; |
|
|
|
|
import com.fr.plugin.chart.base.AttrTooltipRichText; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipFormat; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
|
import com.fr.van.chart.designer.component.format.CategoryNameFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.CategoryNameFormatPaneWithoutCheckBox; |
|
|
|
@ -604,7 +606,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
htmlLabelPane.populate(attrTooltipContent.getHtmlLabel()); |
|
|
|
|
if (!attrTooltipContent.isCommon()) { |
|
|
|
|
if (!(attrTooltipContent.isCommon() || attrTooltipContent.isRichText())) { |
|
|
|
|
setDirty(false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -683,6 +685,8 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
richText = new AttrTooltipRichText(); |
|
|
|
|
populateRichTextFormat(formatPaneGroup, formatGroup); |
|
|
|
|
populateRichText(attrTooltipContent.getRichTextAttr()); |
|
|
|
|
|
|
|
|
|
checkRichEditorState(attrTooltipContent); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void populateRichTextFormat(VanChartFormatPaneWithCheckBox[] formatPaneGroup, AttrTooltipFormat[] formatGroup) { |
|
|
|
@ -702,6 +706,14 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
protected void populateRichText(AttrTooltipRichText tooltipRichText) { |
|
|
|
|
if (tooltipRichText != null) { |
|
|
|
|
updateLocalRichText(tooltipRichText.getContent(), tooltipRichText.isAuto()); |
|
|
|
|
richText.setInitParamsContent(tooltipRichText.getInitParamsContent()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void checkRichEditorState(AttrTooltipContent attrTooltipContent) { |
|
|
|
|
if (ComparatorUtils.equals(richText.getInitParamsContent(), StringUtils.EMPTY)) { |
|
|
|
|
richText.setContent(attrTooltipContent.getRichTextDefaultContent()); |
|
|
|
|
richText.setInitParamsContent(attrTooltipContent.getRichTextDefaultParams()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -793,6 +805,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
if (attrTooltipContent != null) { |
|
|
|
|
AttrTooltipRichText tooltipRichText = attrTooltipContent.getRichTextAttr(); |
|
|
|
|
tooltipRichText.setContent(richText.getContent()); |
|
|
|
|
tooltipRichText.setInitParamsContent(richText.getInitParamsContent()); |
|
|
|
|
tooltipRichText.setAuto(richText.isAuto()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|