|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.graph.presentation.NetPrimitive
org.tigris.gef.graph.presentation.NetEdge
This class models an edge in our underlying connected graph model. This class is used by the DefaultGraphModel. If you define your own GraphModel, you can user your own application-specific objects as edges.
Field Summary | |
protected NetPort |
_destPort
|
protected java.util.Vector |
_ports
The ports that are part of this edge. |
protected NetPort |
_sourcePort
The start and end ports of this edge. |
Fields inherited from class org.tigris.gef.graph.presentation.NetPrimitive |
_changeSup, _highlight |
Constructor Summary | |
NetEdge()
Construct a new NetEdge |
Method Summary | |
boolean |
connect(GraphModel gm,
java.lang.Object srcPort,
java.lang.Object destPort)
Connect the source and destination ports, iff they agree to being connected (i.e., canConnectTo() returns true). |
void |
dispose()
Remove this NetEdge from the underlying connected graph model. |
NetPort |
getDestPort()
|
java.util.Vector |
getPorts()
|
NetPort |
getSourcePort()
|
abstract org.tigris.gef.presentation.FigEdge |
makePresentation(Layer lay)
Abstract method that returns a FigEdge to represent this edge in a given Layer. |
NetPort |
otherEnd(NetPort oneEnd)
Given one port (source or destination), reply the other port (destination or source). |
org.tigris.gef.presentation.FigEdge |
presentationFor(Layer lay)
The Fig to use in views of a given type |
void |
setDestPort(NetPort d)
|
void |
setPorts(java.util.Vector v)
|
void |
setSourcePort(NetPort s)
|
Methods inherited from class org.tigris.gef.graph.presentation.NetPrimitive |
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getHighlight, getId, removePropertyChangeListener, setHighlight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.tigris.gef.graph.GraphEdgeHooks |
addPropertyChangeListener, removePropertyChangeListener, setHighlight |
Field Detail |
protected NetPort _sourcePort
protected NetPort _destPort
protected java.util.Vector _ports
Constructor Detail |
public NetEdge()
Method Detail |
public void setSourcePort(NetPort s)
public NetPort getSourcePort()
public void setDestPort(NetPort d)
public NetPort getDestPort()
public NetPort otherEnd(NetPort oneEnd)
public java.util.Vector getPorts()
public void setPorts(java.util.Vector v)
public boolean connect(GraphModel gm, java.lang.Object srcPort, java.lang.Object destPort)
public void dispose()
dispose
in interface GraphEdgeHooks
public org.tigris.gef.presentation.FigEdge presentationFor(Layer lay)
public abstract org.tigris.gef.presentation.FigEdge makePresentation(Layer lay)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |