|
||||||||||
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.NetPort
org.tigris.gef.demo.PortData
An example subclass of NetPort for the EquipmentApplet demo. As part of the example I constrain the ports to only connect to PortDatas.
EquipmentApplet
,
Serialized FormField Summary |
Fields inherited from class org.tigris.gef.graph.presentation.NetPort |
DEFAULT_EDGE_CLASS |
Fields inherited from class org.tigris.gef.graph.presentation.NetPrimitive |
_changeSup, _highlight |
Constructor Summary | |
PortData(NetNode parent)
Construct a new NetPort with the given parent node and no arcs. |
Method Summary | |
boolean |
canConnectTo(GraphModel gm,
NetPort otherPort)
Add the constraint that PortData's can only be connected to other ports of the same type. |
protected java.lang.Class |
defaultEdgeClass(NetPort otherPort)
If the user starts draggin on this port, he will create a new EdgeData. |
Methods inherited from class org.tigris.gef.graph.presentation.NetPort |
addEdge, canConnectTo, deleteFromModel, getEdges, getId, getParent, getParentEdge, getParentNode, makeEdgeFor, postConnect, postDisconnect, removeEdge |
Methods inherited from class org.tigris.gef.graph.presentation.NetPrimitive |
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getHighlight, 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.GraphPortHooks |
addPropertyChangeListener, removePropertyChangeListener, setHighlight |
Constructor Detail |
public PortData(NetNode parent)
Method Detail |
public boolean canConnectTo(GraphModel gm, NetPort otherPort)
protected java.lang.Class defaultEdgeClass(NetPort otherPort)
defaultEdgeClass
in class NetPort
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |