public static class PointShapeFactory.Square extends PointShapeFactory.BasePointShapeFactory
PointShapeFactory.BasePointShapeFactory, PointShapeFactory.Circle, PointShapeFactory.Cross, PointShapeFactory.Point, PointShapeFactory.Square, PointShapeFactory.Star, PointShapeFactory.Triangle, PointShapeFactory.XDEFAULT_SIZE, size| Constructor and Description |
|---|
PointShapeFactory.Square()
Creates a new factory for squares with default size.
|
PointShapeFactory.Square(double size)
Creates a factory for squares of given size.
|
public PointShapeFactory.Square()
public PointShapeFactory.Square(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 © 2015. All rights reserved.