Package kiyut.sketsa.canvas.tool.point
Class PointShape
- java.lang.Object
-
- java.awt.geom.Point2D
-
- java.awt.geom.Point2D.Double
-
- kiyut.sketsa.canvas.tool.point.PointShape
-
- All Implemented Interfaces:
Shape,Serializable,Cloneable
public class PointShape extends Point2D.Double implements Shape
Provides Point in Shape geometry. This is the point handle- Author:
- KIYUT
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
-
-
Field Summary
-
Fields inherited from class java.awt.geom.Point2D.Double
x, y
-
-
Constructor Summary
Constructors Constructor Description PointShape()Creates a new instance of PointShapePointShape(double x, double y, double size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(double x, double y)booleancontains(double x, double y, double w, double h)booleancontains(Point2D p)booleancontains(Rectangle2D r)RectanglegetBounds()Rectangle2DgetBounds2D()PathIteratorgetPathIterator(AffineTransform at)PathIteratorgetPathIterator(AffineTransform at, double flatness)doublegetX()doublegetY()booleanintersects(double x, double y, double w, double h)booleanintersects(Rectangle2D r)voidsetLocation(double x, double y)-
Methods inherited from class java.awt.geom.Point2D.Double
toString
-
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
-
-
-
Method Detail
-
getX
public double getX()
- Overrides:
getXin classPoint2D.Double
-
getY
public double getY()
- Overrides:
getYin classPoint2D.Double
-
setLocation
public void setLocation(double x, double y)- Overrides:
setLocationin classPoint2D.Double
-
contains
public boolean contains(Rectangle2D r)
-
contains
public boolean contains(double x, double y, double w, double h)
-
getBounds2D
public Rectangle2D getBounds2D()
- Specified by:
getBounds2Din interfaceShape
-
getPathIterator
public PathIterator getPathIterator(AffineTransform at)
- Specified by:
getPathIteratorin interfaceShape
-
getPathIterator
public PathIterator getPathIterator(AffineTransform at, double flatness)
- Specified by:
getPathIteratorin interfaceShape
-
intersects
public boolean intersects(Rectangle2D r)
- Specified by:
intersectsin interfaceShape
-
intersects
public boolean intersects(double x, double y, double w, double h)- Specified by:
intersectsin interfaceShape
-
-