uci.graph
Interface GraphPortHooks
- All Known Implementing Classes:
- NetPort
- public abstract interface GraphPortHooks
- extends Serializable
A set of methods that ports in a GraphModel may implement. If the
objects you use to represent ports implement this interface, they
will get the appropriate calls. NetPort implements these.
- See Also:
NetPort
serialVersionUID
public static final long serialVersionUID
canConnectTo
public boolean canConnectTo(GraphModel gm,
Object anotherPort)
- Reply true if this port can legally be connected to the given
port. Subclasses may implement this to reflect application
specific connection constraints. By default, each port just
defers that decision to its parent NetNode. By convention, your
implementation should return false if super.canConnectTo() would
return false (i.e., deeper subclasses get more constrained). I
don't know if that is a good convention.
postConnect
public void postConnect(GraphModel gm,
Object edge)
- Application specific hook that is called after a successful
connection.
postDisconnect
public void postDisconnect(GraphModel gm,
Object edge)
- Application specific hook that is called after a
disconnection. (for now, all disconnections are assumed
legal).
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
setHighlight
public void setHighlight(boolean b)
dispose
public void dispose()