|
JGraph |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jgraph.graph.ConnectionSet.Connection
Object that represents the connection between an edge and a port.
| Field Summary | |
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. |
| Constructor Summary | |
ConnectionSet.Connection()
|
|
ConnectionSet.Connection(Object edge,
Object port,
boolean isSource)
Constructs a new source or target connection between edge and port based on the value of
source |
|
| Method Summary | |
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)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Object edge
protected Object port
protected boolean isSource
port is the source of edge.
| Constructor Detail |
public ConnectionSet.Connection()
public ConnectionSet.Connection(Object edge,
Object port,
boolean isSource)
edge and port based on the value of
source
| Method Detail |
public Object getEdge()
public Object getPort()
public boolean isSource()
true if port is the source of
edge.
public boolean equals(Object obj)
c1.edge == c2.edge && c1.isSource == c2.isSource.
public int hashCode()
public void setEdge(Object object)
object - public void setSource(boolean b)
b - public void setPort(Object object)
object -
|
JGraph |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||