public static class ConnectionSet.Connection
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
edge
The edge that will be connected to the port.
|
protected boolean |
isSource
Indicates if
port is the source of edge . |
protected java.lang.Object |
port
The port that will be connected to the edge.
|
Constructor and Description |
---|
Connection() |
Connection(java.lang.Object edge,
java.lang.Object port,
boolean isSource)
Constructs a new source or target connection between
edge and port based on the value of
source |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Two connections are equal if they represent the source or target of
the same edge.
|
java.lang.Object |
getEdge()
Returns the edge of the connection.
|
java.lang.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(java.lang.Object object) |
void |
setPort(java.lang.Object object) |
void |
setSource(boolean b) |
protected java.lang.Object edge
protected java.lang.Object port
protected boolean isSource
port
is the source of edge
.public Connection()
public Connection(java.lang.Object edge, java.lang.Object port, boolean isSource)
edge
and port
based on the value of
source
public java.lang.Object getEdge()
public java.lang.Object getPort()
public boolean isSource()
true
if port
is the source of
edge
.public boolean equals(java.lang.Object obj)
c1.edge == c2.edge && c1.isSource == c2.isSource.
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setEdge(java.lang.Object object)
object
- public void setSource(boolean b)
b
- public void setPort(java.lang.Object object)
object
- Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.