|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
cz.cmc.tcgui.TCPort
Title: class TCPort
Description:
Copyright: Copyright (c) 2003
Company: CMC Computers
Nested Class Summary |
Nested classes inherited from class org.jgraph.graph.DefaultGraphCell |
org.jgraph.graph.DefaultGraphCell.ValueChangeHandler |
Field Summary | |
protected org.jgraph.graph.Port |
anchor
Reference to the anchor of this port |
protected HashSet |
edges
Edges that are connected to the port |
Fields inherited from class org.jgraph.graph.DefaultGraphCell |
attributes, defaultBounds |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, EMPTY_ENUMERATION, children, parent, userObject |
Constructor Summary | |
TCPort(Object userObject)
Constructs a vertex that holds a reference to the specified user object. |
|
TCPort(Object userObject,
org.jgraph.graph.Port anchor)
Constructs a vertex that holds a reference to the specified user object and a reference to the specified anchor. |
Method Summary | |
boolean |
addEdge(Object edge)
Adds edge to the list of ports. |
Object |
clone()
Create a clone of the cell. |
TCPortView |
createDefaultView(TCGraph g,
org.jgraph.graph.CellMapper cm)
Creates default view object for this TCPort. |
Iterator |
edges()
Returns an iterator of the edges connected to the port. |
org.jgraph.graph.Port |
getAnchor()
Returns the anchor of this port. |
Set |
getEdges()
Returns the anchor of this port. |
boolean |
removeEdge(Object edge)
Removes edge from the list of ports. |
void |
setAnchor(org.jgraph.graph.Port port)
Sets the anchor of this port. |
void |
setEdges(Set edges)
Sets the anchor of this port. |
Methods inherited from class org.jgraph.graph.DefaultGraphCell |
cloneUserObject, getAttributes, getChildren, changeAttributes, setAttributes, setUserObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jgraph.graph.GraphCell |
getAttributes, changeAttributes, setAttributes |
Field Detail |
protected HashSet edges
protected org.jgraph.graph.Port anchor
Constructor Detail |
public TCPort(Object userObject)
userObject
- reference to the user objectpublic TCPort(Object userObject, org.jgraph.graph.Port anchor)
userObject
- reference to the user objectMethod Detail |
public Iterator edges()
edges
in interface org.jgraph.graph.Port
public boolean addEdge(Object edge)
edge
to the list of ports.
addEdge
in interface org.jgraph.graph.Port
public boolean removeEdge(Object edge)
edge
from the list of ports.
removeEdge
in interface org.jgraph.graph.Port
public Set getEdges()
public void setEdges(Set edges)
public org.jgraph.graph.Port getAnchor()
getAnchor
in interface org.jgraph.graph.Port
public void setAnchor(org.jgraph.graph.Port port)
setAnchor
in interface org.jgraph.graph.Port
public Object clone()
public TCPortView createDefaultView(TCGraph g, org.jgraph.graph.CellMapper cm)
g
- graph to create view oncm
- used CellMapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |