public static class PointShapeFactory.Circle extends PointShapeFactory.BasePointShapeFactory
PointShapeFactory.BasePointShapeFactory, PointShapeFactory.Circle, PointShapeFactory.Cross, PointShapeFactory.Point, PointShapeFactory.Square, PointShapeFactory.Star, PointShapeFactory.Triangle, PointShapeFactory.XDEFAULT_SIZE| Constructor and Description |
|---|
Circle()
Creates a new factory for points with default size.
|
Circle(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 Circle()
public Circle(double size)
size - the size of the pointspublic Shape createPoint(Point2D point)
createPoint in interface PointShapeFactorycreatePoint in class PointShapeFactory.BasePointShapeFactorypoint - the location of the pointCopyright © 2020. All rights reserved.