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
-
dimensions
- The number of dimensions of this part.
-
params
- A generic part may contain arbitrary parameters, none of which
has any meaning to the part itself.
-
trans
- The "shape" of the generic part is given by a transformation.
-
Part()
-
-
Part(ParamSet, int)
-
-
clone()
-
This is supposed to make a deep copy of the
Edge
.
-
cloneInto(Part)
-
-
equals(Object)
-
-
findTrans(PointSequence, TransFinder, boolean)
- This implementation always returns
null
, indicating
that a generic part cannot be used as an hyperedge per se.
-
getDimensions()
-
-
getParams()
-
-
initTransformation()
-
-
transform(Transformation)
- Transforms the edge with the given transformation.
dimensions
protected int dimensions
- The number of dimensions of this part.
Currently only 2- and 3-dimensional parts are supported by this class.
trans
protected MatrixTrans trans
- The "shape" of the generic part is given by a transformation.
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.
Part
public Part(ParamSet params,
int dimensions)
Part
protected Part()
initTransformation
protected void initTransformation()
getDimensions
public int getDimensions()
getParams
public ParamSet getParams()
transform
public void transform(Transformation t)
- Transforms the edge with the given transformation.
- Overrides:
- transform in class Edge
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
equals
public boolean equals(Object obj)
- Overrides:
- equals in class Object
cloneInto
protected void cloneInto(Part into)
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