public abstract static class PointShapeFactory.BasePointShapeFactory extends Object implements 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
|
Constructor and Description |
---|
BasePointShapeFactory()
Creates a new factory for points with default size.
|
BasePointShapeFactory(double size)
Creates a factory for points of given size.
|
Modifier and Type | Method and Description |
---|---|
abstract Shape |
createPoint(Point2D point)
Creates a shape representing a point.
|
public static final double DEFAULT_SIZE
public BasePointShapeFactory()
public BasePointShapeFactory(double size)
size
- the size of the pointspublic abstract Shape createPoint(Point2D point)
createPoint
in interface PointShapeFactory
point
- the location of the pointCopyright © 2022. All rights reserved.