|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.wilmascope.control.GraphControl
public class GraphControl
GraphControl gives the access point or facade for the WilmaGraph drawing engine.
Nested Class Summary | |
---|---|
class |
GraphControl.Cluster
the interface for clusters which are collections of nodes, note that a cluster is also a node so you can add a cluster as a member to a cluster using the GraphControl.Cluster.addNode(GraphControl.Node) method |
class |
GraphControl.Edge
The interface for edges |
class |
GraphControl.ForceFacade
|
class |
GraphControl.GraphElementFacade
the basic interface common to all GraphElements |
class |
GraphControl.Node
the interface for nodes |
Constructor Summary | |
---|---|
GraphControl(int xsize,
int ysize)
|
Method Summary | |
---|---|
void |
addObserver(LayoutObserver o)
|
void |
centreGraph()
|
void |
freeze()
Net effect is to freeze the layout animation |
GraphCanvas |
getGraphCanvas()
|
int |
getIterationsPerFrame()
|
static PickListener |
getPickListener()
|
GraphControl.Cluster |
getRootCluster()
get a reference to the root cluster of the graph |
protected void |
iterate()
|
protected void |
notifyLayoutObservers()
|
void |
reset()
|
void |
setIterationsPerFrame(int iterations)
|
void |
setLayoutObserver(java.util.Observer o)
|
void |
setRootCluster(GraphControl.Cluster rootCluster)
|
void |
setRootPickingClient(PickingClient client)
|
void |
unfreeze()
Net effect is to unfreeze the layout animation |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.Class graphElementClass
GraphControl.GraphElementFacade
class that can be passed into
PickListener.enableMultiPicking(int, java.lang.Class[])
and
PickListener.setSinglePickClient(org.wilmascope.control.PickClient, java.lang.Class)
public static java.lang.Class nodeClass
GraphControl.Node
class that can be passed into
PickListener.enableMultiPicking(int, java.lang.Class[])
and
PickListener.setSinglePickClient(org.wilmascope.control.PickClient, java.lang.Class)
public static java.lang.Class edgeClass
GraphControl.Edge
class that can be passed into
PickListener.enableMultiPicking(int, java.lang.Class[])
and
PickListener.setSinglePickClient(org.wilmascope.control.PickClient, java.lang.Class)
public static java.lang.Class clusterClass
GraphControl.Cluster
class that can be passed into
PickListener.enableMultiPicking(int, java.lang.Class[])
and
PickListener.setSinglePickClient(org.wilmascope.control.PickClient, java.lang.Class)
Constructor Detail |
---|
public GraphControl(int xsize, int ysize)
Method Detail |
---|
public GraphControl.Cluster getRootCluster()
public void setRootCluster(GraphControl.Cluster rootCluster)
public void setRootPickingClient(PickingClient client)
protected void iterate()
public void centreGraph()
public GraphCanvas getGraphCanvas()
public void setIterationsPerFrame(int iterations)
public void setLayoutObserver(java.util.Observer o)
public int getIterationsPerFrame()
public void freeze()
public void unfreeze()
public void reset()
public static PickListener getPickListener()
public void addObserver(LayoutObserver o)
protected void notifyLayoutObservers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |