|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The interface GraphController defines the behavior for classes
responsible for notifying Graph and VisualGraphView
objects about changes that have taken place in both a model and in a view.
A GraphController therefore manages the views that are attached
to a given graph.
GraphController is done by means of a
com.tensegrity.graph.view.GraphControllerFactory,
which will hide the particular implementation classes from client code.
Graph,
VisualGraph,
VisualGraphView| Method Summary | |
void |
addVisualGraph(VisualGraphView visualgraphview)
Adds a VisualGraphView to the list of controlled views. |
void |
addVisualGraphs(java.util.List visualgraphs)
Adds all the VisualGraphView instances from the given list
to the controller. |
void |
destroy()
This method is invoked when the application does not longer need the graph controller. |
void |
disable()
Disables the graph controller temporarily until enable() is invoked. |
void |
enable()
Enables the graph controller (the default state) after it was disabled before. |
Graph |
getGraph()
Returns the graph model instance that is being controlled. |
java.util.List |
getVisualGraphs()
Returns the graph/view instances that are being controlled. |
boolean |
isEnabled()
Returns whether the controller is enabled or disabled. |
void |
removeVisualGraph(VisualGraphView visualgraphview)
Removes a VisualGraphView from the list of controlled views. |
void |
setPriviledgedVisualGraph(VisualGraphView visualgraphview)
Sets the preferred view of the controller. |
void |
synchronize()
Tells the controller to synchronize itself. |
void |
synchronize(java.lang.Object info)
Tells the controller to synchronize itself. |
| Methods inherited from interface com.tensegrity.generic.util.Observable |
addObserver, clearChanged, deleteObserver, deleteObservers, getObservers, notifyObservers, notifyObservers, setChanged |
| Method Detail |
public void destroy()
public Graph getGraph()
public boolean isEnabled()
public void disable()
public void enable()
public java.util.List getVisualGraphs()
public void addVisualGraphs(java.util.List visualgraphs)
VisualGraphView instances from the given list
to the controller. (Convenience method.)
visualgraphs - list of visualgraphs to add to the controller.public void addVisualGraph(VisualGraphView visualgraphview)
VisualGraphView to the list of controlled views.
visualgraphview - the VisualGraphView to be under the
control of this controller.public void removeVisualGraph(VisualGraphView visualgraphview)
VisualGraphView from the list of controlled views.
visualgraphview - the VisualGraphView to be removed
from the control of this controller.public void setPriviledgedVisualGraph(VisualGraphView visualgraphview)
visualgraphview - the preferred (master) view.
InvalidArgumentException - if the
argument is not valid (e.g. it doesn't point to a registered view or
is null).public void synchronize()
public void synchronize(java.lang.Object info)
info - additional information object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||