|
|
|
@ -7,6 +7,13 @@ 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; |
|
|
|
@ -370,26 +377,48 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
if (attrTooltipContent instanceof AttrBoxTooltipContent) { |
|
|
|
|
AttrBoxTooltipContent boxTooltipContent = (AttrBoxTooltipContent) attrTooltipContent; |
|
|
|
|
|
|
|
|
|
VanChartFormatPaneWithoutCheckBox[] formatPaneGroup = new VanChartFormatPaneWithoutCheckBox[]{ |
|
|
|
|
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 |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
AttrTooltipFormat[] formatGroup = new AttrTooltipFormat[]{ |
|
|
|
|
boxTooltipContent.getRichTextNumber(), |
|
|
|
|
boxTooltipContent.getRichTextMax(), |
|
|
|
|
boxTooltipContent.getRichTextQ3(), |
|
|
|
|
boxTooltipContent.getRichTextMedian(), |
|
|
|
|
boxTooltipContent.getRichTextQ1(), |
|
|
|
|
boxTooltipContent.getRichTextMin(), |
|
|
|
|
boxTooltipContent.getRichTextOutlier() |
|
|
|
|
return new VanChartFormatPaneWithoutCheckBox[]{ |
|
|
|
|
richTextMax, richTextQ3, richTextMedian, richTextQ1, richTextMin |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
populateRichTextFormat(formatPaneGroup, formatGroup); |
|
|
|
|
populateRichText(attrTooltipContent.getRichTextAttr()); |
|
|
|
|
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(); |
|
|
|
|
|
|
|
|
|
checkRichEditorState(attrTooltipContent); |
|
|
|
|
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) { |
|
|
|
|