java.lang.Object
eu.hansolo.fx.geometry.Shape
eu.hansolo.fx.geometry.RectangularShape
eu.hansolo.fx.geometry.Ellipse
- Direct Known Subclasses:
Circle
-
Field Summary
FieldsFields inherited from class eu.hansolo.fx.geometry.Shape
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP, RECT_INTERSECTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double X, double Y) booleancontains(double X, double Y, double WIDTH, double HEIGHT) copy()booleandoubledoubledoublegetPathIterator(BaseTransform TRANSFORM) doubledoubledoublegetWidth()doublegetX()doublegetY()booleanintersects(double X, double Y, double WIDTH, double HEIGHT) booleanisEmpty()voidset(double X, double Y, double WIDTH, double HEIGHT) voidsetCenter(double centerX, double centerY) voidsetCenterX(double centerX) voidsetCenterY(double centerY) voidsetRadiusX(double radiusX) voidsetRadiusY(double radiusY) Methods inherited from class eu.hansolo.fx.geometry.RectangularShape
contains, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, set, setFromCenter, setFromCenter, setFromDiagonal, setFromDiagonalMethods inherited from class eu.hansolo.fx.geometry.Shape
accumulate, accumulateCubic, accumulateCubic, accumulateQuad, contains, intersects, pointCrossingsForCubic, pointCrossingsForLine, pointCrossingsForPath, pointCrossingsForQuad, rectCrossingsForCubic, rectCrossingsForLine, rectCrossingsForPath, rectCrossingsForQuad
-
Field Details
-
x
public double x -
y
public double y -
width
public double width -
height
public double height
-
-
Constructor Details
-
Ellipse
public Ellipse() -
Ellipse
public Ellipse(double X, double Y, double WIDTH, double HEIGHT)
-
-
Method Details
-
getX
public double getX()- Specified by:
getXin classRectangularShape
-
getY
public double getY()- Specified by:
getYin classRectangularShape
-
getWidth
public double getWidth()- Specified by:
getWidthin classRectangularShape
-
getHeight
public double getHeight()- Specified by:
getHeightin classRectangularShape
-
getCenterX
public double getCenterX()- Overrides:
getCenterXin classRectangularShape
-
setCenterX
public void setCenterX(double centerX) -
getCenterY
public double getCenterY()- Overrides:
getCenterYin classRectangularShape
-
setCenterY
public void setCenterY(double centerY) -
setCenter
public void setCenter(double centerX, double centerY) -
getRadiusX
public double getRadiusX() -
setRadiusX
public void setRadiusX(double radiusX) -
getRadiusY
public double getRadiusY() -
setRadiusY
public void setRadiusY(double radiusY) -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classRectangularShape
-
set
public void set(double X, double Y, double WIDTH, double HEIGHT) - Specified by:
setin classRectangularShape
-
getBounds
- Overrides:
getBoundsin classRectangularShape
-
intersects
public boolean intersects(double X, double Y, double WIDTH, double HEIGHT) - Specified by:
intersectsin classShape
-
contains
public boolean contains(double X, double Y) -
contains
public boolean contains(double X, double Y, double WIDTH, double HEIGHT) -
getPathIterator
- Specified by:
getPathIteratorin classShape
-
copy
-
equals
-