< prev index next >
modules/graphics/src/main/java/javafx/scene/shape/Polyline.java
Print this page
*** 71,80 ****
--- 71,86 ----
public void doUpdatePeer(Node node) {
((Polyline) node).doUpdatePeer();
}
@Override
+ public BaseBounds doComputeGeomBounds(Node node,
+ BaseBounds bounds, BaseTransform tx) {
+ return ((Polyline) node).doComputeGeomBounds(bounds, tx);
+ }
+
+ @Override
public Paint doCssGetFillInitialValue(Shape shape) {
return ((Polyline) shape).doCssGetFillInitialValue();
}
@Override
*** 127,137 ****
*/
private final ObservableList<Double> points = new TrackableObservableList<Double>() {
@Override
protected void onChanged(Change<Double> c) {
NodeHelper.markDirty(Polyline.this, DirtyBits.NODE_GEOMETRY);
! impl_geomChanged();
}
};
/**
* Gets the coordinates of the {@code PolyLine} segments.
--- 133,143 ----
*/
private final ObservableList<Double> points = new TrackableObservableList<Double>() {
@Override
protected void onChanged(Change<Double> c) {
NodeHelper.markDirty(Polyline.this, DirtyBits.NODE_GEOMETRY);
! NodeHelper.geomChanged(Polyline.this);
}
};
/**
* Gets the coordinates of the {@code PolyLine} segments.
*** 145,160 ****
*/
private NGNode doCreatePeer() {
return new NGPolyline();
}
! /**
! * @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) {
--- 151,164 ----
*/
private NGNode doCreatePeer() {
return new NGPolyline();
}
! /*
! * 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 >