PointShapeFactory
PointShapeFactory.Circle
, PointShapeFactory.Cross
, PointShapeFactory.Point
, PointShapeFactory.Square
, PointShapeFactory.Star
, PointShapeFactory.Triangle
, PointShapeFactory.X
public abstract static class PointShapeFactory.BasePointShapeFactory extends java.lang.Object implements PointShapeFactory
PointShapeFactory.BasePointShapeFactory, PointShapeFactory.Circle, PointShapeFactory.Cross, PointShapeFactory.Point, PointShapeFactory.Square, PointShapeFactory.Star, PointShapeFactory.Triangle, PointShapeFactory.X
Modifier and Type | Field | Description |
---|---|---|
static double |
DEFAULT_SIZE |
The default size of the shape
|
Constructor | Description |
---|---|
BasePointShapeFactory() |
Creates a new factory for points with default size.
|
BasePointShapeFactory(double size) |
Creates a factory for points of given size.
|
Modifier and Type | Method | Description |
---|---|---|
abstract java.awt.Shape |
createPoint(java.awt.geom.Point2D point) |
Creates a shape representing a point.
|
public static final double DEFAULT_SIZE
public BasePointShapeFactory()
public BasePointShapeFactory(double size)
size
- the size of the pointspublic abstract java.awt.Shape createPoint(java.awt.geom.Point2D point)
createPoint
in interface PointShapeFactory
point
- the location of the pointCopyright © 2018. All rights reserved.