|
||||||||||
| 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.SamplePort
An example subclass of NetPort for the BasicApplication application. As part of the example I constrain the ports to only be on SampleNodes and only connect to SamplePorts.
| Field Summary |
| Fields inherited from class org.tigris.gef.graph.presentation.NetPort |
_edges, _parent, DEFAULT_EDGE_CLASS |
| Fields inherited from class org.tigris.gef.graph.presentation.NetPrimitive |
_changeSup, _highlight |
| Constructor Summary | |
SamplePort(NetNode parent)
Construct a new SamplePort as a port of the given NetNode. |
|
| Method Summary | |
boolean |
canConnectTo(GraphModel gm,
java.lang.Object anotherPort)
Add the constraint that SamplePort's can only be connected to other ports of the same type. |
protected java.lang.Class |
defaultEdgeClass(NetPort otherPort)
reply the java Class to be used to make new arcs. |
| Methods inherited from class org.tigris.gef.graph.presentation.NetPort |
addEdge, dispose, 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 SamplePort(NetNode parent)
| Method Detail |
protected java.lang.Class defaultEdgeClass(NetPort otherPort)
NetPort
defaultEdgeClass in class NetPort
public boolean canConnectTo(GraphModel gm,
java.lang.Object anotherPort)
canConnectTo in interface GraphPortHookscanConnectTo in class NetPort
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||