|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCH.ifa.draw.standard.GridConstrainer
public class GridConstrainer
Constrains a point such that it falls on a grid.
DrawingView,
Serialized Form| Constructor Summary | |
|---|---|
GridConstrainer(int x,
int y)
|
|
| Method Summary | |
|---|---|
java.awt.Point |
constrainPoint(java.awt.Point p)
Constrains the given point. |
int |
getStepX()
Gets the x offset to move an object. |
int |
getStepY()
Gets the y offset to move an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridConstrainer(int x,
int y)
| Method Detail |
|---|
public java.awt.Point constrainPoint(java.awt.Point p)
constrainPoint in interface PointConstrainerpublic int getStepX()
getStepX in interface PointConstrainerpublic int getStepY()
getStepY in interface PointConstrainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||