|
|
|
@ -273,9 +273,9 @@ public class CreateComponentAction extends UpdateAction {
|
|
|
|
|
XChartEditor chartEditor = (XChartEditor) body; |
|
|
|
|
Dimension size = chartEditor.getSize(); |
|
|
|
|
BufferedImage chartImage = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_ARGB); |
|
|
|
|
Insets margin = chartEditor.getInsets();; |
|
|
|
|
Insets margin = chartEditor.getInsets(); |
|
|
|
|
chartEditor.getDesignerEditor().paintEditor(chartImage.getGraphics(), size, margin); |
|
|
|
|
im.getGraphics().drawImage(chartImage, 0, chartEditor.getY(), null); |
|
|
|
|
im.getGraphics().drawImage(chartImage, chartEditor.getX(), chartEditor.getY(), null); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return im; |
|
|
|
|