|
|||||||
| 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(boolean right)
Returns the horizontal step size when the selection is moved with the arrow keys. |
int |
getStepY(boolean down)
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(boolean right)
right - true if selection is moved right; false otherwise
public int getStepY(boolean down)
down - true if selection is moved down; false otherwise
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||