< prev index next >
modules/graphics/src/main/java/javafx/scene/shape/Circle.java
Print this page
*** 70,79 ****
--- 70,85 ----
public void doUpdatePeer(Node node) {
((Circle) node).doUpdatePeer();
}
@Override
+ public BaseBounds doComputeGeomBounds(Node node,
+ BaseBounds bounds, BaseTransform tx) {
+ return ((Circle) node).doComputeGeomBounds(bounds, tx);
+ }
+
+ @Override
public com.sun.javafx.geom.Shape doConfigShape(Shape shape) {
return ((Circle) shape).doConfigShape();
}
});
}
*** 159,169 ****
centerX = new DoublePropertyBase(0.0) {
@Override
public void invalidated() {
NodeHelper.markDirty(Circle.this, DirtyBits.NODE_GEOMETRY);
! impl_geomChanged();
}
@Override
public Object getBean() {
return Circle.this;
--- 165,175 ----
centerX = new DoublePropertyBase(0.0) {
@Override
public void invalidated() {
NodeHelper.markDirty(Circle.this, DirtyBits.NODE_GEOMETRY);
! NodeHelper.geomChanged(Circle.this);
}
@Override
public Object getBean() {
return Circle.this;
*** 202,212 ****
centerY = new DoublePropertyBase(0.0) {
@Override
public void invalidated() {
NodeHelper.markDirty(Circle.this, DirtyBits.NODE_GEOMETRY);
! impl_geomChanged();
}
@Override
public Object getBean() {
return Circle.this;
--- 208,218 ----
centerY = new DoublePropertyBase(0.0) {
@Override
public void invalidated() {
NodeHelper.markDirty(Circle.this, DirtyBits.NODE_GEOMETRY);
! NodeHelper.geomChanged(Circle.this);
}
@Override
public Object getBean() {
return Circle.this;
*** 229,239 ****
private final DoubleProperty radius = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Circle.this, DirtyBits.NODE_GEOMETRY);
! impl_geomChanged();
}
@Override
public Object getBean() {
return Circle.this;
--- 235,245 ----
private final DoubleProperty radius = new DoublePropertyBase() {
@Override
public void invalidated() {
NodeHelper.markDirty(Circle.this, DirtyBits.NODE_GEOMETRY);
! NodeHelper.geomChanged(Circle.this);
}
@Override
public Object getBean() {
return Circle.this;
*** 282,297 ****
*/
private NGNode doCreatePeer() {
return new NGCircle();
}
! /**
! * @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();
--- 288,301 ----
*/
private NGNode doCreatePeer() {
return new NGCircle();
}
! /*
! * 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 >