cz.cmc.tcgui
Class SubclassEdge
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
cz.cmc.tcgui.TCEdge
cz.cmc.tcgui.SubclassEdge
- All Implemented Interfaces:
- Cloneable, org.jgraph.graph.Edge, org.jgraph.graph.GraphCell, MutableTreeNode, Serializable, TreeNode
- public class SubclassEdge
- extends TCEdge
Title: class SubclassEdge
Description: Edge for connecting TC subclasses
Copyright: Copyright (c) 2003
Company: CMC Computers
- See Also:
- Serialized Form
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 |
Fields inherited from class org.jgraph.graph.DefaultGraphCell |
attributes, defaultBounds |
Method Summary |
boolean |
acceptsSource(TCPort port)
Returns whether the edge can accept given port as its source |
boolean |
acceptsTarget(TCPort port)
Returns whether the edge can accept given port as its target |
void |
createInsertEdit(List toInsert,
Map viewMap)
Insert into list additional cells to be created with this TCEdge
and inserts their attributes to the viewMap.
Intended for Graphmodel.insert. |
Methods inherited from class org.jgraph.graph.DefaultGraphCell |
cloneUserObject, getAttributes, getChildren, setAttributes, setUserObject |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, depthFirstEnumeration, getAllowsChildren, getDepth, getFirstChild, getFirstLeaf, getChildAfter, getChildAt, getChildBefore, getChildCount, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, children, insert, isLeaf, isNodeAncestor, isNodeDescendant, isNodeChild, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, toString |
Methods inherited from interface org.jgraph.graph.GraphCell |
getAttributes, setAttributes |
SubclassEdge
public SubclassEdge()
SubclassEdge
public SubclassEdge(Object userObject)
acceptsSource
public boolean acceptsSource(TCPort port)
- Description copied from class:
TCEdge
- Returns whether the edge can accept given port as its source
- Specified by:
acceptsSource
in class TCEdge
- Parameters:
port
- port to decide whether to be accepted as source
- Returns:
- whether the port is accepted
acceptsTarget
public boolean acceptsTarget(TCPort port)
- Description copied from class:
TCEdge
- Returns whether the edge can accept given port as its target
- Specified by:
acceptsTarget
in class TCEdge
- Parameters:
port
- port to decide whether to be accepted as target
- Returns:
- whether the port is accepted
createInsertEdit
public void createInsertEdit(List toInsert,
Map viewMap)
- Insert into list additional cells to be created with this TCEdge
and inserts their attributes to the viewMap.
Intended for Graphmodel.insert.
- Overrides:
createInsertEdit
in class TCEdge
- Parameters:
toInsert
- List of additional cells to be created with this TCObjectviewMap
- attributes to be supplied to their views