|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
A PointConstrainer is used to restrict the coordinates used when the mouse is clicked. The methods defined in this interface are used by the draw view.
| Method Summary | |
java.awt.Point |
constrainPoint(java.awt.Point p)
Returns constrained coordinates for p, e.g. rounded to a grid. |
int |
getStepX()
Returns the horizontal step size when the selection is moved with the arrow keys. |
int |
getStepY()
Returns the vertical step size when the selection is moved with the arrow keys. |
| Method Detail |
public java.awt.Point constrainPoint(java.awt.Point p)
p - mouse coordinates
public int getStepX()
public int getStepY()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||