simtools.diagram.test
Class TestComponent.TestShapeLink

java.lang.Object
  extended by java.awt.geom.Line2D
      extended by java.awt.geom.Line2D.Double
          extended by simtools.diagram.test.TestComponent.TestShapeLink
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable, DiagramConnection
Enclosing class:
TestComponent

public class TestComponent.TestShapeLink
extends java.awt.geom.Line2D.Double
implements DiagramConnection

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Line2D
java.awt.geom.Line2D.Double, java.awt.geom.Line2D.Float
 
Field Summary
 
Fields inherited from class java.awt.geom.Line2D.Double
x1, x2, y1, y2
 
Constructor Summary
TestComponent.TestShapeLink(TestComponent.TestShape in, int x, int y)
           
TestComponent.TestShapeLink(TestComponent.TestShapeLink model, TestComponent.TestShape in, TestComponent.TestShape out)
           
 
Method Summary
 void connect(TestComponent.TestShape out)
           
 DiagramConnector input()
          Gets the input of the link
 DiagramConnector output()
          Gets the ioutput of the link
 java.lang.String toString()
           
 void translate(int dx, int dy)
           
 void translateInput(int dx, int dy)
           
 void translateOutput(int dx, int dy)
           
 
Methods inherited from class java.awt.geom.Line2D.Double
getBounds2D, getP1, getP2, getX1, getX2, getY1, getY2, setLine
 
Methods inherited from class java.awt.geom.Line2D
clone, contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestComponent.TestShapeLink

public TestComponent.TestShapeLink(TestComponent.TestShape in,
                                   int x,
                                   int y)

TestComponent.TestShapeLink

public TestComponent.TestShapeLink(TestComponent.TestShapeLink model,
                                   TestComponent.TestShape in,
                                   TestComponent.TestShape out)
Method Detail

translate

public void translate(int dx,
                      int dy)

translateInput

public void translateInput(int dx,
                           int dy)

translateOutput

public void translateOutput(int dx,
                            int dy)

connect

public void connect(TestComponent.TestShape out)

input

public DiagramConnector input()
Description copied from interface: DiagramConnection
Gets the input of the link

Specified by:
input in interface DiagramConnection
Returns:
the input connector

output

public DiagramConnector output()
Description copied from interface: DiagramConnection
Gets the ioutput of the link

Specified by:
output in interface DiagramConnection
Returns:
the output connector

toString

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