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
|
protected double |
size |
Constructor and Description |
---|
PointShapeFactory.BasePointShapeFactory()
Creates a new factory for points with default size.
|
PointShapeFactory.BasePointShapeFactory(double size)
Creates a factory for points of given size.
|
public static double DEFAULT_SIZE
protected double size
public PointShapeFactory.BasePointShapeFactory()
public PointShapeFactory.BasePointShapeFactory(double size)
size
- the size of the pointspublic abstract Shape createPoint(Point2D point)
createPoint
in interface PointShapeFactory
point
- the location of the pointCopyright © 2015. All rights reserved.