|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.Guide
org.tigris.gef.base.GuideGrid
Constrains interactions to certain coordinates. In this case, GuideGrid makes objects snap to a grid. Note that GuideGrid is an invisible object that controls the behavior of the Editor and Modes. It is conceptually related to the visible grid (implemented in LayerGrid), but there is no functional relationship between them in this framework.
Field Summary | |
protected int |
_gridSize
Size of the grid. |
Constructor Summary | |
GuideGrid(int size)
Make a new GuideGrid instance with the given grid size. |
Method Summary | |
void |
adjust()
Bring up a dialog box to set the grid snap parameters. |
int |
gridSize()
Reply the size of the grid to snap points to. |
void |
gridSize(int g)
Set the size of the grid. |
void |
snap(java.awt.Point p)
Modify the given point to be on the guideline (In this case, a gridline) |
Methods inherited from class org.tigris.gef.base.Guide |
snapTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int _gridSize
Constructor Detail |
public GuideGrid(int size)
Method Detail |
public int gridSize()
public void gridSize(int g)
public void snap(java.awt.Point p)
snap
in class Guide
public void adjust()
adjust
in class Guide
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |