PointShapeFactorypublic static class PointShapeFactory.Triangle extends PointShapeFactory.BasePointShapeFactory
PointShapeFactory.BasePointShapeFactory, PointShapeFactory.Circle, PointShapeFactory.Cross, PointShapeFactory.Point, PointShapeFactory.Square, PointShapeFactory.Star, PointShapeFactory.Triangle, PointShapeFactory.XDEFAULT_SIZE| Constructor | 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 | Description |
|---|---|---|
java.awt.Shape |
createPoint(java.awt.geom.Point2D point) |
Creates a shape representing a point.
|
public Triangle()
public Triangle(double size)
size - the size of the pointspublic java.awt.Shape createPoint(java.awt.geom.Point2D point)
createPoint in interface PointShapeFactorycreatePoint in class PointShapeFactory.BasePointShapeFactorypoint - the location of the pointCopyright © 2018. All rights reserved.