org.jgraph.graph
Interface Port
- GraphCell
- DefaultPort
Defines the requirements for an object that
represents a port in a graph model.
boolean | addEdge(Object edge) - Adds
edge to the list of ports.
|
Iterator | edges() - Returns an iterator of the edges connected
to the port.
|
Port | getAnchor() - Returns the anchor of the port.
|
boolean | removeEdge(Object edge) - Removes
edge from the list of ports.
|
void | setAnchor(Port port) - Sets the anchor of the port.
|
addEdge
public boolean addEdge(Object edge)
Adds edge
to the list of ports.
edges
public Iterator edges()
Returns an iterator of the edges connected
to the port.
getAnchor
public Port getAnchor()
Returns the anchor of the port.
removeEdge
public boolean removeEdge(Object edge)
Removes edge
from the list of ports.
setAnchor
public void setAnchor(Port port)
Sets the anchor of the port.
Copyright (C) 2001-2006 Gaudenz Alder. All rights reserved.