|
|
@ -232,7 +232,14 @@ public class XChartEditor extends XBorderStyleWidgetCreator { |
|
|
|
Dimension size = getSize(); |
|
|
|
Dimension size = getSize(); |
|
|
|
PaddingMargin margin = toData().getMargin(); |
|
|
|
PaddingMargin margin = toData().getMargin(); |
|
|
|
|
|
|
|
|
|
|
|
designerEditor.paintEditor(g, size, margin); |
|
|
|
if (!isEditing) { |
|
|
|
|
|
|
|
// CHART-20568 & CHART-20627
|
|
|
|
|
|
|
|
// EditingMouseListener#startEditing会将图表的ChartComponent放入FormDesigner, 作为编辑中的ChartComponent来显示,
|
|
|
|
|
|
|
|
// 同时这里又在下层绘制了一遍ChartComponent,导致图表进入编辑状态,会出现两个重叠的ChartComponent。
|
|
|
|
|
|
|
|
// 考虑到编辑中,FormDesigner中的ChartComponent位于上层,下层的ChartComponent实际上没什么用,所以可以不用绘制
|
|
|
|
|
|
|
|
// 下层的ChartComponent
|
|
|
|
|
|
|
|
designerEditor.paintEditor(g, size, margin); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (coverPanel != null) { |
|
|
|
if (coverPanel != null) { |
|
|
|
int horizonMargin = margin != null ? margin.getLeft() + margin.getRight() : 0; |
|
|
|
int horizonMargin = margin != null ? margin.getLeft() + margin.getRight() : 0; |
|
|
|