|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.vistech.shapes.ShapeFactory
A factory class that provides static methods to construct or copy a shape.
Constructor Summary | |
ShapeFactory()
|
Method Summary | |
static Shapes |
copyShape(Shapes shape)
Copies a specified shape. |
static Shapes |
createShapes(int shapeType)
Constructs a specified shape. |
static java.lang.String |
getTypeAsString(int shapeType)
A utility method that returns the shape type as a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeFactory()
Method Detail |
public static Shapes createShapes(int shapeType)
shapeType
- the shape type.public static Shapes copyShape(Shapes shape)
shapeType
- the shape type.public static java.lang.String getTypeAsString(int shapeType)
shapeType
- the shape type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |