org.jgraph.graph.ConnectionSet.Connection Class Reference

List of all members.

Public Member Functions

 Connection ()
 Connection (Object edge, Object port, boolean isSource)
Object getEdge ()
Object getPort ()
boolean isSource ()
boolean equals (Object obj)
int hashCode ()
void setEdge (Object object)
void setSource (boolean b)
void setPort (Object object)

Protected Attributes

Object edge
Object port
boolean isSource

Detailed Description

Object that represents the connection between an edge and a port.


Constructor & Destructor Documentation

org.jgraph.graph.ConnectionSet.Connection.Connection  ) 
 

org.jgraph.graph.ConnectionSet.Connection.Connection Object  edge,
Object  port,
boolean  isSource
 

Constructs a new source or target connection between edge and port based on the value of source


Member Function Documentation

boolean org.jgraph.graph.ConnectionSet.Connection.equals Object  obj  ) 
 

Two connections are equal if they represent the source or target of the same edge. That is, if

c1.edge == c2.edge && c1.isSource == c2.isSource.

Object org.jgraph.graph.ConnectionSet.Connection.getEdge  ) 
 

Returns the edge of the connection.

Object org.jgraph.graph.ConnectionSet.Connection.getPort  ) 
 

Returns the port of the connection.

int org.jgraph.graph.ConnectionSet.Connection.hashCode  ) 
 

Ensure equality of hashCode wrt equals().

boolean org.jgraph.graph.ConnectionSet.Connection.isSource  ) 
 

Returns true if port is the source of edge.

void org.jgraph.graph.ConnectionSet.Connection.setEdge Object  object  ) 
 

Parameters:
object 

void org.jgraph.graph.ConnectionSet.Connection.setPort Object  object  ) 
 

Parameters:
object 

void org.jgraph.graph.ConnectionSet.Connection.setSource boolean  b  ) 
 

Parameters:
b 


Member Data Documentation

Object org.jgraph.graph.ConnectionSet.Connection.edge [protected]
 

The edge that will be connected to the port.

boolean org.jgraph.graph.ConnectionSet.Connection.isSource [protected]
 

Indicates if port is the source of edge.

Object org.jgraph.graph.ConnectionSet.Connection.port [protected]
 

The port that will be connected to the edge.


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