Bridges-Java-3.0.2  3.0.2
Bridges(JavaAPI)
Public Member Functions | List of all members
bridges.base.Label Class Reference
Inheritance diagram for bridges.base.Label:
bridges.base.Symbol

Detailed Description

This class used to label symbols. Labels have a text string, font size, width, height and location.

Basic styling such as stroke and fill are defined in the superclass Symbol.

Author
David Burlinson
Date
2018, 7/15/19

Public Member Functions

 Label ()
 
 Label (String label)
 
Label setFontSize (Integer size)
 
float [] getDimensions ()
 
JSONObject getJSONRepresentation ()
 
- Public Member Functions inherited from bridges.base.Symbol
 Symbol ()
 
void setLabel (String label)
 
String getLabel ()
 
String getIdentifier ()
 
void setFillColor (Color c)
 
void setFillColor (String c)
 
Color getFillColor ()
 
void setStrokeColor (Color c)
 
Symbol setStrokeColor (String c)
 
Color getStrokeColor ()
 
void setStrokeWidth (float strokewidth)
 This method sets the symbol stroke width. More...
 
float getStrokeWidth ()
 
Symbol setOpacity (float op)
 This method sets the symbol opacity. More...
 
float getOpacity ()
 
Symbol setStrokeDash (int dash)
 
Integer getStrokeDash ()
 
void setLocation (float x, float y)
 
float [] getLocation ()
 
float [] getDimensions ()
 
JSONObject getJSONRepresentation ()
 

Additional Inherited Members

- Protected Member Functions inherited from bridges.base.Symbol
String getShapeType ()
 
void setShapeType (String sh)
 
void translatePoint (float[] pt, float tx, float ty)
 
- 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
 

Constructor & Destructor Documentation

◆ Label() [1/2]

bridges.base.Label.Label ( )

Construct a default label

◆ Label() [2/2]

bridges.base.Label.Label ( String  label)

Construct a label with the give text string

Parameters
labelthe text of the label

Member Function Documentation

◆ getDimensions()

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

Get the dimensions of the label object

Returns
bounding box of the label (min x, max x, min y, max y)

◆ getJSONRepresentation()

JSONObject bridges.base.Label.getJSONRepresentation ( )

Get the JSON representation of the label object

Returns
the encoded JSON string

◆ setFontSize()

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

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