Bridges-Java
3.4.3
Bridges(Java API)
|
This class is used to represent the edges in a graph and will appear as links in the BRIDGES graph visualization: GraphAdjList and GraphAdjMatrix.
This object is used in graphs and graph algorithms such as DFS, BFS and shortest path algorithms that need to visit graph edges. The adjacency list representation uses them as the generic paramter, as SLelement<Edge> Bridges represents Edges as links between pairs of elements.
K | holds the terminating vertex of the edge |
E2 | holds edge specific information |
Public Member Functions | |
Edge (K from, K to, E2 data, LinkVisualizer lvis) | |
Construct an edge using each extremities, user data, and styling information. More... | |
Edge (K from, K to, E2 data) | |
Construct an edge using each extremities, user data. More... | |
void | setFrom (K from) |
Set source Element (Vertex) of the edge. More... | |
void | setTo (K to) |
Set identifier of the terminating Element (Vertex) of edge. More... | |
K | getTo () |
Get identifer of the terminating Element of edge. More... | |
K | getFrom () |
void | setEdgeData (E2 data) |
E2 | getEdgeData () |
LinkVisualizer | getLinkVisualizer () |
void | setLinkVisualizer (LinkVisualizer lvis) |
Set the edge's link visualizer. More... | |
String | getLabel () |
Get the edge's label. More... | |
void | setLabel (String label) |
Set the edge's label. More... | |
double | getThickness () |
Get the thickness of the edge. More... | |
void | setThickness (double thickness) |
Set the thickness of the edge. More... | |
Color | getColor () |
Get the color of the link in the Bridges Visualization. More... | |
void | setColor (Color color) |
Set the color of the link from an existing Color object. More... | |
void | setColor (String color) |
Set the color of the link in the Bridges Visualization. More... | |
void | setColor (int r, int g, int b, float a) |
Set the color of the link given RGBA components. More... | |
bridges.base.Edge< K, E2 >.Edge | ( | K | from, |
K | to, | ||
E2 | data, | ||
LinkVisualizer | lvis | ||
) |
Construct an edge using each extremities, user data, and styling information.
from | key of source vertex of the edge |
to | key of terminating vertex of the edge |
data | is the edge information object |
lvis | is the object storing styling information for the edge |
bridges.base.Edge< K, E2 >.Edge | ( | K | from, |
K | to, | ||
E2 | data | ||
) |
Construct an edge using each extremities, user data.
from | key of source vertex of the edge |
to | key of terminating vertex of the edge |
data | is the edge information object |
Color bridges.base.Edge< K, E2 >.getColor | ( | ) |
Get the color of the link in the Bridges Visualization.
E2 bridges.base.Edge< K, E2 >.getEdgeData | ( | ) |
Get edge specific data.
K bridges.base.Edge< K, E2 >.getFrom | ( | ) |
String bridges.base.Edge< K, E2 >.getLabel | ( | ) |
Get the edge's label.
LinkVisualizer bridges.base.Edge< K, E2 >.getLinkVisualizer | ( | ) |
Get the edge's link visualizer
double bridges.base.Edge< K, E2 >.getThickness | ( | ) |
Get the thickness of the edge.
K bridges.base.Edge< K, E2 >.getTo | ( | ) |
void bridges.base.Edge< K, E2 >.setColor | ( | Color | color | ) |
Set the color of the link from an existing Color object.
color | the edge color to be assigned |
void bridges.base.Edge< K, E2 >.setColor | ( | int | r, |
int | g, | ||
int | b, | ||
float | a | ||
) |
Set the color of the link given RGBA components.
r | red component |
g | green component |
b | blue component |
a | alpha (transparency) component |
void bridges.base.Edge< K, E2 >.setColor | ( | String | color | ) |
Set the color of the link in the Bridges Visualization.
color | the string reprsenting the color. See the Color class for the complete set of supported colors. |
void bridges.base.Edge< K, E2 >.setEdgeData | ( | E2 | data | ) |
Set edge specific data.
data | edge data |
void bridges.base.Edge< K, E2 >.setFrom | ( | K | from | ) |
void bridges.base.Edge< K, E2 >.setLabel | ( | String | label | ) |
Set the edge's label.
label | the label to be assigned |
void bridges.base.Edge< K, E2 >.setLinkVisualizer | ( | LinkVisualizer | lvis | ) |
Set the edge's link visualizer.
lvis | link visualizer to be set for this edge |
void bridges.base.Edge< K, E2 >.setThickness | ( | double | thickness | ) |
Set the thickness of the edge.
thickness | edge thickness to set |
void bridges.base.Edge< K, E2 >.setTo | ( | K | to | ) |