|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.generic.commonapi.results.ResultsEdgeImpl
This wrapper class is used to store an edge of a directed or undirected graph based on GML file format.
Field Summary | |
protected java.lang.String |
fill
|
protected boolean |
isDirected
|
protected Id |
source
|
protected Id |
target
|
Constructor Summary | |
ResultsEdgeImpl()
Empty constructor. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Object.equals(Object o) implementation for EdgeImpl. |
java.lang.String |
getFill()
|
Id |
getSource()
|
Id |
getTarget()
|
int |
hashCode()
Object.hashCode(Object o) implementation for EdgeImpl. |
boolean |
isDirected()
|
void |
setDirected(boolean isDirected)
|
void |
setFill(java.lang.String fill)
|
void |
setSource(Id source)
|
void |
setTarget(Id target)
|
ResultsEdge |
setValues(Id source,
Id target,
boolean isDirected,
java.lang.String fill)
Sets the initial values for this edge. |
java.lang.String |
toString()
Object.toString() implementation for EdgeImpl. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Id source
protected Id target
protected boolean isDirected
protected java.lang.String fill
Constructor Detail |
public ResultsEdgeImpl()
Method Detail |
public java.lang.String getFill()
getFill
in interface ResultsEdge
public void setFill(java.lang.String fill)
setFill
in interface ResultsEdge
fill
- The fill color of the edge to set.public Id getSource()
getSource
in interface ResultsEdge
public void setSource(Id source)
setSource
in interface ResultsEdge
source
- The source to set.public Id getTarget()
getTarget
in interface ResultsEdge
public void setTarget(Id target)
setTarget
in interface ResultsEdge
target
- The target to set.public boolean isDirected()
isDirected
in interface ResultsEdge
public void setDirected(boolean isDirected)
setDirected
in interface ResultsEdge
isDirected
- The isDirected to set.public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public ResultsEdge setValues(Id source, Id target, boolean isDirected, java.lang.String fill)
setValues
in interface ResultsEdge
source
- Source node.target
- Destination node.isDirected
- true when edge is directed.fill
- The color for the edge. May be null when not is used.
ResultsEdge.setValues(planet.commonapi.Id, planet.commonapi.Id, boolean, java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |