Package org.locationtech.jts.awt
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.locationtech.jts.awt.PointShapeFactory
PointShapeFactory.BasePointShapeFactory, PointShapeFactory.Circle, PointShapeFactory.Cross, PointShapeFactory.Point, PointShapeFactory.Square, PointShapeFactory.Star, PointShapeFactory.Triangle, PointShapeFactory.X
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
The 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 Shape
createPoint
(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:
createPoint
in interfacePointShapeFactory
- Parameters:
point
- the location of the point- Returns:
- a shape
-