Bridges-Java-2.3.2
2.3.2
Bridges(JavaAPI)
|
This class maintains visual properties of links in all relevant data structures using BRIDGES. More...
Public Member Functions | |
LinkVisualizer () | |
void | setThickness (double th) |
double | getThickness () |
void | setWeight (double wt) |
double | getWeight () |
void | setColor (String aColor) |
void | setColor (Integer r, Integer g, Integer b, Float a) throws InvalidValueException |
Color | getColor () |
void | setOpacity (float opacity) |
float | getOpacity () |
String | getLinkProperties () |
This class maintains visual properties of links in all relevant data structures using BRIDGES.
This class is used to keep the visual properties of links in data structures such as linked lists, tree structures, and graphs. Relevant attributes include color, thickness, opacity, line end point attributes.
Objects of this class are stored as properties of all Element subclasses. Generally, a user will manipulate the LinkVisualizer returned from the Element's getLinkVisualizer() method.
bridges.base.LinkVisualizer.LinkVisualizer | ( | ) |
Color bridges.base.LinkVisualizer.getColor | ( | ) |
Get the color of the link in the Bridges Visualization
String bridges.base.LinkVisualizer.getLinkProperties | ( | ) |
float bridges.base.LinkVisualizer.getOpacity | ( | ) |
Get the opacity of the link in the Bridges Visualization
double bridges.base.LinkVisualizer.getThickness | ( | ) |
Get the thickness of the link in the Bridges Visualiation
double bridges.base.LinkVisualizer.getWeight | ( | ) |
Get the weight of the link
void bridges.base.LinkVisualizer.setColor | ( | String | aColor | ) |
Set the color of the link in the Bridges Visualization to "aColor".
aColor | the string reprsenting the color of the Element in the Bridges Visualization |
void bridges.base.LinkVisualizer.setColor | ( | Integer | r, |
Integer | g, | ||
Integer | b, | ||
Float | a | ||
) | throws InvalidValueException |
Set the color of the link given RGBA components
r,g,b,a | components |
check to ensure they are in 0-255 range, else throw exception
void bridges.base.LinkVisualizer.setOpacity | ( | float | opacity | ) |
Sets the opacity of the link in the Bridges Visualization
opacity | a float between 0 and 1 representing how transparent the node should be on the Bridges Visualization. 0 for invisible, 1 for fully visible, a decimal between 0 and 1 for varying transparency. |
void bridges.base.LinkVisualizer.setThickness | ( | double | th | ) |
Set the thickness of the link in the Bridge Visualization in pixels
thickness |
void bridges.base.LinkVisualizer.setWeight | ( | double | wt | ) |
Set the weight of the link, useful in graph algorithms, for example
weight |