|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.view.VisualNodePlacement
This class implements basic node placement and consists of static methods for simple node placement tasks.
| Method Summary | |
static void |
circular(VisualGraph visualgraph,
double rangeX,
double rangeY)
Places node in a circle depending on their index in the graph. |
static void |
origin(VisualGraph visualgraph)
Places all nodes at the coordinate origin (0.0, 0.0) |
static void |
random(VisualGraph visualgraph,
double minX,
double minY,
double rangeX,
double rangeY)
Places nodes randomly within the given rectangular bounds. |
static void |
random(VisualGraph visualgraph,
VisualNode visualnode,
double minX,
double minY,
double rangeX,
double rangeY)
Places a single visualnodet randomly. |
static void |
random(VisualGraph visualgraph,
VisualNode visualnode,
double minX,
double minY,
double rangeX,
double rangeY,
java.util.Random rnd)
Places a single visualnodet randomly. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final void origin(VisualGraph visualgraph)
visualgraph - the graph view to place the nodes in.
public static final void circular(VisualGraph visualgraph,
double rangeX,
double rangeY)
visualgraph - the graph view to place the nodes in.rangeX - oval's x coordinate range.rangeY - oval's y coordinate range.
public static final void random(VisualGraph visualgraph,
double minX,
double minY,
double rangeX,
double rangeY)
visualgraph - the graph view to place the nodes in.minX - the minimum x coordinate.minY - the minimum y coordinate.rangeX - the x coordinate range.rangeY - the y coordinate range.
public static final void random(VisualGraph visualgraph,
VisualNode visualnode,
double minX,
double minY,
double rangeX,
double rangeY)
visualgraph - the visualgraph of the visualnode to place.visualnode - the visualnode to place.minX - the minimum x coordinate.minY - the minimum y coordinate.rangeX - the x coordinate range.rangeY - the y coordinate range.
public static final void random(VisualGraph visualgraph,
VisualNode visualnode,
double minX,
double minY,
double rangeX,
double rangeY,
java.util.Random rnd)
visualgraph - the visualgraph of the visualnode to place.visualnode - the visualnode to place.minX - the minimum x coordinate.minY - the minimum y coordinate.rangeX - the x coordinate range.rangeY - the y coordinate range.rnd - the random generator to use.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||