uci.graph
Interface GraphNodeHooks
- All Known Implementing Classes:
- NetNode
- public abstract interface GraphNodeHooks
- extends Serializable
A set of methods that nodes in a GraphModel may implement. If the
objects you use to represent nodes implement this interface, they
will get the appropriate calls. NetNode implements these.
- See Also:
NetNode
serialVersionUID
public static final long serialVersionUID
postConnect
public void postConnect(GraphModel gm,
Object anotherNode,
Object myPort,
Object otherPort)
- Do some application specific action just after this node is
connected to another node. the arguments contain some info about
what ports were connected.
postDisconnect
public void postDisconnect(GraphModel gm,
Object anotherNode,
Object myPort,
Object otherPort)
- Do some application specific action just after this node is
disconnected from another node. the arguments contain some info
about what ports were connected.
canConnectTo
public boolean canConnectTo(GraphModel gm,
Object otherNode,
Object otherPort,
Object myPort)
- Allow foir application specific rules about which nodes can be
connected to which other nodes. This is called from the NetPort,
so the port has first say as to whether it can be connected to
some other port. NetPort.canConnectTo() just calls
NetNode.canConnectTo(). By default anything can be connected to
anything.
postPlacement
public void postPlacement(Editor ed)
- Do some application specific actions after the node is placed in
a drawing area.
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
initialize
public void initialize(Hashtable props)
setHighlight
public void setHighlight(boolean b)
dispose
public void dispose()