|
||||||||||
| 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.TCEdge
Title:
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 |
| Nested classes inherited from class org.jgraph.graph.Edge |
org.jgraph.graph.Edge.Routing |
| Field Summary | |
protected static Point |
defaultLabelPosition
|
protected static ArrayList |
defaultPoints
|
protected Object |
source
Source and target of the edge. |
protected Object |
target
Source and target of the edge. |
| 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 | |
TCEdge()
Constructs an empty edge. |
|
TCEdge(Object userObject)
Constructs an edge that holds a reference to the specified user object. |
|
TCEdge(Object userObject,
boolean allowsChildren)
Constructs an edge that holds a reference to the specified user object and sets default values for points and the label position. |
|
| Method Summary | |
abstract boolean |
acceptsSource(TCPort port)
Returns whether the edge can accept given port as its source |
abstract boolean |
acceptsTarget(TCPort port)
Returns whether the edge can accept given port as its target |
Object |
clone()
Create a clone of the cell. |
TCEdgeView |
createDefaultView(TCGraph g,
org.jgraph.graph.CellMapper cm)
Creates default view object for this TCEdge. |
void |
createInsertEdit(List toInsert,
Map viewMap)
Insert into list additional cells to be created with this TCEdge and inserts their attributes to the viewMap. |
Object |
getSource()
Returns the source of the edge. |
Object |
getTarget()
Returns the target of the edge. |
Map |
changeAttributes(Map change)
Override parent method to ensure non-null points. |
void |
setSource(Object port)
Sets the source of the edge. |
void |
setTarget(Object port)
Returns the target of edge. |
| Methods inherited from class org.jgraph.graph.DefaultGraphCell |
cloneUserObject, getAttributes, getChildren, 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, setAttributes |
| Field Detail |
protected static final Point defaultLabelPosition
protected static final ArrayList defaultPoints
protected Object source
protected Object target
| Constructor Detail |
public TCEdge()
public TCEdge(Object userObject)
userObject - reference to the user object
public TCEdge(Object userObject,
boolean allowsChildren)
userObject - reference to the user object| Method Detail |
public Map changeAttributes(Map change)
changeAttributes in interface org.jgraph.graph.GraphCellpublic Object getSource()
getSource in interface org.jgraph.graph.Edgepublic Object getTarget()
getTarget in interface org.jgraph.graph.Edgepublic void setSource(Object port)
setSource in interface org.jgraph.graph.Edgepublic void setTarget(Object port)
edge.
setTarget in interface org.jgraph.graph.Edge
public void createInsertEdit(List toInsert,
Map viewMap)
toInsert - List of additional cells to be created with this TCObjectviewMap - attributes to be supplied to their viewspublic Object clone()
public abstract boolean acceptsSource(TCPort port)
port - port to decide whether to be accepted as source
public abstract boolean acceptsTarget(TCPort port)
port - port to decide whether to be accepted as target
public TCEdgeView 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 | |||||||||