|
|
|
@ -1,19 +1,36 @@
|
|
|
|
|
package com.fr.van.chart.box; |
|
|
|
|
|
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.plugin.chart.base.AttrTooltipContent; |
|
|
|
|
import com.fr.plugin.chart.base.AttrTooltipRichText; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipCategoryFormat; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipDataMaxFormat; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipDataMedianFormat; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipDataMinFormat; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipDataNumberFormat; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipDataOutlierFormat; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipDataQ1Format; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipDataQ3Format; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipFormat; |
|
|
|
|
import com.fr.plugin.chart.base.format.AttrTooltipSeriesFormat; |
|
|
|
|
import com.fr.plugin.chart.box.attr.AttrBoxTooltipContent; |
|
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
|
import com.fr.van.chart.designer.component.VanChartTooltipContentPane; |
|
|
|
|
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.SeriesNameFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.SeriesNameFormatPaneWithoutCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.VanChartFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.VanChartFormatPaneWithoutCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.style.VanChartStylePane; |
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane { |
|
|
|
|
|
|
|
|
@ -27,17 +44,28 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
private VanChartFormatPaneWithCheckBox min; |
|
|
|
|
private VanChartFormatPaneWithCheckBox outlier; |
|
|
|
|
|
|
|
|
|
private VanChartFormatPaneWithoutCheckBox richTextNumber; |
|
|
|
|
private VanChartFormatPaneWithoutCheckBox richTextMax; |
|
|
|
|
private VanChartFormatPaneWithoutCheckBox richTextQ3; |
|
|
|
|
private VanChartFormatPaneWithoutCheckBox richTextMedian; |
|
|
|
|
private VanChartFormatPaneWithoutCheckBox richTextQ1; |
|
|
|
|
private VanChartFormatPaneWithoutCheckBox richTextMin; |
|
|
|
|
private VanChartFormatPaneWithoutCheckBox richTextOutlier; |
|
|
|
|
|
|
|
|
|
private JPanel dataNumberPane; |
|
|
|
|
private JPanel dataOutlierPane; |
|
|
|
|
|
|
|
|
|
private JPanel richTextNumberPane; |
|
|
|
|
private JPanel richTextOutlierPane; |
|
|
|
|
|
|
|
|
|
public VanChartBoxTooltipContentPane(VanChartStylePane parent, JPanel showOnPane, boolean isDetailed) { |
|
|
|
|
super(parent, showOnPane); |
|
|
|
|
checkFormatVisible(isDetailed); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void initFormatPane(VanChartStylePane parent, JPanel showOnPane) { |
|
|
|
|
categoryNameFormatPane = new CategoryNameFormatPaneWithCheckBox(parent, showOnPane); |
|
|
|
|
seriesNameFormatPane = new SeriesNameFormatPaneWithCheckBox(parent, showOnPane); |
|
|
|
|
setCategoryNameFormatPane(new CategoryNameFormatPaneWithCheckBox(parent, showOnPane)); |
|
|
|
|
setSeriesNameFormatPane(new SeriesNameFormatPaneWithCheckBox(parent, showOnPane)); |
|
|
|
|
|
|
|
|
|
number = new VanChartFormatPaneWithCheckBox(parent, showOnPane) { |
|
|
|
|
protected String getCheckBoxText() { |
|
|
|
@ -76,7 +104,48 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected JPanel createCommonPanel() { |
|
|
|
|
protected void initRichTextFormatPane(VanChartStylePane parent, JPanel showOnPane) { |
|
|
|
|
setRichTextCategoryNameFormatPane(new CategoryNameFormatPaneWithoutCheckBox(parent, showOnPane)); |
|
|
|
|
setRichTextSeriesNameFormatPane(new SeriesNameFormatPaneWithoutCheckBox(parent, showOnPane)); |
|
|
|
|
|
|
|
|
|
richTextNumber = new VanChartFormatPaneWithoutCheckBox(parent, showOnPane) { |
|
|
|
|
protected String getCheckBoxText() { |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_Data_Number"); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
richTextMax = new VanChartFormatPaneWithoutCheckBox(parent, showOnPane) { |
|
|
|
|
protected String getCheckBoxText() { |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_Max_Value"); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
richTextQ3 = new VanChartFormatPaneWithoutCheckBox(parent, showOnPane) { |
|
|
|
|
protected String getCheckBoxText() { |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_Data_Q3"); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
richTextMedian = new VanChartFormatPaneWithoutCheckBox(parent, showOnPane) { |
|
|
|
|
protected String getCheckBoxText() { |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_Data_Median"); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
richTextQ1 = new VanChartFormatPaneWithoutCheckBox(parent, showOnPane) { |
|
|
|
|
protected String getCheckBoxText() { |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_Data_Q1"); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
richTextMin = new VanChartFormatPaneWithoutCheckBox(parent, showOnPane) { |
|
|
|
|
protected String getCheckBoxText() { |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_Min_Value"); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
richTextOutlier = new VanChartFormatPaneWithoutCheckBox(parent, showOnPane) { |
|
|
|
|
protected String getCheckBoxText() { |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_Outlier_Value"); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected JPanel createCommonFormatPanel() { |
|
|
|
|
JPanel commonPanel = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
|
|
commonPanel.add(createCateAndSeriesPane(), BorderLayout.NORTH); |
|
|
|
@ -86,6 +155,30 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
return commonPanel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected JPanel createRichFormatPanel() { |
|
|
|
|
JPanel richFormatPanel = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
|
|
richFormatPanel.add(createRichTextCateAndSeriesPane(), BorderLayout.NORTH); |
|
|
|
|
richFormatPanel.add(createRichTextDataNumberPane(), BorderLayout.CENTER); |
|
|
|
|
richFormatPanel.add(createRichTextDataDetailPane(), BorderLayout.SOUTH); |
|
|
|
|
|
|
|
|
|
return richFormatPanel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Component[][] getRichTextComponents() { |
|
|
|
|
return new Component[][]{ |
|
|
|
|
new Component[]{getRichTextCategoryNameFormatPane(), null}, |
|
|
|
|
new Component[]{getRichTextSeriesNameFormatPane(), null}, |
|
|
|
|
new Component[]{richTextNumber, null}, |
|
|
|
|
new Component[]{richTextMax, null}, |
|
|
|
|
new Component[]{richTextQ3, null}, |
|
|
|
|
new Component[]{richTextMedian, null}, |
|
|
|
|
new Component[]{richTextQ1, null}, |
|
|
|
|
new Component[]{richTextMin, null}, |
|
|
|
|
new Component[]{richTextOutlier, null} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected double[] getRowSize(double p) { |
|
|
|
|
return new double[]{p, p, p, p, p, p, p, p, p, p, p, p}; |
|
|
|
|
} |
|
|
|
@ -93,13 +186,15 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
private JPanel createCateAndSeriesPane() { |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; |
|
|
|
|
|
|
|
|
|
double[] columnSize = {f, p}; |
|
|
|
|
double[] rowSize = {p, p}; |
|
|
|
|
double[] columnSize = {f, e}; |
|
|
|
|
double[] rowSize = {p, p, p}; |
|
|
|
|
|
|
|
|
|
Component[][] cateAndSeries = new Component[][]{ |
|
|
|
|
new Component[]{categoryNameFormatPane, null}, |
|
|
|
|
new Component[]{seriesNameFormatPane, null} |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{null, getCategoryNameFormatPane()}, |
|
|
|
|
new Component[]{null, getSeriesNameFormatPane()} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
return TableLayoutHelper.createTableLayoutPane(cateAndSeries, rowSize, columnSize); |
|
|
|
@ -108,13 +203,14 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
private JPanel createDataNumberPane() { |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; |
|
|
|
|
|
|
|
|
|
double[] columnSize = {f, p}; |
|
|
|
|
double[] columnSize = {f, e}; |
|
|
|
|
double[] rowSize = {p, p}; |
|
|
|
|
|
|
|
|
|
Component[][] dataNumber = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{number, null}, |
|
|
|
|
new Component[]{null, number}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
dataNumberPane = TableLayoutHelper.createTableLayoutPane(dataNumber, rowSize, columnSize); |
|
|
|
@ -125,22 +221,24 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
private JPanel createDataDetailPane() { |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double[] columnSize = {f, p}; |
|
|
|
|
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; |
|
|
|
|
|
|
|
|
|
double[] columnSize = {f, e}; |
|
|
|
|
|
|
|
|
|
JPanel detailPane = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
|
|
Component[][] dataDetail = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{max, null}, |
|
|
|
|
new Component[]{q3, null}, |
|
|
|
|
new Component[]{median, null}, |
|
|
|
|
new Component[]{q1, null}, |
|
|
|
|
new Component[]{min, null} |
|
|
|
|
new Component[]{null, max}, |
|
|
|
|
new Component[]{new UILabel(getLabelContentTitle()), q3}, |
|
|
|
|
new Component[]{null, median}, |
|
|
|
|
new Component[]{null, q1}, |
|
|
|
|
new Component[]{null, min} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Component[][] dataOutlier = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{outlier, null}, |
|
|
|
|
new Component[]{null, outlier}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
dataOutlierPane = TableLayoutHelper.createTableLayoutPane(dataOutlier, new double[]{p, p}, columnSize); |
|
|
|
@ -151,9 +249,75 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
return detailPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel createRichTextCateAndSeriesPane() { |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; |
|
|
|
|
|
|
|
|
|
double[] columnSize = {f, e}; |
|
|
|
|
double[] rowSize = {p, p, p}; |
|
|
|
|
|
|
|
|
|
Component[][] cateAndSeries = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{null, getRichTextCategoryNameFormatPane()}, |
|
|
|
|
new Component[]{null, getRichTextSeriesNameFormatPane()} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
return TableLayoutHelper.createTableLayoutPane(cateAndSeries, rowSize, columnSize); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel createRichTextDataNumberPane() { |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; |
|
|
|
|
|
|
|
|
|
double[] columnSize = {f, e}; |
|
|
|
|
double[] rowSize = {p, p}; |
|
|
|
|
|
|
|
|
|
Component[][] dataNumber = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{null, richTextNumber}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
richTextNumberPane = TableLayoutHelper.createTableLayoutPane(dataNumber, rowSize, columnSize); |
|
|
|
|
|
|
|
|
|
return richTextNumberPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel createRichTextDataDetailPane() { |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; |
|
|
|
|
|
|
|
|
|
double[] columnSize = {f, e}; |
|
|
|
|
|
|
|
|
|
JPanel detailPane = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
|
|
Component[][] richTextDetail = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{null, richTextMax}, |
|
|
|
|
new Component[]{new UILabel(getLabelContentTitle()), richTextQ3}, |
|
|
|
|
new Component[]{null, richTextMedian}, |
|
|
|
|
new Component[]{null, richTextQ1}, |
|
|
|
|
new Component[]{null, richTextMin} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Component[][] dataOutlier = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{null, richTextOutlier}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
richTextOutlierPane = TableLayoutHelper.createTableLayoutPane(dataOutlier, new double[]{p, p}, columnSize); |
|
|
|
|
|
|
|
|
|
detailPane.add(TableLayoutHelper.createTableLayoutPane(richTextDetail, new double[]{p, p, p, p, p, p}, columnSize), BorderLayout.NORTH); |
|
|
|
|
detailPane.add(richTextOutlierPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
return detailPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isDirty() { |
|
|
|
|
return categoryNameFormatPane.isDirty() |
|
|
|
|
|| seriesNameFormatPane.isDirty() |
|
|
|
|
return getCategoryNameFormatPane().isDirty() |
|
|
|
|
|| getSeriesNameFormatPane().isDirty() |
|
|
|
|
|| number.isDirty() |
|
|
|
|
|| max.isDirty() |
|
|
|
|
|| q3.isDirty() |
|
|
|
@ -164,8 +328,8 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setDirty(boolean isDirty) { |
|
|
|
|
categoryNameFormatPane.setDirty(isDirty); |
|
|
|
|
seriesNameFormatPane.setDirty(isDirty); |
|
|
|
|
getCategoryNameFormatPane().setDirty(isDirty); |
|
|
|
|
getSeriesNameFormatPane().setDirty(isDirty); |
|
|
|
|
number.setDirty(isDirty); |
|
|
|
|
max.setDirty(isDirty); |
|
|
|
|
q3.setDirty(isDirty); |
|
|
|
@ -180,8 +344,8 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void populateFormatPane(AttrTooltipContent attrTooltipContent) { |
|
|
|
|
categoryNameFormatPane.populate(attrTooltipContent.getCategoryFormat()); |
|
|
|
|
seriesNameFormatPane.populate(attrTooltipContent.getSeriesFormat()); |
|
|
|
|
getCategoryNameFormatPane().populate(attrTooltipContent.getCategoryFormat()); |
|
|
|
|
getSeriesNameFormatPane().populate(attrTooltipContent.getSeriesFormat()); |
|
|
|
|
|
|
|
|
|
if (attrTooltipContent instanceof AttrBoxTooltipContent) { |
|
|
|
|
AttrBoxTooltipContent boxTooltipContent = (AttrBoxTooltipContent) attrTooltipContent; |
|
|
|
@ -198,9 +362,68 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void populateRichEditor(AttrTooltipContent attrTooltipContent) { |
|
|
|
|
setRichTextAttr(new AttrTooltipRichText()); |
|
|
|
|
Map<String, String> params = getRichTextAttr().getParams(); |
|
|
|
|
|
|
|
|
|
AttrTooltipCategoryFormat categoryFormat = attrTooltipContent.getRichTextCategoryFormat(); |
|
|
|
|
getRichTextCategoryNameFormatPane().populate(categoryFormat); |
|
|
|
|
getRichTextCategoryNameFormatPane().updateFormatParams(params, categoryFormat.getJs()); |
|
|
|
|
|
|
|
|
|
AttrTooltipSeriesFormat seriesFormat = attrTooltipContent.getRichTextSeriesFormat(); |
|
|
|
|
getRichTextSeriesNameFormatPane().populate(seriesFormat); |
|
|
|
|
getRichTextSeriesNameFormatPane().updateFormatParams(params, seriesFormat.getJs()); |
|
|
|
|
|
|
|
|
|
if (attrTooltipContent instanceof AttrBoxTooltipContent) { |
|
|
|
|
AttrBoxTooltipContent boxTooltipContent = (AttrBoxTooltipContent) attrTooltipContent; |
|
|
|
|
|
|
|
|
|
VanChartFormatPaneWithoutCheckBox[] formatPaneGroup = getFormatPaneGroup(); |
|
|
|
|
AttrTooltipFormat[] formatGroup = getFormatGroup(boxTooltipContent); |
|
|
|
|
|
|
|
|
|
populateRichTextFormat(formatPaneGroup, formatGroup); |
|
|
|
|
populateRichText(attrTooltipContent.getRichTextAttr()); |
|
|
|
|
|
|
|
|
|
checkRichEditorState(attrTooltipContent); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private VanChartFormatPaneWithoutCheckBox[] getFormatPaneGroup() { |
|
|
|
|
if (detailed) { |
|
|
|
|
return new VanChartFormatPaneWithoutCheckBox[]{ |
|
|
|
|
richTextNumber, richTextMax, richTextQ3, richTextMedian, |
|
|
|
|
richTextQ1, richTextMin, richTextOutlier |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return new VanChartFormatPaneWithoutCheckBox[]{ |
|
|
|
|
richTextMax, richTextQ3, richTextMedian, richTextQ1, richTextMin |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private AttrTooltipFormat[] getFormatGroup(AttrBoxTooltipContent boxTooltipContent) { |
|
|
|
|
AttrTooltipDataNumberFormat richTextNumber = boxTooltipContent.getRichTextNumber(); |
|
|
|
|
AttrTooltipDataMaxFormat richTextMaxFormat = boxTooltipContent.getRichTextMax(); |
|
|
|
|
AttrTooltipDataQ3Format richTextQ3Format = boxTooltipContent.getRichTextQ3(); |
|
|
|
|
AttrTooltipDataMedianFormat richTextMedianFormat = boxTooltipContent.getRichTextMedian(); |
|
|
|
|
AttrTooltipDataQ1Format richTextQ1Format = boxTooltipContent.getRichTextQ1(); |
|
|
|
|
AttrTooltipDataMinFormat richTextMinFormat = boxTooltipContent.getRichTextMin(); |
|
|
|
|
AttrTooltipDataOutlierFormat richTextOutlierFormat = boxTooltipContent.getRichTextOutlier(); |
|
|
|
|
|
|
|
|
|
if (detailed) { |
|
|
|
|
return new AttrTooltipFormat[]{ |
|
|
|
|
richTextNumber, richTextMaxFormat, richTextQ3Format, richTextMedianFormat, |
|
|
|
|
richTextQ1Format, richTextMinFormat, richTextOutlierFormat |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return new AttrTooltipFormat[]{ |
|
|
|
|
richTextMaxFormat, richTextQ3Format, richTextMedianFormat, richTextQ1Format, richTextMinFormat |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void updateFormatPane(AttrTooltipContent attrTooltipContent) { |
|
|
|
|
categoryNameFormatPane.update(attrTooltipContent.getCategoryFormat()); |
|
|
|
|
seriesNameFormatPane.update(attrTooltipContent.getSeriesFormat()); |
|
|
|
|
getCategoryNameFormatPane().update(attrTooltipContent.getCategoryFormat()); |
|
|
|
|
getSeriesNameFormatPane().update(attrTooltipContent.getSeriesFormat()); |
|
|
|
|
|
|
|
|
|
if (attrTooltipContent instanceof AttrBoxTooltipContent) { |
|
|
|
|
AttrBoxTooltipContent boxTooltipContent = (AttrBoxTooltipContent) attrTooltipContent; |
|
|
|
@ -217,10 +440,30 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void updateRichEditor(AttrTooltipContent attrTooltipContent) { |
|
|
|
|
getRichTextCategoryNameFormatPane().update(attrTooltipContent.getRichTextCategoryFormat()); |
|
|
|
|
getRichTextSeriesNameFormatPane().update(attrTooltipContent.getRichTextSeriesFormat()); |
|
|
|
|
|
|
|
|
|
if (attrTooltipContent instanceof AttrBoxTooltipContent) { |
|
|
|
|
AttrBoxTooltipContent boxTooltipContent = (AttrBoxTooltipContent) attrTooltipContent; |
|
|
|
|
|
|
|
|
|
richTextNumber.update(boxTooltipContent.getRichTextNumber()); |
|
|
|
|
richTextMax.update(boxTooltipContent.getRichTextMax()); |
|
|
|
|
richTextQ3.update(boxTooltipContent.getRichTextQ3()); |
|
|
|
|
richTextMedian.update(boxTooltipContent.getRichTextMedian()); |
|
|
|
|
richTextQ1.update(boxTooltipContent.getRichTextQ1()); |
|
|
|
|
richTextMin.update(boxTooltipContent.getRichTextMin()); |
|
|
|
|
richTextOutlier.update(boxTooltipContent.getRichTextOutlier()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void checkFormatVisible(boolean detailed) { |
|
|
|
|
this.detailed = detailed; |
|
|
|
|
|
|
|
|
|
dataNumberPane.setVisible(detailed); |
|
|
|
|
dataOutlierPane.setVisible(detailed); |
|
|
|
|
|
|
|
|
|
richTextNumberPane.setVisible(detailed); |
|
|
|
|
richTextOutlierPane.setVisible(detailed); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|