|
|||||||||
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.DiagramSelection
simtools.diagram.test.TestComponent.TestSelection
public class TestComponent.TestSelection
A model selection enables to select and edit several parts of a model diagram at a time
DiagramSelection
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class simtools.diagram.DiagramSelection |
---|
DiagramSelection.ShapeHorizontalPositionComparator, DiagramSelection.ShapeVerticalPositionComparator |
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.TestSelection()
|
Method Summary | |
---|---|
protected boolean |
addShapeAt(int ox,
int oy)
The first shape which contains the given coordinates is added to the selected shapes list. |
protected boolean |
addShapesInside()
All the shapes which are inside the selection area |
protected void |
clear()
Remove all the selected shapes |
java.awt.Shape |
copyConnectionShape(java.awt.Shape s,
DiagramConnector in,
DiagramConnector out)
Copy a connection shape This implementation creates nothing By overriding this method, specif shapes can be managed |
java.awt.Shape |
copyShape(java.awt.Shape s)
Copy a shape (into the clipboard) |
void |
deleteShape(java.awt.Shape s)
Delete a shape By overriding this method, one can use an other iterator on the shapes. |
void |
translateConnectionShape(java.awt.Shape s,
DiagramConnector c,
int dx,
int dy)
Translate a shape connected to an other one This implementation translates links |
void |
translateShape(java.awt.Shape s,
int dx,
int dy)
Translate a shape |
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, 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.TestSelection()
Method Detail |
---|
protected void clear()
clear
in class DiagramSelection
public java.awt.Shape copyShape(java.awt.Shape s)
copyShape
in class DiagramSelection
s
- the shape
public java.awt.Shape copyConnectionShape(java.awt.Shape s, DiagramConnector in, DiagramConnector out)
copyConnectionShape
in class DiagramSelection
s
- the shapein
- the input connectorout
- the output connector
public void deleteShape(java.awt.Shape s)
deleteShape
in class DiagramSelection
s
- the shapepublic void translateShape(java.awt.Shape s, int dx, int dy)
translateShape
in class DiagramSelection
s
- the shapedx
- x translationdy
- y translationpublic void translateConnectionShape(java.awt.Shape s, DiagramConnector c, int dx, int dy)
translateConnectionShape
in class DiagramSelection
s
- the shapec
- the connectordx
- x translationdy
- y translationprotected boolean addShapeAt(int ox, int oy)
addShapeAt
in class DiagramSelection
ox
- the x coordinateoy
- the y coordinateprotected boolean addShapesInside()
addShapesInside
in class DiagramSelection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |