|
|
|
@ -402,6 +402,19 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Alert"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void paintChildren(Graphics g) { |
|
|
|
|
Graphics2D g2d = (Graphics2D) g; |
|
|
|
|
AffineTransform old = g2d.getTransform(); |
|
|
|
|
AffineTransform at = new AffineTransform(); |
|
|
|
|
at.translate(this.getPaintX(), this.getPaintY()); |
|
|
|
|
at.scale(this.getScale(), this.getScale()); |
|
|
|
|
g2d.transform(at); |
|
|
|
|
super.paintChildren(g); |
|
|
|
|
g2d.setTransform(old); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 自动添加组件 |
|
|
|
|
* |
|
|
|
@ -1283,21 +1296,6 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
this.formArea = formArea; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void paint(Graphics g){ |
|
|
|
|
//重新设置下绘制的起点和缩放幅度
|
|
|
|
|
AffineTransform at = new AffineTransform(); |
|
|
|
|
if (rootComponent.getParent() != null) { |
|
|
|
|
at.translate(this.getPaintX(), this.getPaintY()); |
|
|
|
|
at.scale(this.getScale(), this.getScale()); |
|
|
|
|
Graphics2D g2 = (Graphics2D) g; |
|
|
|
|
g2.transform(at); |
|
|
|
|
} |
|
|
|
|
super.paint(g); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 绘制组件根节点 |
|
|
|
|
* |
|
|
|
|