|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
simtools.diagram.test.TestComponent.TestShape
public class TestComponent.TestShape
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D |
---|
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
Field Summary |
---|
Fields inherited from class java.awt.Rectangle |
---|
height, width, x, y |
Fields inherited from class java.awt.geom.Rectangle2D |
---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
Constructor Summary | |
---|---|
TestComponent.TestShape(int x,
int y,
int w,
int h)
|
|
TestComponent.TestShape(TestComponent.TestShape ts)
|
Method Summary | |
---|---|
void |
addConnection(DiagramConnection dc)
|
boolean |
allowsInputConnection(DiagramConnector in)
Checks if this connector can be connected with an output connector |
boolean |
allowsOutputConnection(DiagramConnector out)
Checks if this connector can be connected with an input connector |
DiagramConnector |
connectorOwner()
Returns the connector owner of this connector if any |
java.util.Enumeration |
getConnections()
Gets the list of DiagramConnection connected with this connector |
void |
removeAllConnections()
|
void |
removeConnection(DiagramConnection dc)
|
Methods inherited from class java.awt.Rectangle |
---|
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union |
Methods inherited from class java.awt.geom.Rectangle2D |
---|
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
Methods inherited from class java.awt.geom.RectangularShape |
---|
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.Shape |
---|
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects |
Constructor Detail |
---|
public TestComponent.TestShape(int x, int y, int w, int h)
public TestComponent.TestShape(TestComponent.TestShape ts)
Method Detail |
---|
public java.util.Enumeration getConnections()
DiagramConnector
getConnections
in interface DiagramConnector
public boolean allowsInputConnection(DiagramConnector in)
DiagramConnector
allowsInputConnection
in interface DiagramConnector
in
- the output connector
public boolean allowsOutputConnection(DiagramConnector out)
DiagramConnector
allowsOutputConnection
in interface DiagramConnector
out
- the input connector
public DiagramConnector connectorOwner()
DiagramConnector
connectorOwner
in interface DiagramConnector
public void addConnection(DiagramConnection dc)
public void removeConnection(DiagramConnection dc)
public void removeAllConnections()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |