![]() |
Bridges-Java-2.2
2.2.0
Bridges(JavaAPI)
|
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 aColor) 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 is used to store the visualization elements on the for the Bridges Visualiztion, including the color, shape, opacity, and size of the node.
Objects of this class are stored as properties of all Element subclasses. Generally, you will manipulating the ElementVisualizer returned from the Element getVisualizer() method, and then call the setVisualizer() method on the Element after changes have been made.
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 double that represents the size in pixels of the Element on the Bridges Visualization |
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, a decimal between 0 and 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 | aColor | ) | throws InvalidValueException |
void bridges.base.ElementVisualizer.setColor | ( | Integer | r, |
Integer | g, | ||
Integer | b, | ||
float | a | ||
) |
Set the color of the Element in the Bridges Visualization to "aColor". give RGBA components
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 | ) |