All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class collage.generic.PartFactory

java.lang.Object
   |
   +----openstar.generic.ParamSet
           |
           +----openstar.generic.Factory
                   |
                   +----collage.generic.PartFactory

public class PartFactory
extends Factory
Part factory base class.

For a conceptual overview, refer to the description of the Edge class in the kernel package, and to the description of Factory in the openstar.generic package.

This class provides a common framework for the creation of user-defined parts that implement specific shapes and/or behaviour. It can be used, for example, by a generic collage grammar parser, or other tools, to instantiate parts of previously unknown classes.

Normally, one will derive an own class from PartFactory that implements the specific parameters and creates instances of arbitrary Edge objects. However, it is also possible to use the PartFactory class directly. In this case, the generated Edge objects are instances of class Part, which is a generic part class that accepts arbitrary parameters.

Version:
04 Jun 1997
Author:
Nils Schwabe

Variable Index

 o DIMENSIONS

Constructor Index

 o PartFactory()

Method Index

 o create()
Creates a new part instance.

Variables

 o DIMENSIONS
  protected final static String DIMENSIONS

Constructors

 o PartFactory
  public PartFactory()

Methods

 o create
  public Object create()
Creates a new part instance.

All objects created from descendants of this factory class must return Edge-objects. However, this cannot be enforced at compile-time due to the generic character of the factory mechanism.

Overrides:
create in class Factory

All Packages  Class Hierarchy  This Package  Previous  Next  Index