public abstract static class PointShapeFactory.BasePointShapeFactory extends Objectimplements PointShapeFactory
PointShapeFactory.BasePointShapeFactory , PointShapeFactory.Circle , PointShapeFactory.Cross , PointShapeFactory.Point , PointShapeFactory.Square , PointShapeFactory.Star , PointShapeFactory.Triangle , PointShapeFactory.X | Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_SIZE
The default size of the shape
|
protected double |
size
|
| Constructor and Description |
|---|
BasePointShapeFactory()
Creates a new factory for points with default size.
|
BasePointShapeFactory(double size)
Creates a factory for points of given size.
|
public static final double DEFAULT_SIZE
protected double size
public BasePointShapeFactory()
public BasePointShapeFactory(double size)
size - the size of the points
public abstract ShapecreatePoint(Point2D point)
createPoint in interface
PointShapeFactory
point - the location of the point