|
|
@ -272,7 +272,6 @@ public class PolyDesigner extends ReportComponent<PolyWorkSheet, PolyElementCase |
|
|
|
|
|
|
|
|
|
|
|
this.time = (float) resolution / ScreenResolution.getScreenResolution(); |
|
|
|
this.time = (float) resolution / ScreenResolution.getScreenResolution(); |
|
|
|
resetEditorComponentBounds(); |
|
|
|
resetEditorComponentBounds(); |
|
|
|
LayoutUtils.layoutRootContainer(this); |
|
|
|
|
|
|
|
g.setColor(Color.black); |
|
|
|
g.setColor(Color.black); |
|
|
|
GraphHelper.drawLine(g, 0, 0, this.getWidth(), 0); |
|
|
|
GraphHelper.drawLine(g, 0, 0, this.getWidth(), 0); |
|
|
|
GraphHelper.drawLine(g, 0, 0, 0, this.getHeight()); |
|
|
|
GraphHelper.drawLine(g, 0, 0, 0, this.getHeight()); |
|
|
@ -281,7 +280,7 @@ public class PolyDesigner extends ReportComponent<PolyWorkSheet, PolyElementCase |
|
|
|
|
|
|
|
|
|
|
|
private void resetEditorComponentBounds() { |
|
|
|
private void resetEditorComponentBounds() { |
|
|
|
if (selection != null) { |
|
|
|
if (selection != null) { |
|
|
|
selection.setResolution(this.resolution); |
|
|
|
selection.setResolution(ScreenResolution.getScreenResolution()); |
|
|
|
selection.getEditor().setBounds((int) (selection.getEditorBounds().x * time), (int) (selection.getEditorBounds().y * time), |
|
|
|
selection.getEditor().setBounds((int) (selection.getEditorBounds().x * time), (int) (selection.getEditorBounds().y * time), |
|
|
|
(int) (selection.getEditorBounds().width * time), (int) (selection.getEditorBounds().height * time)); |
|
|
|
(int) (selection.getEditorBounds().width * time), (int) (selection.getEditorBounds().height * time)); |
|
|
|
LayoutUtils.layoutRootContainer(this); |
|
|
|
LayoutUtils.layoutRootContainer(this); |
|
|
|