|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--fdda.dialog.java2d.AbstractManipulator
|
+--fdda.dialog.java2d.Selector
Selects movable components in a rectangle dragged open by the user.
| Field Summary |
| Fields inherited from class fdda.dialog.java2d.AbstractManipulator |
graphicHolder, painter |
| Constructor Summary | |
Selector(GraphicHolder graphicHolder)
Constructor |
|
| Method Summary | |
void |
execute(double x,
double y)
Executes the action. |
void |
finish(double x,
double y)
Finishes the action, making the changes permanent. |
void |
start(Component component)
Calculates the starting point from the component. |
void |
start(double x,
double y)
Starts the action. |
| Methods inherited from class fdda.dialog.java2d.AbstractManipulator |
getGraphicHolder, moveToGrid, setGraphicHolder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Selector(GraphicHolder graphicHolder)
graphicHolder - the graphics holder| Method Detail |
public void start(Component component)
throws NoSuitableComponentException
start in interface Manipulatorcomponent - the component
NoSuitableComponentException - if the component can't be used for the
action of the manipulatorManipulator.start(fdda.graphics.Component)
public void start(double x,
double y)
throws NoSuitableComponentException
Manipulator
start in interface Manipulatorx - the x coordinatey - the y coordinate
NoSuitableComponentException - if no component that could be used for
the action of the manipulator is at that point
public void execute(double x,
double y)
throws NoSuitableComponentException
Manipulator
execute in interface Manipulatorx - the new x coordinate (may not be important)y - the new y coordinate (may not be important)
NoSuitableComponentException - if no suitable component was selected
first by calling start
public void finish(double x,
double y)
throws NoSuitableComponentException
Manipulator
finish in interface Manipulatorx - the new x coordinate (may not be important)y - the new y coordinate (may not be important)
NoSuitableComponentException - if no suitable component was selected
first by calling start
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||