cz.cmc.tcgui
Class TCObject

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byorg.jgraph.graph.DefaultGraphCell
          extended bycz.cmc.tcgui.TCObject
All Implemented Interfaces:
Cloneable, org.jgraph.graph.GraphCell, MutableTreeNode, Serializable, TreeNode
Direct Known Subclasses:
Class, FilterEntry, QDisc

public abstract class TCObject
extends org.jgraph.graph.DefaultGraphCell

Title: class TCObject

Description: Superclass for tc objects

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
 
Field Summary
 
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
TCObject()
          Initializes TCObject subclass with defaults
TCObject(Object userObject)
          Initializes TCObject subclass sets with defaults and sets the user object.
 
Method Summary
abstract  TCObjectView createDefaultView(TCGraph g, org.jgraph.graph.CellMapper cm)
          Creates default view object for this TCObject.
 void createInsertEdit(List toInsert, Map viewMap, TCGraph graph)
          Insert into list additional cells to be created with this TCObject and inserts their attributes to the viewMap.
 int getID()
          Returns id of the TCObject.
abstract  TCInputPort getTCInputPort()
           
abstract  TCOutputPort getTCOutputPort()
           
 
Methods inherited from class org.jgraph.graph.DefaultGraphCell
clone, cloneUserObject, getAttributes, getChildren, changeAttributes, 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
 

Constructor Detail

TCObject

public TCObject()
Initializes TCObject subclass with defaults


TCObject

public TCObject(Object userObject)
Initializes TCObject subclass sets with defaults and sets the user object.

Method Detail

getID

public int getID()
Returns id of the TCObject.

Returns:
id of the TCObject

getTCInputPort

public abstract TCInputPort getTCInputPort()
Returns:
TCInputPort for the Tree part of the schema

getTCOutputPort

public abstract TCOutputPort getTCOutputPort()
Returns:
TCOutputPort for the Tree part of the schema

createInsertEdit

public void createInsertEdit(List toInsert,
                             Map viewMap,
                             TCGraph graph)
Insert into list additional cells to be created with this TCObject and inserts their attributes to the viewMap. Intended for Graphmodel.insert.

Parameters:
toInsert - List of additional cells to be created with this TCObject
viewMap - attributes to be supplied to their views

createDefaultView

public abstract TCObjectView createDefaultView(TCGraph g,
                                               org.jgraph.graph.CellMapper cm)
Creates default view object for this TCObject.

Parameters:
g - graph to create view on
cm - used CellMapper
Returns:
created TCObjectView