org.jgraph.graph.DefaultPort Class Reference

Inheritance diagram for org.jgraph.graph.DefaultPort:

org.jgraph.graph.DefaultGraphCell org.jgraph.graph.Port org.jgraph.graph.GraphCell org.jgraph.graph.GraphCell manas.GGates.InPort manas.GGates.OutPort List of all members.

Public Member Functions

 DefaultPort ()
 DefaultPort (Object userObject)
 DefaultPort (Object userObject, Port anchor)
Iterator edges ()
boolean addEdge (Object edge)
boolean removeEdge (Object edge)
Set getEdges ()
void setEdges (Set edges)
Port getAnchor ()
void setAnchor (Port port)
Object clone ()

Protected Attributes

HashSet edges = new HashSet(4, 0.75f)
Port anchor

Detailed Description

A simple implementation for a port.

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


Constructor & Destructor Documentation

org.jgraph.graph.DefaultPort.DefaultPort  ) 
 

Constructs an empty port.

org.jgraph.graph.DefaultPort.DefaultPort Object  userObject  ) 
 

Constructs a port that holds a reference to the specified user object.

Parameters:
userObject reference to the user object

org.jgraph.graph.DefaultPort.DefaultPort Object  userObject,
Port  anchor
 

Constructs a port that holds a reference to the specified user object and a reference to the specified anchor.

Parameters:
userObject reference to the user object
anchor reference to a graphcell that constitutes the anchor


Member Function Documentation

boolean org.jgraph.graph.DefaultPort.addEdge Object  edge  ) 
 

Adds edge to the list of edges.

Implements org.jgraph.graph.Port.

Object org.jgraph.graph.DefaultPort.clone  ) 
 

Create a clone of the cell. The cloning of the user object is deferred to the cloneUserObject() method.

Returns:
Object a clone of this object.

Reimplemented from org.jgraph.graph.DefaultGraphCell.

Iterator org.jgraph.graph.DefaultPort.edges  ) 
 

Returns an iterator of the edges connected to the port.

Implements org.jgraph.graph.Port.

Port org.jgraph.graph.DefaultPort.getAnchor  ) 
 

Returns the anchor of this port.

Implements org.jgraph.graph.Port.

Set org.jgraph.graph.DefaultPort.getEdges  ) 
 

Returns the collection of edges connected to this port.

boolean org.jgraph.graph.DefaultPort.removeEdge Object  edge  ) 
 

Removes edge from the list of edges.

Implements org.jgraph.graph.Port.

void org.jgraph.graph.DefaultPort.setAnchor Port  port  ) 
 

Sets the anchor of this port.

Implements org.jgraph.graph.Port.

void org.jgraph.graph.DefaultPort.setEdges Set  edges  ) 
 

Sets the collection of edges connected to this port.


Member Data Documentation

Port org.jgraph.graph.DefaultPort.anchor [protected]
 

Reference to the anchor of this port

HashSet org.jgraph.graph.DefaultPort.edges = new HashSet(4, 0.75f) [protected]
 

Edges that are connected to the port


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