org.jgraph.graph.DefaultGraphCell Class Reference

Inheritance diagram for org.jgraph.graph.DefaultGraphCell:

org.jgraph.graph.GraphCell manas.gates.Gate manas.GGates.GAnd manas.GGates.GClock manas.GGates.GLed manas.GGates.GNand manas.GGates.GNor manas.GGates.GNot manas.GGates.GOr manas.GGates.GSwitch manas.GGates.Gwire manas.GGates.GXor org.jgraph.graph.DefaultEdge org.jgraph.graph.DefaultPort List of all members.

Public Member Functions

 DefaultGraphCell ()
 DefaultGraphCell (Object userObject)
 DefaultGraphCell (Object userObject, AttributeMap storageMap)
 DefaultGraphCell (Object userObject, AttributeMap storageMap, MutableTreeNode[] children)
List getChildren ()
AttributeMap getAttributes ()
Map changeAttributes (Map change)
void setAttributes (AttributeMap attributes)
void addPort ()
void addPort (Point2D offset)
void addPort (Point2D offset, Object userObject)
Object clone ()

Protected Attributes

AttributeMap attributes = null

Detailed Description

The default implementation for the GraphCell interface.

Version:
1.0 1/1/02
Author:
Gaudenz Alder


Constructor & Destructor Documentation

org.jgraph.graph.DefaultGraphCell.DefaultGraphCell  ) 
 

Creates an empty cell.

org.jgraph.graph.DefaultGraphCell.DefaultGraphCell Object  userObject  ) 
 

Creates a graph cell and initializes it with the specified user object.

Parameters:
userObject an Object provided by the user that constitutes the cell's data

org.jgraph.graph.DefaultGraphCell.DefaultGraphCell Object  userObject,
AttributeMap  storageMap
 

Constructs a cell that holds a reference to the specified user object and contains the specified array of children and sets default values for the bounds attribute.

Parameters:
userObject reference to the user object
storageMap the storage attribute map for this cell

org.jgraph.graph.DefaultGraphCell.DefaultGraphCell Object  userObject,
AttributeMap  storageMap,
MutableTreeNode[]  children
 

Creates a graph cell and initializes it with the specified user object. The GraphCell allows children only if specified.

Parameters:
userObject an Object provided by the user that constitutes the cell's data
storageMap the storage attribute map for this cell
children array of children


Member Function Documentation

void org.jgraph.graph.DefaultGraphCell.addPort Point2D  offset,
Object  userObject
 

Utility method to create a port for this cell. The method adds a port at a fixed relative offset within the cell. If the offset is null then a floating port is added.

Parameters:
offset the offset of the port within the cell
userObject the user object of the port cell

void org.jgraph.graph.DefaultGraphCell.addPort Point2D  offset  ) 
 

Utility method to create a port for this cell. The method adds a port at a fixed relative offset within the cell. If the offset is null then a floating port is added.

Parameters:
offset the offset of the port within the cell

void org.jgraph.graph.DefaultGraphCell.addPort  ) 
 

Utility method to create a port for this cell. This method adds a floating port.

Map org.jgraph.graph.DefaultGraphCell.changeAttributes Map  change  ) 
 

Changes the attributes of the cell.

Deprecated:
Use getAttributes().applyMap

Implements org.jgraph.graph.GraphCell.

Object org.jgraph.graph.DefaultGraphCell.clone  ) 
 

Create a clone of the cell. This method uses the superclass implementation (which does not clone the children), then uses clone on the attribute map. This method does not clone the user object. You should override the cloneUserObject in the graph model to implement cloning of custom user objects.

Returns:
Object a clone of this object.

Reimplemented in org.jgraph.graph.DefaultEdge, and org.jgraph.graph.DefaultPort.

AttributeMap org.jgraph.graph.DefaultGraphCell.getAttributes  ) 
 

Returns the properies of the cell.

Implements org.jgraph.graph.GraphCell.

List org.jgraph.graph.DefaultGraphCell.getChildren  ) 
 

Provides access to the children list to change ordering. This method returns a Collections.EMPTY_LIST if the list of childrenpoints to null.

void org.jgraph.graph.DefaultGraphCell.setAttributes AttributeMap  attributes  ) 
 

Sets the attributes.

Parameters:
attributes The attributes to set

Implements org.jgraph.graph.GraphCell.


Member Data Documentation

AttributeMap org.jgraph.graph.DefaultGraphCell.attributes = null [protected]
 

Hashtable for properties. Initially empty


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:14 2006 for Digimod by  doxygen 1.4.6-NO