|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.diagram.DiagramSelectedShape
simtools.diagram.DiagramSelectedLineShape
public abstract class DiagramSelectedLineShape
A DiagramSelectedShape to manage LineInterface
Nested Class Summary | |
---|---|
class |
DiagramSelectedLineShape.TranslatePointsEdit
|
Field Summary |
---|
Fields inherited from class simtools.diagram.DiagramSelectedShape |
---|
p, pd, s |
Constructor Summary | |
---|---|
protected |
DiagramSelectedLineShape(java.awt.Shape s,
java.awt.Point p)
|
Method Summary | |
---|---|
boolean |
canBeSelectedAt(int ox,
int oy)
|
boolean |
canDrawBounds()
Allows to overload selected shape bounds drawing |
void |
drawBounds(java.awt.Graphics2D g2)
Allows to overload selected shape bounds drawing |
java.awt.geom.Rectangle2D |
getInnerBounds()
|
int |
getPointIndex(int ox,
int oy)
|
boolean |
getSelectionStatus(boolean selected)
Check if all the points are selected or if none are selected |
protected abstract boolean |
isSelectedPoint(int index)
|
void |
selectAll(boolean selected)
|
protected abstract void |
selectPoint(int index,
boolean selected)
|
java.awt.Point |
selectPointAt(int ox,
int oy,
boolean selected)
Method used to select a point at a given coordinate |
java.awt.Point |
selectPointsInside(java.awt.geom.Rectangle2D bounds)
Method used to select the points that are inside a rectangle |
javax.swing.undo.UndoableEdit |
translate(int depx,
int depy)
|
Methods inherited from class simtools.diagram.DiagramSelectedShape |
---|
setOrigin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DiagramSelectedLineShape(java.awt.Shape s, java.awt.Point p)
s
- p
- Method Detail |
---|
protected abstract void selectPoint(int index, boolean selected)
protected abstract boolean isSelectedPoint(int index)
public int getPointIndex(int ox, int oy)
public java.awt.Point selectPointAt(int ox, int oy, boolean selected)
ox
- the x coordinateoy
- the y coordinateselected
- true to select the point false overwise
public java.awt.Point selectPointsInside(java.awt.geom.Rectangle2D bounds)
bounds
- the rectangle
public java.awt.geom.Rectangle2D getInnerBounds()
public void selectAll(boolean selected)
selected
- public boolean getSelectionStatus(boolean selected)
selected
- is set to true to check if all selected
and set to false to check if none selectes
public boolean canBeSelectedAt(int ox, int oy)
ox
- oy
-
public javax.swing.undo.UndoableEdit translate(int depx, int depy)
depx
- depy
-
public boolean canDrawBounds()
DiagramSelectedShape
canDrawBounds
in class DiagramSelectedShape
public void drawBounds(java.awt.Graphics2D g2)
DiagramSelectedShape
drawBounds
in class DiagramSelectedShape
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |