All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class collage.generic.Part

java.lang.Object
   |
   +----collage.kernel.Edge
           |
           +----collage.generic.Part

public class Part
extends Edge
Generic "part" class.

For a conceptual overview, refer to the description of the base class, Edge, in the kernel package, and to the class PartFactory in this package.

Version:
30 Apr 1997
Author:
Nils Schwabe

Variable Index

 o dimensions
The number of dimensions of this part.
 o params
A generic part may contain arbitrary parameters, none of which has any meaning to the part itself.
 o trans
The "shape" of the generic part is given by a transformation.

Constructor Index

 o Part()
 o Part(ParamSet, int)

Method Index

 o clone()
This is supposed to make a deep copy of the Edge.
 o cloneInto(Part)
 o equals(Object)
 o findTrans(PointSequence, TransFinder, boolean)
This implementation always returns null, indicating that a generic part cannot be used as an hyperedge per se.
 o getDimensions()
 o getParams()
 o initTransformation()
 o transform(Transformation)
Transforms the edge with the given transformation.

Variables

 o dimensions
  protected int dimensions
The number of dimensions of this part.

Currently only 2- and 3-dimensional parts are supported by this class.

 o trans
  protected MatrixTrans trans
The "shape" of the generic part is given by a transformation.

 o params
  protected ParamSet params
A generic part may contain arbitrary parameters, none of which has any meaning to the part itself. If a generic part is used directly, the parameters may be used to apply specific higher level semantics to the part.

Constructors

 o Part
  public Part(ParamSet params,
              int dimensions)
 o Part
  protected Part()

Methods

 o initTransformation
  protected void initTransformation()
 o getDimensions
  public int getDimensions()
 o getParams
  public ParamSet getParams()
 o transform
  public void transform(Transformation t)
Transforms the edge with the given transformation.

Overrides:
transform in class Edge
 o findTrans
  public Transformation findTrans(PointSequence s,
                                  TransFinder finder,
                                  boolean inverse)
This implementation always returns null, indicating that a generic part cannot be used as an hyperedge per se.

Of course, derived classes can implement replacement behaviour.

Overrides:
findTrans in class Edge
 o equals
  public boolean equals(Object obj)
Overrides:
equals in class Object
 o cloneInto
  protected void cloneInto(Part into)
 o clone
  public Object clone()
This is supposed to make a deep copy of the Edge.

Overrides:
clone in class Edge

All Packages  Class Hierarchy  This Package  Previous  Next  Index