java.lang.Object
com.aoapps.html.any.Circle
- All Implemented Interfaces:
Shape
,Serializable
Minimal implementation of a circle class for similarity to
Rectangle
.
Methods are implemented via Ellipse2D
.- Author:
- AO Industries, Inc.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double x, double y) boolean
contains
(double x, double y, double w, double h) boolean
boolean
boolean
getPathIterator
(AffineTransform at, double flatness) int
int
getX()
int
getY()
int
hashCode()
boolean
intersects
(double x, double y, double w, double h) boolean
toString()
Returns aString
representing thisCircle
and its values.
-
Constructor Details
-
Circle
public Circle(int x, int y, int radius)
-
-
Method Details
-
getX
public int getX() -
getY
public int getY() -
getRadius
public int getRadius() -
hashCode
public int hashCode() -
equals
-
toString
Returns aString
representing thisCircle
and its values. -
getEllipse
-
getBounds
-
getBounds2D
- Specified by:
getBounds2D
in interfaceShape
-
contains
public boolean contains(double x, double y) -
contains
-
intersects
public boolean intersects(double x, double y, double w, double h) - Specified by:
intersects
in interfaceShape
-
intersects
- Specified by:
intersects
in interfaceShape
-
contains
public boolean contains(double x, double y, double w, double h) -
contains
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-