Bridges-Java-2.4  2.4.2
Bridges(JavaAPI)
Public Member Functions | List of all members
bridges.base.Label Class Reference

This is a superclass in BRIDGES for deriving a number of Shape objects for use in a ShapeCollection. Shapes correspond to a simplified subset of SVG paths and shapes for custom visual representations in BRIDGES. More...

Inheritance diagram for bridges.base.Label:
bridges.base.Symbol bridges.base.DataStruct

Public Member Functions

 Label ()
 
 Label (String label)
 
Label setFontSize (Integer size)
 
Float [] getDimensions ()
 
JSONObject getJSONRepresentation ()
 
- Public Member Functions inherited from bridges.base.Symbol
String getDataStructType ()
 
 Symbol ()
 
void setLabel (String label)
 
String getLabel ()
 
String getIdentifier ()
 
Symbol setFillColor (Color c)
 
Color getFillColor ()
 
Symbol setStrokeColor (Color c)
 
Color getStrokeColor ()
 
Symbol setStrokeWidth (Float strokewidth)
 
Float getStrokeWidth ()
 
Symbol setOpacity (Float o)
 
Float getOpacity ()
 
Symbol setStrokeDash (int dash)
 
Integer getStrokeDash ()
 
Symbol setLocation (int x, int y)
 
Symbol setLocation (Float x, Float y)
 
Float [] getLocation ()
 

Additional Inherited Members

- Protected Attributes inherited from bridges.base.Symbol
String label = ""
 
Color fillColor = new Color("blue")
 
Float opacity = DEFAULT_OPACITY
 
Color strokeColor = new Color("white")
 
Float strokeWidth = DEFAULT_STROKEWIDTH
 
Integer strokeDash = DEFAULT_STROKEDASH
 
Float locationX = DEFAULT_LOCATIONX
 
Float locationY = DEFAULT_LOCATIONY
 
- Protected Attributes inherited from bridges.base.DataStruct
String QUOTE = "\""
 

Detailed Description

This is a superclass in BRIDGES for deriving a number of Shape objects for use in a ShapeCollection. Shapes correspond to a simplified subset of SVG paths and shapes for custom visual representations in BRIDGES.

Author
David Burlinson

Constructor & Destructor Documentation

◆ Label() [1/2]

bridges.base.Label.Label ( )

◆ Label() [2/2]

bridges.base.Label.Label ( String  label)

Member Function Documentation

◆ getDimensions()

Float [] bridges.base.Label.getDimensions ( )

Reimplemented from bridges.base.Symbol.

◆ getJSONRepresentation()

JSONObject bridges.base.Label.getJSONRepresentation ( )

Internal code for getting the properties of the Shape object. It produces (without the spaces or newlines): { "name": "Some label", "other CSS properties like color": any_JSON_value }

Returns
the encoded JSON string

Reimplemented from bridges.base.Symbol.

◆ setFontSize()

Label bridges.base.Label.setFontSize ( Integer  size)

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