t3.hrd.state
Class Link

java.lang.Object
  extended by t3.hrd.state.OrderedElement
      extended by t3.hrd.state.Link

public class Link
extends OrderedElement

A Link represents a link between two rectangles in DESK space. Create new Links by calling the appropriate method on the a StateManager object.

Threading notes: this class is not thread-safe. You must use some kind of locking scheme if you use it in a multithreaded environment.

Author:
pjt40

Field Summary
 java.awt.Color color
           
 int displayType
           
static int DISPLAYTYPE_NORMAL
           
 
Fields inherited from class t3.hrd.state.OrderedElement
elementId, stateManager
 
Method Summary
 java.util.List<java.util.List<Jama.Matrix>> getmDESKpolyPoints()
           
 java.awt.geom.Rectangle2D getrDESKboundingBox()
           
 ScaRotTraTransformImmutable getTstandardRectToDESKrectA()
           
 ScaRotTraTransformImmutable getTstandardRectToDESKrectB()
           
 boolean isDestroyed()
           
 void opSetAff(ScaRotTraTransformImmutable tStandardRectToDESKrectA, ScaRotTraTransformImmutable tStandardRectToDESKrectB)
          Sets the positions, dimensions and orientations in DESK space of the two rectangles linked by the link.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

color

public final java.awt.Color color

displayType

public final int displayType

DISPLAYTYPE_NORMAL

public static final int DISPLAYTYPE_NORMAL
See Also:
Constant Field Values
Method Detail

opSetAff

public void opSetAff(ScaRotTraTransformImmutable tStandardRectToDESKrectA,
                     ScaRotTraTransformImmutable tStandardRectToDESKrectB)
Sets the positions, dimensions and orientations in DESK space of the two rectangles linked by the link. They are specified as scale, rotation and translations of the standard rectangle which has width 1, height 1 and bottom left corner at the origin.

Parameters:
tStandardRectToDESKrectA -
tStandardRectToDESKrectB -

isDestroyed

public boolean isDestroyed()

getTstandardRectToDESKrectA

public ScaRotTraTransformImmutable getTstandardRectToDESKrectA()

getTstandardRectToDESKrectB

public ScaRotTraTransformImmutable getTstandardRectToDESKrectB()

getrDESKboundingBox

public java.awt.geom.Rectangle2D getrDESKboundingBox()

getmDESKpolyPoints

public java.util.List<java.util.List<Jama.Matrix>> getmDESKpolyPoints()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object