|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.dialog.java2d.AbstractManipulator
Abstract superclass of all manipulators.
Field Summary | |
protected GraphicHolder |
graphicHolder
the graphics holder |
protected Painter |
painter
the painter used for redrawing the components |
Constructor Summary | |
AbstractManipulator(GraphicHolder graphicHolder)
Constructor |
Method Summary | |
GraphicHolder |
getGraphicHolder()
Returns the graphics holder |
protected double |
moveToGrid(double u,
boolean isX)
Changes a coordinate so that it lies on the grid |
void |
setGraphicHolder(GraphicHolder graphicHolder)
Sets the object holding the graphics |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fdda.dialog.java2d.Manipulator |
execute, finish, start, start |
Field Detail |
protected GraphicHolder graphicHolder
protected Painter painter
Constructor Detail |
public AbstractManipulator(GraphicHolder graphicHolder)
graphicHolder
- the object holding the graphicsMethod Detail |
public GraphicHolder getGraphicHolder()
Manipulator
getGraphicHolder
in interface Manipulator
public void setGraphicHolder(GraphicHolder graphicHolder)
Manipulator
setGraphicHolder
in interface Manipulator
graphicHolder
- the graphics holderprotected final double moveToGrid(double u, boolean isX)
u
- the old coordinateisX
- whether the coordinate is an x coordinate (else it's y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |