|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.upb.swt.epctools.controllers.SnapToGrid
public abstract class SnapToGrid
This static class snaps geometrical points to a grid with a statically defined spacing value.
| Field Summary | |
|---|---|
(package private) static int |
m_grid_space
|
| Constructor Summary | |
|---|---|
SnapToGrid()
|
|
| Method Summary | |
|---|---|
static int |
snap(int x)
Snap the value of x to the grid. |
static org.eclipse.draw2d.geometry.Point |
snap(org.eclipse.draw2d.geometry.Point p)
Snaps point p to the grid. |
static java.awt.Point |
snap(java.awt.Point p)
Snaps point p to the grid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static int m_grid_space
| Constructor Detail |
|---|
public SnapToGrid()
| Method Detail |
|---|
public static org.eclipse.draw2d.geometry.Point snap(org.eclipse.draw2d.geometry.Point p)
public static java.awt.Point snap(java.awt.Point p)
public static int snap(int x)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||