|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the manipulators that use and change graphical components. Command pattern is used here. Usually, a manipulators methods are called in the order start, execute, finish, though in rare cases execute may be skipped. These messages can take coordinates, probably the current mouse pointer position (e.g. while dragging).
Method Summary | |
void |
execute(double x,
double y)
Executes the action. |
void |
finish(double x,
double y)
Finishes the action, making the changes permanent. |
GraphicHolder |
getGraphicHolder()
Returns the graphics holder |
void |
setGraphicHolder(GraphicHolder graphicHolder)
Sets the object holding the graphics |
void |
start(Component component)
Starts the action, using the specified component |
void |
start(double x,
double y)
Starts the action. |
Method Detail |
public void start(Component component) throws NoSuitableComponentException
component
- the component
NoSuitableComponentException
- if the component can't be used for the
action of the manipulatorpublic void start(double x, double y) throws NoSuitableComponentException
x
- the x coordinatey
- the y coordinate
NoSuitableComponentException
- if no component that could be used for
the action of the manipulator is at that pointpublic void execute(double x, double y) throws NoSuitableComponentException
x
- 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 startpublic void finish(double x, double y) throws NoSuitableComponentException
x
- 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 startpublic void setGraphicHolder(GraphicHolder graphicHolder)
graphicHolder
- the graphics holderpublic GraphicHolder getGraphicHolder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |