public class SqarePointShapeFactory extends java.lang.Object implements PointShapeFactory
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_SIZE
The default length of the square's side.
|
Constructor and Description |
---|
SqarePointShapeFactory()
Creates a new factory for squares with default size.
|
SqarePointShapeFactory(double squareSize)
Creates a factory for squares of given size.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Shape |
createPoint(java.awt.geom.Point2D point)
Creates a shape representing a point.
|
public static double DEFAULT_SIZE
public SqarePointShapeFactory()
public SqarePointShapeFactory(double squareSize)
squareSize
- the length of the side of the squarepublic java.awt.Shape createPoint(java.awt.geom.Point2D point)
createPoint
in interface PointShapeFactory
point
- the location of the point