Bridges-Java-2.3.2  2.3.2
Bridges(JavaAPI)
Public Member Functions | List of all members
bridges.base.LinkVisualizer Class Reference

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 ()
 

Detailed Description

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.

Author
Mihai Mehedint, Kalpathi Subramanian
Date
2015, 1/16/17

Constructor & Destructor Documentation

bridges.base.LinkVisualizer.LinkVisualizer ( )

Member Function Documentation

Color bridges.base.LinkVisualizer.getColor ( )

Get the color of the link in the Bridges Visualization

Returns
the string reprsenting the color of the Element in the Bridges Visualization
String bridges.base.LinkVisualizer.getLinkProperties ( )
float bridges.base.LinkVisualizer.getOpacity ( )

Get the opacity of the link in the Bridges Visualization

Returns
the opacity value (in the range 0.0-1.0
double bridges.base.LinkVisualizer.getThickness ( )

Get the thickness of the link in the Bridges Visualiation

Returns
the size in pixels of the Element in the Bridges Visualization
double bridges.base.LinkVisualizer.getWeight ( )

Get the weight of the link

Returns
the size in pixels of the Element in the Bridges Visualization
void bridges.base.LinkVisualizer.setColor ( String  aColor)

Set the color of the link in the Bridges Visualization to "aColor".

Parameters
aColorthe 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

Parameters
r,g,b,acomponents

check to ensure they are in 0-255 range, else throw exception

Returns
the size in pixels of the Element in the Bridges Visualization
void bridges.base.LinkVisualizer.setOpacity ( float  opacity)

Sets the opacity of the link in the Bridges Visualization

Parameters
opacitya 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

Parameters
thickness
void bridges.base.LinkVisualizer.setWeight ( double  wt)

Set the weight of the link, useful in graph algorithms, for example

Parameters
weight

The documentation for this class was generated from the following file: