< prev index next >

modules/graphics/src/main/java/javafx/scene/canvas/Canvas.java

Print this page

        

@@ -83,10 +83,26 @@
 
             @Override
             public void doUpdatePeer(Node node) {
                 ((Canvas) node).doUpdatePeer();
             }
+
+            @Override
+            public BaseBounds doComputeGeomBounds(Node node,
+            BaseBounds bounds, BaseTransform tx) {
+                return ((Canvas) node).doComputeGeomBounds(bounds, tx);
+            }
+
+            @Override
+            public boolean doComputeContains(Node node, double localX, double localY) {
+                return ((Canvas) node).doComputeContains(localX, localY);
+            }
+
+            @Override
+            public Object doProcessMXNode(Node node, MXNodeAlgorithm alg, MXNodeAlgorithmContext ctx) {
+                return ((Canvas) node).doProcessMXNode(alg, ctx);
+            }
         });
     }
     static final int DEFAULT_VAL_BUF_SIZE = 1024;
     static final int DEFAULT_OBJ_BUF_SIZE = 32;
     private static final int SIZE_HISTORY = 5;

@@ -179,11 +195,11 @@
             width = new DoublePropertyBase() {
 
                 @Override
                 public void invalidated() {
                     NodeHelper.markDirty(Canvas.this, DirtyBits.NODE_GEOMETRY);
-                    impl_geomChanged();
+                    NodeHelper.geomChanged(Canvas.this);
                     if (theContext != null) {
                         theContext.updateDimensions();
                     }
                 }
 

@@ -222,11 +238,11 @@
             height = new DoublePropertyBase() {
 
                 @Override
                 public void invalidated() {
                     NodeHelper.markDirty(Canvas.this, DirtyBits.NODE_GEOMETRY);
-                    impl_geomChanged();
+                    NodeHelper.geomChanged(Canvas.this);
                     if (theContext != null) {
                         theContext.updateDimensions();
                     }
                 }
 

@@ -269,42 +285,33 @@
                 current = null;
             }
         }
     }
 
-    /**
-     * @treatAsPrivate implementation detail
-     * @deprecated This is an internal API that is not intended for use and will be removed in the next version
+    /*
+     * Note: This method MUST only be called via its accessor method.
      */
-    @Deprecated
-    @Override
-    protected boolean impl_computeContains(double localX, double localY) {
+    private boolean doComputeContains(double localX, double localY) {
         double w = getWidth();
         double h = getHeight();
         return (w > 0 && h > 0 &&
                 localX >= 0 && localY >= 0 &&
                 localX <  w && localY <  h);
     }
 
-    /**
-     * @treatAsPrivate implementation detail
-     * @deprecated This is an internal API that is not intended for use and will be removed in the next version
+    /*
+     * Note: This method MUST only be called via its accessor method.
      */
-    @Deprecated
-    @Override
-    public BaseBounds impl_computeGeomBounds(BaseBounds bounds, BaseTransform tx) {
+    private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) {
         bounds = new RectBounds(0f, 0f, (float) getWidth(), (float) getHeight());
         bounds = tx.transform(bounds, bounds);
         return bounds;
     }
 
-    /**
-     * @treatAsPrivate implementation detail
-     * @deprecated This is an internal API that is not intended for use and will be removed in the next version
+    /*
+     * Note: This method MUST only be called via its accessor method.
      */
-    @Deprecated
-    @Override
-    public Object impl_processMXNode(MXNodeAlgorithm alg,
+    private Object doProcessMXNode(MXNodeAlgorithm alg,
                                      MXNodeAlgorithmContext ctx) {
         return alg.processLeafNode(this, ctx);
     }
 }
< prev index next >