zeus.generator
Class SocietyModel
java.lang.Object
zeus.gui.graph.AbstractGraphModel
zeus.generator.SocietyModel
- All Implemented Interfaces:
- AgentListener, java.util.EventListener, GraphModel
- public class SocietyModel
- extends AbstractGraphModel
- implements AgentListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUPERIORS
static final int SUPERIORS
- See Also:
- Constant Field Values
SUBORDINATES
static final int SUBORDINATES
- See Also:
- Constant Field Values
PEERS
static final int PEERS
- See Also:
- Constant Field Values
COWORKERS
static final int COWORKERS
- See Also:
- Constant Field Values
isNodeEditable
protected boolean isNodeEditable
genmodel
protected GeneratorModel genmodel
nodeTable
protected java.util.Hashtable nodeTable
listeners
protected javax.swing.event.EventListenerList listeners
view
protected int view
links
protected java.util.BitSet links
SocietyModel
public SocietyModel(GeneratorModel genmodel,
boolean isNodeEditable)
SocietyModel
public SocietyModel(GeneratorModel genmodel)
reset
public void reset()
nodes
public java.util.Enumeration nodes()
- Specified by:
nodes in interface GraphModel- Specified by:
nodes in class AbstractGraphModel
setValue
public void setValue(GraphNode node,
java.lang.Object user_object)
- Specified by:
setValue in interface GraphModel- Specified by:
setValue in class AbstractGraphModel
isNodeEditable
public boolean isNodeEditable(GraphNode node)
- Specified by:
isNodeEditable in interface GraphModel- Specified by:
isNodeEditable in class AbstractGraphModel
getLinkColor
public java.awt.Color getLinkColor(GraphNode from,
GraphNode to)
- Specified by:
getLinkColor in interface GraphModel- Overrides:
getLinkColor in class AbstractGraphModel
isLinkVisible
public boolean isLinkVisible(GraphNode from,
GraphNode to)
- Specified by:
isLinkVisible in interface GraphModel- Overrides:
isLinkVisible in class AbstractGraphModel
getViewRelations
public java.util.Vector getViewRelations(GraphNode node)
- Specified by:
getViewRelations in interface GraphModel- Overrides:
getViewRelations in class AbstractGraphModel
getLinkType
protected int getLinkType(GraphNode node1,
GraphNode node2)
getColor
public java.awt.Color getColor(int type)
isLinkVisible
public boolean isLinkVisible(int type)
setView
public void setView(int type)
getView
public int getView()
showLinks
public void showLinks(int type,
boolean state)
removeNodes
public void removeNodes(GraphNode[] input)
addNewNode
public void addNewNode()
addNodes
public void addNodes(GraphNode[] input)
agentStateChanged
public void agentStateChanged(AgentChangeEvent evt)
- Specified by:
agentStateChanged in interface AgentListener
addChangeListener
public void addChangeListener(javax.swing.event.ChangeListener x)
removeChangeListener
public void removeChangeListener(javax.swing.event.ChangeListener x)
fireChanged
protected void fireChanged()
Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.