|
|
@ -92,7 +92,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
|
|
|
|
|
|
|
|
private AttrTooltipRichText richText; |
|
|
|
private AttrTooltipRichText richText; |
|
|
|
|
|
|
|
|
|
|
|
public VanChartTooltipContentPane(VanChartStylePane parent, JPanel showOnPane){ |
|
|
|
public VanChartTooltipContentPane(VanChartStylePane parent, JPanel showOnPane) { |
|
|
|
this.parent = parent; |
|
|
|
this.parent = parent; |
|
|
|
this.showOnPane = showOnPane; |
|
|
|
this.showOnPane = showOnPane; |
|
|
|
this.richText = new AttrTooltipRichText(); |
|
|
|
this.richText = new AttrTooltipRichText(); |
|
|
@ -101,7 +101,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
initRichTextFormatPane(parent, showOnPane); |
|
|
|
initRichTextFormatPane(parent, showOnPane); |
|
|
|
|
|
|
|
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.add(createLabelContentPane(),BorderLayout.CENTER); |
|
|
|
this.add(createLabelContentPane(), BorderLayout.CENTER); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public CategoryNameFormatPaneWithCheckBox getCategoryNameFormatPane() { |
|
|
|
public CategoryNameFormatPaneWithCheckBox getCategoryNameFormatPane() { |
|
|
@ -330,7 +330,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
return TableLayoutHelper.createTableLayoutPane(components, new double[]{p, p}, new double[]{f, e}); |
|
|
|
return TableLayoutHelper.createTableLayoutPane(components, new double[]{p, p}, new double[]{f, e}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createCommonStylePane() { |
|
|
|
protected JPanel createCommonStylePane() { |
|
|
|
styleButton = new UIButtonGroup<>(new String[]{ |
|
|
|
styleButton = new UIButtonGroup<>(new String[]{ |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Automatic"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Automatic"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Custom") |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Custom") |
|
|
@ -474,8 +474,8 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
return TableLayout4VanChartHelper.createExpandablePaneWithTitle(title, panel); |
|
|
|
return TableLayout4VanChartHelper.createExpandablePaneWithTitle(title, panel); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected double[] getRowSize(double p){ |
|
|
|
protected double[] getRowSize(double p) { |
|
|
|
return new double[]{p,p,p,p}; |
|
|
|
return new double[]{p, p, p, p}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected Component[][] getPaneComponents() { |
|
|
|
protected Component[][] getPaneComponents() { |
|
|
@ -500,7 +500,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
content.addActionListener(new ActionListener() { |
|
|
|
content.addActionListener(new ActionListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
checkCardPane(); |
|
|
|
checkCardPane(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -584,8 +584,8 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void populateBean(AttrTooltipContent attrTooltipContent){ |
|
|
|
public void populateBean(AttrTooltipContent attrTooltipContent) { |
|
|
|
if(attrTooltipContent == null){ |
|
|
|
if (attrTooltipContent == null) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -604,7 +604,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
htmlLabelPane.populate(attrTooltipContent.getHtmlLabel()); |
|
|
|
htmlLabelPane.populate(attrTooltipContent.getHtmlLabel()); |
|
|
|
if(!attrTooltipContent.isCommon()){ |
|
|
|
if (!attrTooltipContent.isCommon()) { |
|
|
|
setDirty(false); |
|
|
|
setDirty(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -801,9 +801,10 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
* CHART-1295 |
|
|
|
* CHART-1295 |
|
|
|
* 通过格式的面板宽度来判断在自定义js代码中是否显示this.seriesName字符串。 |
|
|
|
* 通过格式的面板宽度来判断在自定义js代码中是否显示this.seriesName字符串。 |
|
|
|
* 图表对于其他的格式有要求也可以在这里继续添加。 |
|
|
|
* 图表对于其他的格式有要求也可以在这里继续添加。 |
|
|
|
|
|
|
|
* |
|
|
|
* @param attrTooltipContent |
|
|
|
* @param attrTooltipContent |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void updateFormatsWithPaneWidth (AttrTooltipContent attrTooltipContent) { |
|
|
|
private void updateFormatsWithPaneWidth(AttrTooltipContent attrTooltipContent) { |
|
|
|
int paneWidth = seriesNameFormatPane.getWidth(); |
|
|
|
int paneWidth = seriesNameFormatPane.getWidth(); |
|
|
|
if (paneWidth == 0) { |
|
|
|
if (paneWidth == 0) { |
|
|
|
attrTooltipContent.getSeriesFormat().setEnable(false); |
|
|
|
attrTooltipContent.getSeriesFormat().setEnable(false); |
|
|
|