org.jgraph.graph
Class ConnectionSet.Connection
java.lang.Object
org.jgraph.graph.ConnectionSet.Connection
- ConnectionSet
- Serializable
public static class ConnectionSet.Connection
extends java.lang.Object
implements Serializable
Object that represents the connection between an edge and a port.
protected Object | edge - The edge that will be connected to the port.
|
protected boolean | isSource - Indicates if
port is the source of edge .
|
protected Object | port - The port that will be connected to the edge.
|
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
|
boolean | equals(Object obj) - Two connections are equal if they represent the source or target of
the same edge.
|
Object | getEdge() - Returns the edge of the connection.
|
Object | getPort() - Returns the port of the connection.
|
int | hashCode() - Ensure equality of hashCode wrt equals().
|
boolean | isSource() - Returns
true if port is the source of
edge .
|
void | setEdge(Object object)
|
void | setPort(Object object)
|
void | setSource(boolean b)
|
edge
protected Object edge
The edge that will be connected to the port.
isSource
protected boolean isSource
Indicates if port
is the source of edge
.
port
protected Object port
The port that will be connected to the edge.
Connection
public Connection()
Connection
public Connection(Object edge,
Object port,
boolean isSource)
Constructs a new source or target connection between
edge
and port
based on the value of
source
equals
public boolean 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.
getEdge
public Object getEdge()
Returns the edge of the connection.
getPort
public Object getPort()
Returns the port of the connection.
hashCode
public int hashCode()
Ensure equality of hashCode wrt equals().
isSource
public boolean isSource()
Returns true
if port
is the source of
edge
.
setEdge
public void setEdge(Object object)
setPort
public void setPort(Object object)
setSource
public void setSource(boolean b)
Copyright (C) 2001-2006 Gaudenz Alder. All rights reserved.