zeus.gui.graph
Class AbstractGraphModel

java.lang.Object
  extended byzeus.gui.graph.AbstractGraphModel
All Implemented Interfaces:
GraphModel
Direct Known Subclasses:
EngineGraphModel, ReportModel, SocietyModel, SocietyModel, SummaryTaskModel

public abstract class AbstractGraphModel
extends java.lang.Object
implements GraphModel


Field Summary
protected  javax.swing.event.EventListenerList graphModelListeners
           
private static int NODE_ADDED
           
private static int NODE_REMOVED
           
private static int NODE_STATE_CHANGED
           
private static int STRUCTURE_CHANGED
           
 
Constructor Summary
AbstractGraphModel()
           
 
Method Summary
 void addGraphModelListener(GraphModelListener x)
           
private  void fireGraphAction(int type, GraphNode node)
           
protected  void fireGraphNodeAdded(GraphNode node)
           
protected  void fireGraphNodeRemoved(GraphNode node)
           
protected  void fireGraphNodeStateChanged(GraphNode node)
           
protected  void fireGraphStructureChanged()
           
 java.awt.Color getLinkColor(GraphNode from, GraphNode to)
           
 java.util.Vector getViewRelations(GraphNode node)
           
 boolean isLinkVisible(GraphNode from, GraphNode to)
           
abstract  boolean isNodeEditable(GraphNode node)
           
abstract  java.util.Enumeration nodes()
           
 void removeGraphModelListener(GraphModelListener x)
           
abstract  void setValue(GraphNode node, java.lang.Object user_object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRUCTURE_CHANGED

private static final int STRUCTURE_CHANGED
See Also:
Constant Field Values

NODE_ADDED

private static final int NODE_ADDED
See Also:
Constant Field Values

NODE_REMOVED

private static final int NODE_REMOVED
See Also:
Constant Field Values

NODE_STATE_CHANGED

private static final int NODE_STATE_CHANGED
See Also:
Constant Field Values

graphModelListeners

protected javax.swing.event.EventListenerList graphModelListeners
Constructor Detail

AbstractGraphModel

public AbstractGraphModel()
Method Detail

nodes

public abstract java.util.Enumeration nodes()
Specified by:
nodes in interface GraphModel

setValue

public abstract void setValue(GraphNode node,
                              java.lang.Object user_object)
Specified by:
setValue in interface GraphModel

isNodeEditable

public abstract boolean isNodeEditable(GraphNode node)
Specified by:
isNodeEditable in interface GraphModel

getLinkColor

public java.awt.Color getLinkColor(GraphNode from,
                                   GraphNode to)
Specified by:
getLinkColor in interface GraphModel

isLinkVisible

public boolean isLinkVisible(GraphNode from,
                             GraphNode to)
Specified by:
isLinkVisible in interface GraphModel

getViewRelations

public java.util.Vector getViewRelations(GraphNode node)
Specified by:
getViewRelations in interface GraphModel

fireGraphStructureChanged

protected void fireGraphStructureChanged()

fireGraphNodeAdded

protected void fireGraphNodeAdded(GraphNode node)

fireGraphNodeRemoved

protected void fireGraphNodeRemoved(GraphNode node)

fireGraphNodeStateChanged

protected void fireGraphNodeStateChanged(GraphNode node)

addGraphModelListener

public void addGraphModelListener(GraphModelListener x)
Specified by:
addGraphModelListener in interface GraphModel

removeGraphModelListener

public void removeGraphModelListener(GraphModelListener x)
Specified by:
removeGraphModelListener in interface GraphModel

fireGraphAction

private void fireGraphAction(int type,
                             GraphNode node)


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.