< prev index next >

modules/graphics/src/main/java/javafx/scene/shape/Polygon.java

Print this page

        

*** 69,78 **** --- 69,84 ---- public void doUpdatePeer(Node node) { ((Polygon) node).doUpdatePeer(); } @Override + public BaseBounds doComputeGeomBounds(Node node, + BaseBounds bounds, BaseTransform tx) { + return ((Polygon) node).doComputeGeomBounds(bounds, tx); + } + + @Override public com.sun.javafx.geom.Shape doConfigShape(Shape shape) { return ((Polygon) shape).doConfigShape(); } }); }
*** 109,119 **** */ private final ObservableList<Double> points = new TrackableObservableList<Double>() { @Override protected void onChanged(Change<Double> c) { NodeHelper.markDirty(Polygon.this, DirtyBits.NODE_GEOMETRY); ! impl_geomChanged(); } }; /** * Gets the coordinates of the {@code Polygon} vertices. --- 115,125 ---- */ private final ObservableList<Double> points = new TrackableObservableList<Double>() { @Override protected void onChanged(Change<Double> c) { NodeHelper.markDirty(Polygon.this, DirtyBits.NODE_GEOMETRY); ! NodeHelper.geomChanged(Polygon.this); } }; /** * Gets the coordinates of the {@code Polygon} vertices.
*** 126,141 **** */ private NGNode doCreatePeer() { return new NGPolygon(); } ! /** ! * @treatAsPrivate implementation detail ! * @deprecated This is an internal API that is not intended for use and will be removed in the next version */ ! @Deprecated ! public BaseBounds impl_computeGeomBounds(BaseBounds bounds, BaseTransform tx) { if (getMode() == NGShape.Mode.EMPTY || getPoints().size() <= 1) { return bounds.makeEmpty(); } if (getPoints().size() == 2) { --- 132,145 ---- */ private NGNode doCreatePeer() { return new NGPolygon(); } ! /* ! * Note: This method MUST only be called via its accessor method. */ ! private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) { if (getMode() == NGShape.Mode.EMPTY || getPoints().size() <= 1) { return bounds.makeEmpty(); } if (getPoints().size() == 2) {
< prev index next >