public static class PointShapeFactory.Star extends PointShapeFactory.BasePointShapeFactory
PointShapeFactory.BasePointShapeFactory, PointShapeFactory.Circle, PointShapeFactory.Cross, PointShapeFactory.Point, PointShapeFactory.Square, PointShapeFactory.Star, PointShapeFactory.Triangle, PointShapeFactory.X
DEFAULT_SIZE, size
Constructor and Description |
---|
Star()
Creates a new factory for points with default size.
|
Star(double size)
Creates a factory for points of given size.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Shape |
createPoint(java.awt.geom.Point2D point)
Creates a shape representing a point.
|
public Star()
public Star(double size)
size
- the size of the pointspublic java.awt.Shape createPoint(java.awt.geom.Point2D point)
createPoint
in interface PointShapeFactory
createPoint
in class PointShapeFactory.BasePointShapeFactory
point
- the location of the point