Bridges-Java
3.4.3
Bridges(Java API)
|
This class maintains the visual attributes of links that join Bridges elements.
Visual properties include color, thickness, and opacity. Objects of this class are stored as part of the Element class. Generally, a user will manipulate the LinkVisualizer returned from the Element.getLinkVisualizer() method (which it is the Bridges element this element is linked to), and then set attributes using its methods. Links are utilized in all types of linked lists, tree and graph structures.
Supported attribute values are as follows:
Color: Use color with setColor() and getColor(). :by name: See the Color class for the complete list. by RGBA Specification: Range: 0-255 for each component.
Thickness: Range : 0.0-50.0. Use thickness with setThickness() and getThickness().
Opacity: Range (0.0-1.0). use opacity with setOpacity(), getOpacity().
Public Member Functions | |
LinkVisualizer () | |
String | getLabel () |
void | setLabel (String label) |
void | setThickness (double th) |
Set the thickness of the link in the Bridge Visualization. More... | |
double | getThickness () |
void | setColor (String col_name) |
void | setColor (Color color) |
void | setColor (Integer r, Integer g, Integer b, Float a) throws InvalidValueException |
Color | getColor () |
void | setOpacity (float opacity) |
Sets the opacity of the link in the Bridges Visualization. More... | |
float | getOpacity () |
Get the opacity of the link in the Bridges Visualization. More... | |
String | getLinkProperties () |
String | getLinkRepresentation (String src, String dest) |
Package Attributes | |
String | COMMA = "," |
String | COLON = ":" |
String | OPEN_CURLY = "{" |
String | CLOSE_CURLY = "}" |
String | OPEN_PAREN = "(" |
String | CLOSE_PAREN = ")" |
String | OPEN_BOX = "[" |
String | CLOSE_BOX = "]" |
bridges.base.LinkVisualizer.LinkVisualizer | ( | ) |
Color bridges.base.LinkVisualizer.getColor | ( | ) |
Get the color of the link in the Bridges Visualization
String bridges.base.LinkVisualizer.getLabel | ( | ) |
This method returns the existing value of the label fields
String bridges.base.LinkVisualizer.getLinkProperties | ( | ) |
Get link properties - used for building JSON representation
String bridges.base.LinkVisualizer.getLinkRepresentation | ( | String | src, |
String | dest | ||
) |
Get the link visualizer representation, iterating through the link properties
src | source node name |
dest | destination node name |
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
void bridges.base.LinkVisualizer.setColor | ( | Color | color | ) |
void bridges.base.LinkVisualizer.setColor | ( | Integer | r, |
Integer | g, | ||
Integer | b, | ||
Float | a | ||
) | throws InvalidValueException |
Set the color of the link given RGBA components; 0-255 range for R, G, B and 0-1.0 for opacity
r | red component |
g | green component |
b | blue component |
a | alpha (opacity) component |
void bridges.base.LinkVisualizer.setColor | ( | String | col_name | ) |
Set the color of the link in the Bridges Visualization to "aColor". See the Color clas for a complete list of supported color names.
col_name | the string reprsenting the color of the link. |
void bridges.base.LinkVisualizer.setLabel | ( | String | label | ) |
This method sets the label
label | the link label to set |
void bridges.base.LinkVisualizer.setOpacity | ( | float | opacity | ) |
Sets the opacity of the link in the Bridges Visualization.
opacity | a float in [0-1.0]. 0 is fully transparent, 1 for fully opaque. |
void bridges.base.LinkVisualizer.setThickness | ( | double | th | ) |
Set the thickness of the link in the Bridge Visualization.
th | thickness of the link in pixels; thickness should be in [0-50.0]. |
|
package |
|
package |
|
package |
|
package |
|
package |
|
package |
|
package |
|
package |