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
  • Field Details

    • DEFAULT_SIZE

      public static final double DEFAULT_SIZE
      The 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

      public abstract Shape createPoint(Point2D point)
      Creates a shape representing a point.
      Specified by:
      createPoint in interface PointShapeFactory
      Parameters:
      point - the location of the point
      Returns:
      a shape