Class PointShapeFactory.BasePointShapeFactory

    • Field Detail

      • DEFAULT_SIZE

        public static final double DEFAULT_SIZE
        The default size of the shape
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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 Detail

      • createPoint

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