Class PointShapeFactory.BasePointShapeFactory
java.lang.Object
org.locationtech.jts.awt.PointShapeFactory.BasePointShapeFactory
- All Implemented Interfaces:
PointShapeFactory
- Direct Known Subclasses:
PointShapeFactory.Circle, PointShapeFactory.Cross, PointShapeFactory.Point, PointShapeFactory.Square, PointShapeFactory.Star, PointShapeFactory.Triangle, PointShapeFactory.X
- Enclosing interface:
PointShapeFactory
public abstract static class PointShapeFactory.BasePointShapeFactory
extends Object
implements PointShapeFactory
- Author:
- Martin Davis
-
Nested Class Summary
Nested classes/interfaces inherited from interface PointShapeFactory
PointShapeFactory.BasePointShapeFactory, PointShapeFactory.Circle, PointShapeFactory.Cross, PointShapeFactory.Point, PointShapeFactory.Square, PointShapeFactory.Star, PointShapeFactory.Triangle, PointShapeFactory.X -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleThe default size of the shapeprotected double -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new factory for points with default size.BasePointShapeFactory(double size) Creates a factory for points of given size. -
Method Summary
Modifier and TypeMethodDescriptionabstract ShapecreatePoint(Point2D point) Creates a shape representing a point.
-
Field Details
-
DEFAULT_SIZE
public static final double DEFAULT_SIZEThe default size of the shape- See Also:
-
size
protected double size
-
-
Constructor Details
-
BasePointShapeFactory
public BasePointShapeFactory()Creates a new factory for points with default size. -
BasePointShapeFactory
public BasePointShapeFactory(double size) Creates a factory for points of given size.- Parameters:
size- the size of the points
-
-
Method Details
-
createPoint
Creates a shape representing a point.- Specified by:
createPointin interfacePointShapeFactory- Parameters:
point- the location of the point- Returns:
- a shape
-