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