|
|
|
@ -24,17 +24,11 @@ import com.fr.plugin.chart.base.format.AttrTooltipValueFormat;
|
|
|
|
|
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; |
|
|
|
|
import com.fr.van.chart.designer.component.format.ChangedPercentFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.ChangedPercentFormatPaneWithoutCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.ChangedValueFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.ChangedValueFormatPaneWithoutCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.PercentFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.PercentFormatPaneWithoutCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.SeriesNameFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.SeriesNameFormatPaneWithoutCheckBox; |
|
|
|
|
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.VanChartFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichEditorModel; |
|
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichEditorPane; |
|
|
|
@ -84,13 +78,6 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
private ChangedValueFormatPaneWithCheckBox changedValueFormatPane; |
|
|
|
|
private ChangedPercentFormatPaneWithCheckBox changedPercentFormatPane; |
|
|
|
|
|
|
|
|
|
private CategoryNameFormatPaneWithoutCheckBox richTextCategoryNameFormatPane; |
|
|
|
|
private SeriesNameFormatPaneWithoutCheckBox richTextSeriesNameFormatPane; |
|
|
|
|
private ValueFormatPaneWithoutCheckBox richTextValueFormatPane; |
|
|
|
|
private PercentFormatPaneWithoutCheckBox richTextPercentFormatPane; |
|
|
|
|
private ChangedValueFormatPaneWithoutCheckBox richTextChangedValueFormatPane; |
|
|
|
|
private ChangedPercentFormatPaneWithoutCheckBox richTextChangedPercentFormatPane; |
|
|
|
|
|
|
|
|
|
private JPanel centerPanel; |
|
|
|
|
private JPanel commonPanel; |
|
|
|
|
private JPanel editorPanel; |
|
|
|
@ -118,7 +105,6 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
this.richTextTooltipContent = createAttrTooltip(); |
|
|
|
|
|
|
|
|
|
initFormatPane(parent, showOnPane); |
|
|
|
|
initRichTextFormatPane(parent, showOnPane); |
|
|
|
|
|
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
|
this.add(createLabelContentPane(), BorderLayout.CENTER); |
|
|
|
@ -184,54 +170,6 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
this.changedPercentFormatPane = changedPercentFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public CategoryNameFormatPaneWithoutCheckBox getRichTextCategoryNameFormatPane() { |
|
|
|
|
return richTextCategoryNameFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setRichTextCategoryNameFormatPane(CategoryNameFormatPaneWithoutCheckBox richTextCategoryNameFormatPane) { |
|
|
|
|
this.richTextCategoryNameFormatPane = richTextCategoryNameFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public SeriesNameFormatPaneWithoutCheckBox getRichTextSeriesNameFormatPane() { |
|
|
|
|
return richTextSeriesNameFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setRichTextSeriesNameFormatPane(SeriesNameFormatPaneWithoutCheckBox richTextSeriesNameFormatPane) { |
|
|
|
|
this.richTextSeriesNameFormatPane = richTextSeriesNameFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ValueFormatPaneWithoutCheckBox getRichTextValueFormatPane() { |
|
|
|
|
return richTextValueFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setRichTextValueFormatPane(ValueFormatPaneWithoutCheckBox richTextValueFormatPane) { |
|
|
|
|
this.richTextValueFormatPane = richTextValueFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public PercentFormatPaneWithoutCheckBox getRichTextPercentFormatPane() { |
|
|
|
|
return richTextPercentFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setRichTextPercentFormatPane(PercentFormatPaneWithoutCheckBox richTextPercentFormatPane) { |
|
|
|
|
this.richTextPercentFormatPane = richTextPercentFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ChangedValueFormatPaneWithoutCheckBox getRichTextChangedValueFormatPane() { |
|
|
|
|
return richTextChangedValueFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setRichTextChangedValueFormatPane(ChangedValueFormatPaneWithoutCheckBox richTextChangedValueFormatPane) { |
|
|
|
|
this.richTextChangedValueFormatPane = richTextChangedValueFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ChangedPercentFormatPaneWithoutCheckBox getRichTextChangedPercentFormatPane() { |
|
|
|
|
return richTextChangedPercentFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setRichTextChangedPercentFormatPane(ChangedPercentFormatPaneWithoutCheckBox richTextChangedPercentFormatPane) { |
|
|
|
|
this.richTextChangedPercentFormatPane = richTextChangedPercentFormatPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UIButtonGroup<Integer> getContent() { |
|
|
|
|
return content; |
|
|
|
|
} |
|
|
|
@ -558,13 +496,6 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
percentFormatPane = new PercentFormatPaneWithCheckBox(parent, showOnPane); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void initRichTextFormatPane(VanChartStylePane parent, JPanel showOnPane) { |
|
|
|
|
richTextCategoryNameFormatPane = new CategoryNameFormatPaneWithoutCheckBox(parent, showOnPane); |
|
|
|
|
richTextSeriesNameFormatPane = new SeriesNameFormatPaneWithoutCheckBox(parent, showOnPane); |
|
|
|
|
richTextValueFormatPane = new ValueFormatPaneWithoutCheckBox(parent, showOnPane); |
|
|
|
|
richTextPercentFormatPane = new PercentFormatPaneWithoutCheckBox(parent, showOnPane); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected JPanel createTableLayoutPaneWithTitle(String title, JPanel panel) { |
|
|
|
|
return TableLayout4VanChartHelper.createExpandablePaneWithTitle(title, panel); |
|
|
|
|
} |
|
|
|
@ -582,15 +513,6 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Component[][] getRichTextComponents() { |
|
|
|
|
return new Component[][]{ |
|
|
|
|
new Component[]{richTextCategoryNameFormatPane, null}, |
|
|
|
|
new Component[]{richTextSeriesNameFormatPane, null}, |
|
|
|
|
new Component[]{richTextValueFormatPane, null}, |
|
|
|
|
new Component[]{richTextPercentFormatPane, null}, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initContentListener() { |
|
|
|
|
content.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
@ -863,27 +785,6 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void updateRichEditor(AttrTooltipContent attrTooltipContent) { |
|
|
|
|
if (richTextCategoryNameFormatPane != null) { |
|
|
|
|
richTextCategoryNameFormatPane.update(attrTooltipContent.getRichTextCategoryFormat()); |
|
|
|
|
} |
|
|
|
|
if (richTextSeriesNameFormatPane != null) { |
|
|
|
|
richTextSeriesNameFormatPane.update(attrTooltipContent.getRichTextSeriesFormat()); |
|
|
|
|
} |
|
|
|
|
if (richTextValueFormatPane != null) { |
|
|
|
|
richTextValueFormatPane.update(attrTooltipContent.getRichTextValueFormat()); |
|
|
|
|
} |
|
|
|
|
if (richTextPercentFormatPane != null) { |
|
|
|
|
richTextPercentFormatPane.update(attrTooltipContent.getRichTextPercentFormat()); |
|
|
|
|
} |
|
|
|
|
if (richTextChangedValueFormatPane != null) { |
|
|
|
|
richTextChangedValueFormatPane.update(attrTooltipContent.getRichTextChangedValueFormat()); |
|
|
|
|
} |
|
|
|
|
if (richTextChangedPercentFormatPane != null) { |
|
|
|
|
richTextChangedPercentFormatPane.update(attrTooltipContent.getRichTextChangedPercentFormat()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void updateTooltipFormat(AttrTooltipContent target, AttrTooltipContent source) { |
|
|
|
|
if (target == null || source == null) { |
|
|
|
|
return; |
|
|
|
|