kcl.waterloo.graphics
Class AxisLink
- java.lang.Object
-
- kcl.waterloo.graphics.AxisLink
-
public class AxisLink extends java.lang.ObjectThis class is used to establish a link between the axes of two graphs. An AxisLink instance is added to a graph using its standard addLink method to establish a link between the axes. The link is then specified as from the graph to which the AxisLink instance is added and to the graph referenced in the instance pairedTraget property. Paired AxisLink instances will usually be added to each graph to establish a bilateral linkage. Note that an AxisLink instance is serializable to XML using the XMLEncoder, but that a Persistence delegate must be specified to call the constructor. An XML file containing an AxisLink instance will contain full information to reconstruct the linked graph even when that graph is not part of the host graph's hierarchy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classAxisLink.PAIRINGSpecifies the axes to be linked.
-
Constructor Summary
Constructors Constructor and Description AxisLink(GJAbstractGraph target, AxisLink.PAIRING p)Constructor for an AxisLink instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GJAbstractGraphgetPairedTarget()Returns the linked graph for this instance.AxisLink.PAIRINGgetPairing()Returns the AxisLink.PAIRING value for this instance.
-
-
-
Constructor Detail
-
AxisLink
public AxisLink(GJAbstractGraph target, AxisLink.PAIRING p)
Constructor for an AxisLink instance.- Parameters:
target- the graph to link top- an AxisLink.PAIRING instance specifying which axes should be linked.
-
-
Method Detail
-
getPairedTarget
public GJAbstractGraph getPairedTarget()
Returns the linked graph for this instance.- Returns:
- the pairedTarget
-
getPairing
public AxisLink.PAIRING getPairing()
Returns the AxisLink.PAIRING value for this instance.- Returns:
- the pairing
-
-
DMelt 3.0 © DataMelt by jWork.ORG