zeus.visualiser.society
Class SocietyModel

java.lang.Object
  extended byzeus.gui.graph.AbstractGraphModel
      extended byzeus.visualiser.society.SocietyModel
All Implemented Interfaces:
GraphModel

public class SocietyModel
extends AbstractGraphModel


Field Summary
(package private) static int COWORKERS
           
protected  java.util.Properties imageTable
           
protected  boolean isNodeEditable
           
protected  java.util.BitSet links
           
protected  javax.swing.event.EventListenerList listeners
           
protected  java.util.Hashtable nodeTable
           
(package private) static int PEERS
           
(package private) static int SUBORDINATES
           
(package private) static int SUPERIORS
           
protected  int view
           
 
Fields inherited from class zeus.gui.graph.AbstractGraphModel
graphModelListeners
 
Constructor Summary
SocietyModel()
           
 
Method Summary
 GraphNode addAgent(java.lang.String name)
           
 GraphNode addAgent(java.lang.String name, java.lang.String type)
           
 void addAgents(java.util.Vector input)
           
 void addChangeListener(javax.swing.event.ChangeListener x)
           
 void addRelations(java.lang.String name, java.util.Vector List)
           
protected  void fireChanged()
           
 java.awt.Color getColor(int type)
           
 java.awt.Color getLinkColor(GraphNode from, GraphNode to)
           
protected  int getLinkType(GraphNode node1, GraphNode node2)
           
 GraphNode getNode(java.lang.String name)
           
 int getView()
           
 java.util.Vector getViewRelations(GraphNode node)
           
 boolean isLinkVisible(GraphNode from, GraphNode to)
           
 boolean isLinkVisible(int type)
           
 boolean isNodeEditable(GraphNode node)
           
 java.util.Enumeration nodes()
           
 void removeChangeListener(javax.swing.event.ChangeListener x)
           
 void removeNodes(GraphNode[] input)
           
 void reset()
           
 void setValue(GraphNode node, java.lang.Object user_object)
           
 void setView(int type)
           
 void showLinks(int type, boolean state)
           
 
Methods inherited from class zeus.gui.graph.AbstractGraphModel
addGraphModelListener, fireGraphNodeAdded, fireGraphNodeRemoved, fireGraphNodeStateChanged, fireGraphStructureChanged, removeGraphModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

nodeTable

protected java.util.Hashtable nodeTable

imageTable

protected java.util.Properties imageTable

listeners

protected javax.swing.event.EventListenerList listeners

view

protected int view

links

protected java.util.BitSet links
Constructor Detail

SocietyModel

public SocietyModel()
Method Detail

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)

getNode

public GraphNode getNode(java.lang.String name)

addAgent

public GraphNode addAgent(java.lang.String name,
                          java.lang.String type)

addAgents

public void addAgents(java.util.Vector input)

addAgent

public GraphNode addAgent(java.lang.String name)

addRelations

public void addRelations(java.lang.String name,
                         java.util.Vector List)

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.