All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.standard.GridConstrainer
java.lang.Object
|
+----CH.ifa.draw.standard.GridConstrainer
- public class GridConstrainer
- extends Object
- implements PointConstrainer, Serializable
Constrains a point such that it falls on a grid.
- See Also:
- DrawingView
-
GridConstrainer(int, int)
-
-
constrainPoint(Point)
- Constrains the given point.
-
getStepX()
- Gets the x offset to move an object.
-
getStepY()
- Gets the y offset to move an object.
GridConstrainer
public GridConstrainer(int x,
int y)
constrainPoint
public Point constrainPoint(Point p)
- Constrains the given point.
- Returns:
- constrained point.
getStepX
public int getStepX()
- Gets the x offset to move an object.
getStepY
public int getStepY()
- Gets the y offset to move an object.
All Packages Class Hierarchy This Package Previous Next Index