Make transformChanged and dropQuality abstract in NavigationNode 72/1972/2
authorjsimomaa <jani.simomaa@gmail.com>
Mon, 30 Jul 2018 08:18:24 +0000 (11:18 +0300)
committerJani Simomaa <jani.simomaa@semantum.fi>
Mon, 30 Jul 2018 08:18:44 +0000 (08:18 +0000)
gitlab #63

Change-Id: Iac86a4a40292597408a78903a372ee779c93b111

bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/NavigationNode.java

index b46b4ad61c81089ff3f022cc6946bf299bf52d74..1f853fa507b0f76468bd5e422151078c07037a62 100644 (file)
@@ -278,7 +278,7 @@ public class NavigationNode extends TransformNode implements PropertyChangeListe
                 + ", zoomOutLimit=" + zoomOutLimit + ", adaptViewportToResize=" + adaptViewportToResizedControl + "]";
     }
 
-    private void transformChanged() {
+    protected void transformChanged() {
         if (transformListener != null) {
             transformListener.transformChanged(transform);
         }
@@ -357,7 +357,7 @@ public class NavigationNode extends TransformNode implements PropertyChangeListe
      * Utility method for dropping the paint quality and scheduling repaint with good quality.
      * This can be used to speed up rendering while navigating.
      */
-    private void dropQuality() {
+    protected void dropQuality() {
         if (!dynamicQuality) return;
         //System.out.println("dropQuality: " + qualityPaint);
         if (pendingTask!=null) {