|
||||||||||
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.Mover
Moves a component (may be a Container, e.g. the selection)
Field Summary |
Fields inherited from class fdda.dialog.java2d.AbstractManipulator |
graphicHolder, painter |
Constructor Summary | |
Mover(GraphicHolder graphicHolder)
Constructor |
Method Summary | |
void |
execute(double x,
double y)
Moves the components. |
void |
finish(double x,
double y)
Finishes the action, making the changes permanent. |
void |
start(Component component)
Starts the action, using the specified component |
void |
start(double x,
double y)
The current selection is used as the component to move. |
Object |
visitComponent(Component component)
General visit method for not otherwise specified components |
Object |
visitContainer(Container container)
Visit a container |
Object |
visitLine(Line line)
Visit a line |
Object |
visitLineSegment(LineSegment segment)
Visit a segment of a line |
Object |
visitMessage(Message message)
Visit a message |
Object |
visitNode(Node node)
Visit a node |
Object |
visitPoint(Point point)
Visit a point. |
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 Mover(GraphicHolder graphicHolder)
graphicHolder
- the graphicHolderMethod Detail |
public void start(Component component) throws NoSuitableComponentException
Manipulator
start
in interface Manipulator
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
start
in interface Manipulator
x
- the x coordinatey
- the y coordinate
NoSuitableComponentException
- if no component that could be used for
the action of the manipulator is at that pointManipulator.start(double, double)
public void execute(double x, double y) throws NoSuitableComponentException
execute
in interface Manipulator
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 startManipulator.execute(double, double)
public void finish(double x, double y) throws NoSuitableComponentException
Manipulator
finish
in interface Manipulator
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 Object visitLine(Line line)
ComponentVisitor
visitLine
in interface ComponentVisitor
line
- the line
public Object visitLineSegment(LineSegment segment)
Java2DComponentVisitor
visitLineSegment
in interface Java2DComponentVisitor
segment
- the segment
public Object visitComponent(Component component)
ComponentVisitor
visitComponent
in interface ComponentVisitor
component
- the component to visit
public Object visitNode(Node node)
ComponentVisitor
visitNode
in interface ComponentVisitor
node
- the node
public Object visitPoint(Point point)
Java2DComponentVisitor
visitPoint
in interface Java2DComponentVisitor
point
- the point
public Object visitContainer(Container container)
ComponentVisitor
visitContainer
in interface ComponentVisitor
container
- the container
public Object visitMessage(Message message)
ComponentVisitor
visitMessage
in interface ComponentVisitor
message
- the message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |