Bridges-Java-2.3.3
2.3.3
Bridges(JavaAPI)
|
This class maintains the visual attributes of each BRIDGES element. More...
Public Member Functions | |
ElementVisualizer () | |
ElementVisualizer (String aColor) | |
ElementVisualizer (String aColor, String aShape) | |
ElementVisualizer (double size) | |
ElementVisualizer (String aColor, String aShape, float opacity, double size) | |
ElementVisualizer (ElementVisualizer v) | |
void | setSize (double sz) |
double | getSize () |
void | setColor (String col_name) throws InvalidValueException |
void | setColor (Integer r, Integer g, Integer b, float a) |
void | setColor (Color c) |
Color | getColor () |
String | getShape () |
void | setShape (String aShape) |
void | setOpacity (float opacity) |
float | getOpacity () |
void | setLocation (double x, double y) |
This class maintains the visual attributes of each BRIDGES element.
Visual properties include color, shape, opacity, size and location. Objects of this class are stored as part of the Element class. Generally, a user will manipulate the ElementVisualizer returned from the Element's getVisualizer() method, and then set attributes using its methods. Supported attributed values are as follows:
Supported Colors (by name):
"red", "green", "blue","yellow","cyan","magenta", "white",, "black", "orange", "turquoise", "maroon",
"aquamarine", "azure", "beige", "brown", "tan", "olive", "chartreuse", "khaki", "bisque", "coral",
"pink", "lavender", "purple", "gold"
Color by RGBA Specification : Range: 0-255 for each component
Supported Shapes:
"circle", "square", "diamond", "cross", "triangle", "star", "wye"
Shape Size : Range (0-50)
Opacity: Range (0.0-1.0)
bridges.base.ElementVisualizer.ElementVisualizer | ( | ) |
Construct an ElementVisualizer with the default visualization settings.
The default settings are color = green, opacity = 1.0, size = 10.0, shape = circle.
bridges.base.ElementVisualizer.ElementVisualizer | ( | String | aColor | ) |
Construct an ElementVisualizer with its color set to "aColor".
aColor | the string that represents one of the Bridges colors. |
bridges.base.ElementVisualizer.ElementVisualizer | ( | String | aColor, |
String | aShape | ||
) |
Construct an ElementVisualizer with its color set to "aColor" and shape set to "aShape".
aColor | the string that represents one of the Bridges colors. |
aShape | the string that represents one of the Bridges shapes |
bridges.base.ElementVisualizer.ElementVisualizer | ( | double | size | ) |
Construct an ElementVisualizer with its size set to "size".
size | the value that represents the size in pixels of the Bridges Element |
bridges.base.ElementVisualizer.ElementVisualizer | ( | String | aColor, |
String | aShape, | ||
float | opacity, | ||
double | size | ||
) |
Construct an ElementVisualizer with its color set to "aColor", its shape set to "aShape", its opacity set to "opacity" and size set to "size".
aColor | the string that represents one of the Bridges colors. |
aShape | the string that represents one of the Bridges shapes |
opacity | a double between 0 and 1 representing how transparent the node should be on the Bridges Visualization. 0 for invisible, 1 for fully visible, 0-1 for varying transparency. |
size | the double that represents the size of the Element on the Bridges Visualization |
bridges.base.ElementVisualizer.ElementVisualizer | ( | ElementVisualizer | v | ) |
Construct a new ElementVisualizer with the same color, shape, opacity, and size as "v"
v | the ElementVisualizer whose settings you want to copy. |
Color bridges.base.ElementVisualizer.getColor | ( | ) |
float bridges.base.ElementVisualizer.getOpacity | ( | ) |
Get the opacity of the Element in the Bridges Visualization
String bridges.base.ElementVisualizer.getShape | ( | ) |
double bridges.base.ElementVisualizer.getSize | ( | ) |
void bridges.base.ElementVisualizer.setColor | ( | String | col_name | ) | throws InvalidValueException |
Set the color of the Element in the Bridges Visualization to "aColor".
col_name | the string reprsenting the color of the Element in the Bridges Visualization; supported named colors are "red", "green", "blue", "yellow", "cyan", "magenta", "white", "black", "orange", "turquoise", "maroon", "aquamarine", "azure", "beige", "brown", "tan", "olive", "chartreuse", "khaki", "bisque", "coral", "pink", "lavender", "purple", "gold" |
void bridges.base.ElementVisualizer.setColor | ( | Integer | r, |
Integer | g, | ||
Integer | b, | ||
float | a | ||
) |
Set the color of the Element in the Bridges Visualization given RGBA components (0-255 range)
r,g,b,a | color components |
void bridges.base.ElementVisualizer.setColor | ( | Color | c | ) |
void bridges.base.ElementVisualizer.setLocation | ( | double | x, |
double | y | ||
) |
Set the location (x, y) of the element - used for displaying elements in maps
location | the X,Y location(array of 2 doubles) to be set |
void bridges.base.ElementVisualizer.setOpacity | ( | float | opacity | ) |
Sets the opacity of the Element in the Bridges Visualization
opacity | a double 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.ElementVisualizer.setShape | ( | String | aShape | ) |
void bridges.base.ElementVisualizer.setSize | ( | double | sz | ) |