|
|||||||||
| 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.shapes.ShapesContainer.GraphicSelection
public class ShapesContainer.GraphicSelection
| Nested 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 |
| Method Summary | |
|---|---|
protected boolean |
addAllShapes()
Add all the shapes to the selection By overriding this method, one can use an other iterator on the shapes. |
protected boolean |
addShapeAt(int ox,
int oy)
The first shape which contains the given coordinates is added to the selected shapes list. |
protected void |
addShapes(java.util.Vector v)
|
java.awt.Shape |
copyShape(java.awt.Shape s)
To copy a shape only Rectangle shapes are copied By overriding this method, specif shapes can be managed |
DiagramComponent |
getComponent()
Gets the component using this diagram selection. |
java.awt.Point |
getShapeOrigin(java.awt.Shape s,
java.awt.Point p)
Computes shape origin before its move for a rectangle the top-left point coordinate is returned for a default shape the top-left point coordinate of its bounds is returned By overriding this method, specif shapes can be managed |
protected void |
replaceShapes(java.util.Vector v,
AbstractShape as)
Replace a list of shapes by a new one |
protected void |
setToShape(AbstractShape as)
|
protected void |
setToShapes(java.util.Vector v)
|
void |
translateShape(java.awt.Shape s,
int dx,
int dy)
Translates a shape only Rectangle shapes are translated By overriding this method, specif shapes can be managed |
| 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 |
| Method Detail |
|---|
public DiagramComponent getComponent()
DiagramSelection
getComponent in class DiagramSelection
public java.awt.Point getShapeOrigin(java.awt.Shape s,
java.awt.Point p)
DiagramSelection
getShapeOrigin in class DiagramSelections - the shapep - a Point to put coordinates into
(if null then a new Point is returned)
public java.awt.Shape copyShape(java.awt.Shape s)
DiagramSelection
copyShape in class DiagramSelections - the shape
public void translateShape(java.awt.Shape s,
int dx,
int dy)
DiagramSelection
translateShape in class DiagramSelections - the shapedx - x translationdy - y translationprotected boolean addAllShapes()
DiagramSelection
addAllShapes in class DiagramSelection
protected boolean addShapeAt(int ox,
int oy)
DiagramSelection
addShapeAt in class DiagramSelectionox - the x coordinateoy - the y coordinateprotected void setToShape(AbstractShape as)
protected void setToShapes(java.util.Vector v)
protected void addShapes(java.util.Vector v)
protected void replaceShapes(java.util.Vector v,
AbstractShape as)
v - the shapes to deleteas - the shape to add
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||