public static class Force.Node extends Node
Force
, The class provides
accessors for the nodes key attributes, its position, previous position,
fixed (immovable) and weight (number of links).Modifier | Constructor and Description |
---|---|
protected |
Force.Node() |
Modifier and Type | Method and Description |
---|---|
boolean |
fixed() |
void |
fixed(boolean fixed)
sets a boolean indicating whether node position is locked.
|
int |
index() |
double |
px() |
void |
px(double px)
sets the previous the x coordinate
|
double |
py() |
void |
py(double py)
sets the previous y coordinate
|
int |
weight() |
public final int index()
public final double px()
public final void px(double px)
public final double py()
public final void py(double py)
public final boolean fixed()
public final void fixed(boolean fixed)
public final int weight()
Copyright © 2015 gwt-d3. All rights reserved.