show selection bounds on rulers

This commit is contained in:
bancika
2017-04-20 14:12:00 +02:00
parent dc8612a167
commit b3d63e9f22
6 changed files with 66 additions and 3 deletions
Binary file not shown.
Binary file not shown.
@@ -550,6 +550,16 @@ public class CanvasPlugin implements IPlugIn, ClipboardOwner {
break;
case REPAINT:
canvasPanel.repaint();
// Refresh selection bounds after we're done with painting to ensure we have traced the
// component areas
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
if (ConfigurationManager.getInstance().readBoolean(IPlugInPort.SHOW_RULERS_KEY, true))
scrollPane.setSelectionRectangle(plugInPort.getSelectionBounds());
}
});
break;
}
// }
+16
View File
@@ -1692,6 +1692,22 @@
</org.diylc.appframework.update.Change>
</changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version>
<org.diylc.appframework.update.Version>
<versionNumber>
<major>3</major>
<minor>39</minor>
<build>0</build>
</versionNumber>
<releaseDate>2017-04-20 20:00:00.000 CET</releaseDate>
<name></name>
<changes>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Red ticks on both rulers track selection bounds, blue tick tracks cursor position</description>
</org.diylc.appframework.update.Change>
</changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version>
</a>
</java.util.Arrays_-ArrayList>