|
|
@ -231,7 +231,9 @@ public class XChartEditor extends XBorderStyleWidgetCreator { |
|
|
|
public void paintForeground(Graphics2D g) { |
|
|
|
public void paintForeground(Graphics2D g) { |
|
|
|
Dimension size = getSize(); |
|
|
|
Dimension size = getSize(); |
|
|
|
PaddingMargin margin = toData().getMargin(); |
|
|
|
PaddingMargin margin = toData().getMargin(); |
|
|
|
|
|
|
|
|
|
|
|
designerEditor.paintEditor(g, size, margin); |
|
|
|
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; |
|
|
|
int verticalMargin = margin != null ? margin.getTop() + margin.getBottom() : 0; |
|
|
|
int verticalMargin = margin != null ? margin.getTop() + margin.getBottom() : 0; |
|
|
@ -289,6 +291,7 @@ public class XChartEditor extends XBorderStyleWidgetCreator { |
|
|
|
final MiddleChartComponent chartComponent = DesignModuleFactory.getChartComponent(((BaseChartEditor) data).getChartCollection()); |
|
|
|
final MiddleChartComponent chartComponent = DesignModuleFactory.getChartComponent(((BaseChartEditor) data).getChartCollection()); |
|
|
|
if (chartComponent != null) { |
|
|
|
if (chartComponent != null) { |
|
|
|
JComponent jChart = chartComponent; |
|
|
|
JComponent jChart = chartComponent; |
|
|
|
|
|
|
|
chartComponent.setOpaque(false); |
|
|
|
jChart.setBorder(BorderFactory.createLineBorder(Color.lightGray)); |
|
|
|
jChart.setBorder(BorderFactory.createLineBorder(Color.lightGray)); |
|
|
|
designerEditor = new DesignerEditor<JComponent>(jChart); |
|
|
|
designerEditor = new DesignerEditor<JComponent>(jChart); |
|
|
|
chartComponent.addStopEditingListener(designerEditor); |
|
|
|
chartComponent.addStopEditingListener(designerEditor); |
|
|
|