< prev index next >
modules/graphics/src/main/java/javafx/scene/shape/Ellipse.java
Print this page
*** 68,77 ****
--- 68,83 ----
public void doUpdatePeer(Node node) {
((Ellipse) node).doUpdatePeer();
}
@Override
+ public BaseBounds doComputeGeomBounds(Node node,
+ BaseBounds bounds, BaseTransform tx) {
+ return ((Ellipse) node).doComputeGeomBounds(bounds, tx);
+ }
+
+ @Override
public com.sun.javafx.geom.Shape doConfigShape(Shape shape) {
return ((Ellipse) shape).doConfigShape();
}
});
}
*** 140,150 ****
centerX = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Ellipse.this, DirtyBits.NODE_GEOMETRY);
! impl_geomChanged();
}
@Override
public Object getBean() {
return Ellipse.this;
--- 146,156 ----
centerX = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Ellipse.this, DirtyBits.NODE_GEOMETRY);
! NodeHelper.geomChanged(Ellipse.this);
}
@Override
public Object getBean() {
return Ellipse.this;
*** 181,191 ****
centerY = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Ellipse.this, DirtyBits.NODE_GEOMETRY);
! impl_geomChanged();
}
@Override
public Object getBean() {
return Ellipse.this;
--- 187,197 ----
centerY = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Ellipse.this, DirtyBits.NODE_GEOMETRY);
! NodeHelper.geomChanged(Ellipse.this);
}
@Override
public Object getBean() {
return Ellipse.this;
*** 208,218 ****
private final DoubleProperty radiusX = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Ellipse.this, DirtyBits.NODE_GEOMETRY);
! impl_geomChanged();
}
@Override
public Object getBean() {
return Ellipse.this;
--- 214,224 ----
private final DoubleProperty radiusX = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Ellipse.this, DirtyBits.NODE_GEOMETRY);
! NodeHelper.geomChanged(Ellipse.this);
}
@Override
public Object getBean() {
return Ellipse.this;
*** 244,254 ****
private final DoubleProperty radiusY = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Ellipse.this, DirtyBits.NODE_GEOMETRY);
! impl_geomChanged();
}
@Override
public Object getBean() {
return Ellipse.this;
--- 250,260 ----
private final DoubleProperty radiusY = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Ellipse.this, DirtyBits.NODE_GEOMETRY);
! NodeHelper.geomChanged(Ellipse.this);
}
@Override
public Object getBean() {
return Ellipse.this;
*** 293,309 ****
// anomalous angles and is the simplest join style to compute in
// the stroking code.
return StrokeLineJoin.BEVEL;
}
! /**
! * @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
! public BaseBounds impl_computeGeomBounds(BaseBounds bounds, BaseTransform tx) {
// if there is no fill or stroke, then there are no bounds. The bounds
// must be marked empty in this case to distinguish it from 0,0,0,0
// which would actually contribute to the bounds of a group.
if (getMode() == NGShape.Mode.EMPTY) {
return bounds.makeEmpty();
--- 299,312 ----
// anomalous angles and is the simplest join style to compute in
// the stroking code.
return StrokeLineJoin.BEVEL;
}
! /*
! * Note: This method MUST only be called via its accessor method.
*/
! private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) {
// if there is no fill or stroke, then there are no bounds. The bounds
// must be marked empty in this case to distinguish it from 0,0,0,0
// which would actually contribute to the bounds of a group.
if (getMode() == NGShape.Mode.EMPTY) {
return bounds.makeEmpty();
< prev index next >