org.tigris.gef.graph.presentation
Class NetPrimitive

java.lang.Object
  extended by org.tigris.gef.graph.presentation.NetPrimitive
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NetEdge, NetList, NetNode, NetPort

public abstract class NetPrimitive
extends java.lang.Object
implements java.io.Serializable

Abstract superclass for all Net-level objects. I currently anticipate exactly 4 subclasses: NetNode, NetPort, NetEdge, and NetList.

The classes that subclass from this class are all used by DefaulGraphModel. You can also define your own GraphModel with your own application-specific objects for nodes, ports, and edges.

This class may be removed from future versions of GEF.

See Also:
DefaultGraphModel, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport _changeSup
           
protected  boolean _highlight
           
 
Constructor Summary
NetPrimitive()
          Construct a new net-level object, currently does nothing
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void firePropertyChange(java.lang.String pName, boolean oldV, boolean newV)
           
 void firePropertyChange(java.lang.String pName, int oldV, int newV)
           
 void firePropertyChange(java.lang.String pName, java.lang.Object oldV, java.lang.Object newV)
           
 boolean getHighlight()
          Draw the user's attention to any and all visualizations of this net-level object.
abstract  java.lang.String getId()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setHighlight(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_changeSup

protected java.beans.PropertyChangeSupport _changeSup

_highlight

protected boolean _highlight
Constructor Detail

NetPrimitive

public NetPrimitive()
Construct a new net-level object, currently does nothing

Method Detail

getHighlight

public boolean getHighlight()
Draw the user's attention to any and all visualizations of this net-level object.


setHighlight

public void setHighlight(boolean b)

getId

public abstract java.lang.String getId()

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

firePropertyChange

public void firePropertyChange(java.lang.String pName,
                               java.lang.Object oldV,
                               java.lang.Object newV)

firePropertyChange

public void firePropertyChange(java.lang.String pName,
                               boolean oldV,
                               boolean newV)

firePropertyChange

public void firePropertyChange(java.lang.String pName,
                               int oldV,
                               int newV)