|
|
|
@ -35,7 +35,6 @@ import com.fr.form.ui.ChartEditor;
|
|
|
|
|
import com.fr.form.ui.DataControl; |
|
|
|
|
import com.fr.form.ui.DictionaryContainer; |
|
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
|
import com.fr.form.ui.PaddingMargin; |
|
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
@ -62,6 +61,7 @@ import java.awt.Component;
|
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.Graphics2D; |
|
|
|
|
import java.awt.Image; |
|
|
|
|
import java.awt.Insets; |
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
@ -273,7 +273,7 @@ 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); |
|
|
|
|
PaddingMargin margin = chartEditor.toData().getMargin(); |
|
|
|
|
Insets margin = chartEditor.getInsets();; |
|
|
|
|
chartEditor.getDesignerEditor().paintEditor(chartImage.getGraphics(), size, margin); |
|
|
|
|
im.getGraphics().drawImage(chartImage, 0, chartEditor.getY(), null); |
|
|
|
|
} |
|
|
|
|