org.tigris.gef.graph.presentation
Class NetPrimitive
java.lang.Object
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
Constructor Summary |
NetPrimitive()
Construct a new net-level object, currently does nothing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_changeSup
protected java.beans.PropertyChangeSupport _changeSup
_highlight
protected boolean _highlight
NetPrimitive
public NetPrimitive()
- Construct a new net-level object, currently does nothing
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)