cz.cmc.tcgui
Class FilterMatchEdge

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byorg.jgraph.graph.DefaultGraphCell
          extended bycz.cmc.tcgui.TCEdge
              extended bycz.cmc.tcgui.FilterMatchEdge
All Implemented Interfaces:
Cloneable, org.jgraph.graph.Edge, org.jgraph.graph.GraphCell, MutableTreeNode, Serializable, TreeNode

public class FilterMatchEdge
extends TCEdge

Title: class FilterMatchEdge

Description: Edge for connecting matching filter elements with target classes

Copyright: Copyright (c) 2003

Company: CMC Computers

See Also:
Serialized Form

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
 
Fields inherited from class cz.cmc.tcgui.TCEdge
defaultLabelPosition, defaultPoints, source, target
 
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
FilterMatchEdge()
           
FilterMatchEdge(Object userObject)
           
FilterMatchEdge(Object userObject, boolean allowsChildren)
           
 
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.
 
Methods inherited from class cz.cmc.tcgui.TCEdge
clone, createDefaultView, getSource, getTarget, changeAttributes, setSource, setTarget
 
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jgraph.graph.GraphCell
getAttributes, setAttributes
 

Constructor Detail

FilterMatchEdge

public FilterMatchEdge()

FilterMatchEdge

public FilterMatchEdge(Object userObject)

FilterMatchEdge

public FilterMatchEdge(Object userObject,
                       boolean allowsChildren)
Method Detail

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 TCObject
viewMap - attributes to be supplied to their views