|
|
|
@ -49,7 +49,6 @@ public class FormDesignerUI extends ComponentUI {
|
|
|
|
|
private FormDesigner designer; |
|
|
|
|
private SelectionModel selectionModel; |
|
|
|
|
private Rectangle2D.Double back_or_selection_rect = new Rectangle2D.Double(0, 0, 0, 0); |
|
|
|
|
private float time; |
|
|
|
|
|
|
|
|
|
public FormDesignerUI() { |
|
|
|
|
} |
|
|
|
@ -71,7 +70,6 @@ public class FormDesignerUI extends ComponentUI {
|
|
|
|
|
@Override |
|
|
|
|
public void paint(final Graphics g, JComponent c) { |
|
|
|
|
XCreator rootComponent = designer.getRootComponent(); |
|
|
|
|
this.time = (float) designer.getResolution() / ScreenResolution.getScreenResolution(); |
|
|
|
|
AffineTransform at = new AffineTransform(); |
|
|
|
|
if (rootComponent.getParent() != null) { |
|
|
|
|
at.translate(designer.getPaintX(), designer.getPaintY()); |
|
|
|
|