ix.iview.igraph
Class ExpansionModel
java.lang.Object
  
lt.monarch.graph.AbstractGraphModel
      
ix.iview.igraph.ExpansionModel
- All Implemented Interfaces: 
 - lt.monarch.graph.GraphModel
 
public class ExpansionModel
- extends lt.monarch.graph.AbstractGraphModel
 
graph model for the electrical demo
 
 
 
 
| Methods inherited from class lt.monarch.graph.AbstractGraphModel | 
addModelListener, fireModelChanged, fireNodeAdded, fireNodeChanged, fireNodeRemoved, removeModelListener | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
currentAction
public UIRefinement currentAction
editor
public ActionEditorPanel editor
ExpansionModel
public ExpansionModel(UIRefinement uir)
ExpansionModel
public ExpansionModel()
setPanel
public void setPanel(ActionEditorPanel p)
 
setAction
public void setAction(UIRefinement uir)
 
updateAction
public void updateAction()
- Updates the current action from the graph
 
 
updateAction
public void updateAction(UIRefinement uir)
- Updates the given action from the graph
 
 
expandNode
public void expandNode(ExpansionModel.NodeComponent node)
 
loadLink
protected void loadLink(java.lang.Object o)
                 throws java.lang.RuntimeException
- Throws:
 java.lang.RuntimeException
 
findNode
protected ExpansionModel.NodeComponent findNode(java.lang.Object o)
- Finds the NodeComponent referenced by the given object.
 
 
getNodes
public java.util.Iterator getNodes()
- Specified by:
 getNodes in interface lt.monarch.graph.GraphModel- Specified by:
 getNodes in class lt.monarch.graph.AbstractGraphModel
 
 
getLinksFrom
public java.util.Iterator getLinksFrom(java.lang.Object p)
- Specified by:
 getLinksFrom in interface lt.monarch.graph.GraphModel- Specified by:
 getLinksFrom in class lt.monarch.graph.AbstractGraphModel
 
 
fireLinkRemoved
protected void fireLinkRemoved(java.lang.Object p1,
                               java.lang.Object p2)
- Overrides:
 fireLinkRemoved in class lt.monarch.graph.AbstractGraphModel
 
 
fireLinkAdded
protected void fireLinkAdded(java.lang.Object p1,
                             java.lang.Object p2)
- Overrides:
 fireLinkAdded in class lt.monarch.graph.AbstractGraphModel
 
 
addLink
public void addLink(java.lang.Object o1,
                    java.lang.Object o2)
 
getLinkStrategy
public lt.monarch.graph.plugins.LinkDragStrategy getLinkStrategy()
 
addNewNode
public java.lang.Object addNewNode()
- Called when a node is added by the user.
 
 
addNode
public java.lang.Object addNode(UINodeSpec node)
 
deleteNode
public void deleteNode(NodeSpec node)
 
deleteNodeView
public void deleteNodeView(ExpansionModel.NodeComponent node)
 
deleteAllNodeViews
public void deleteAllNodeViews()