uci.gef
Class Guide
java.lang.Object
|
+--uci.gef.Guide
- Direct Known Subclasses:
- GuideGrid
- public abstract class Guide
- extends Object
- implements Serializable
Constrains interactions to certain coordinates. For example
GuideGrid makes objects snap to a grid. Other subclasses might
implement other snapping rules, for example, a polar grid or
gravity (objects cling to other objects when they get close).
- See Also:
GuideGrid, Serialized Form
|
Constructor Summary |
Guide()
|
|
Method Summary |
void |
adjust()
Bring up a dialog box to set the parameters for this
guide. |
abstract void |
snap(Point p)
Modify the given point to satisfy guide conditions (e.g. |
Point |
snapTo(Point p)
Return a NEW Point that is close to p and on the guideline
(e.g., gridline). |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Guide
public Guide()
snapTo
public final Point snapTo(Point p)
- Return a NEW Point that is close to p and on the guideline
(e.g., gridline).
snap
public abstract void snap(Point p)
- Modify the given point to satisfy guide conditions (e.g. be on a
gridline).
adjust
public void adjust()
- Bring up a dialog box to set the parameters for this
guide. E.g., set the size of a grid.