-
- Downloads
Improve zooming, panning, performance in DiagramViewer
Zoom:
- When zooming with ctrl-scroll, the viewer fixes the content
under the mouse pointer, so that zooming does not move the
content.
- On Linux, zoom did not work proper. The grid was zoomed,
but the content remained unchanged.
Panning:
- The viewer now supports panning with ctrl-drag.
Other changes:
- The code for zooming and moving the content has been simplified.
Rather than applying transformations to all nodes separately and
repeating coordinate calculations, the content scale and
translation is now controlled by a single transformation.
Coordinate transformations are done using JavaFX's methods.
- The GridCanvas has been optimized to avoid redrawing its content
(which resulted in a noticable slow-down during panning). The
grid canvas is not redrawn when the content is only moved.
Signed-off-by:
Ulrich Schöpp <schoepp@fortiss.org>
Issue-Ref: 4181
Showing
- org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/lwfxef/.ratings 5 additions, 5 deletions.../src/org/fortiss/tooling/common/ui/javafx/lwfxef/.ratings
- org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/lwfxef/DiagramLayers.java 1 addition, 28 deletions...ortiss/tooling/common/ui/javafx/lwfxef/DiagramLayers.java
- org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/lwfxef/DiagramViewer.java 202 additions, 93 deletions...ortiss/tooling/common/ui/javafx/lwfxef/DiagramViewer.java
- org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/lwfxef/DiagramViewerFeatures.java 29 additions, 5 deletions...ooling/common/ui/javafx/lwfxef/DiagramViewerFeatures.java
- org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/lwfxef/GridCanvasVisual.java 243 additions, 81 deletions...iss/tooling/common/ui/javafx/lwfxef/GridCanvasVisual.java
- org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/lwfxef/MVCBundleManager.java 0 additions, 1 deletion...iss/tooling/common/ui/javafx/lwfxef/MVCBundleManager.java
Loading
Please register or sign in to comment