< prev index next >
modules/graphics/src/main/java/javafx/scene/shape/Path.java
Print this page
@@ -103,10 +103,15 @@
public void doUpdatePeer(Node node) {
((Path) node).doUpdatePeer();
}
@Override
+ public Bounds doComputeLayoutBounds(Node node) {
+ return ((Path) node).doComputeLayoutBounds();
+ }
+
+ @Override
public Paint doCssGetFillInitialValue(Shape shape) {
return ((Path) shape).doCssGetFillInitialValue();
}
@Override
@@ -164,11 +169,11 @@
}
void markPathDirty() {
path2d = null;
NodeHelper.markDirty(this, DirtyBits.NODE_CONTENTS);
- impl_geomChanged();
+ NodeHelper.geomChanged(this);
}
/**
* Defines the filling rule constant for determining the interior of the path.
* The value must be one of the following constants:
@@ -194,11 +199,11 @@
fillRule = new ObjectPropertyBase<FillRule>(FillRule.NON_ZERO) {
@Override
public void invalidated() {
NodeHelper.markDirty(Path.this, DirtyBits.NODE_CONTENTS);
- impl_geomChanged();
+ NodeHelper.geomChanged(Path.this);
}
@Override
public Object getBean() {
return Path.this;
@@ -254,11 +259,11 @@
if (firstElementChanged) {
isPathValid = isFirstPathElementValid();
}
NodeHelper.markDirty(Path.this, DirtyBits.NODE_CONTENTS);
- impl_geomChanged();
+ NodeHelper.geomChanged(Path.this);
}
};
/**
* Gets observable list of path elements of this path.
@@ -288,19 +293,13 @@
} else {
return new Path2D();
}
}
- /**
- * @treatAsPrivate implementation detail
- * @deprecated This is an internal API that is not intended for use and will be removed in the next version
- */
- @Deprecated
- @Override
- protected Bounds impl_computeLayoutBounds() {
+ private Bounds doComputeLayoutBounds() {
if (isPathValid) {
- return super.impl_computeLayoutBounds();
+ return null; // Helper will need to call its super's compute layout bounds
}
return new BoundingBox(0, 0, -1, -1); //create empty bounds
}
private boolean isFirstPathElementValid() {
< prev index next >