Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.vistech.shapes
Class ShapeFactory

    java.lang.Object
      |
      +--com.vistech.shapes.ShapeFactory

public class ShapeFactory
extends java.lang.Object

A factory class that provides static methods to construct or copy a shape.

Version:
  1.0 24 July 1999
Author:
  Larry Rodrigues This class defines the Shape types. Given a shape type, the corrsponding shape can be created by createShape method.

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

### ShapeFactory

    public ShapeFactory()

Method Detail

### createShapes

    public static Shapes createShapes(int shapeType)

  Constructs a specified shape.
  Parameters:
    `shapeType` - the shape type.
  Returns:
    the selected shape object.

### copyShape

    public static Shapes copyShape(Shapes shape)

  Copies a specified shape.
  Parameters:
    `shapeType` - the shape type.
  Returns:
    the selected shape object.

### getTypeAsString

    public static java.lang.String getTypeAsString(int shapeType)

  A utility method that returns the shape type as a string.
  Parameters:
    `shapeType` - the shape type.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD