![]() |
Bridges-Java-3.0.1
3.0.1
Bridges(JavaAPI)
|
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.
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 |
| bridges.base.Label.Label | ( | ) |
Construct a default label
| bridges.base.Label.Label | ( | String | label | ) |
Construct a label with the give text string
| label | the text of the label |
| float [] bridges.base.Label.getDimensions | ( | ) |
Get the dimensions of the label object
| JSONObject bridges.base.Label.getJSONRepresentation | ( | ) |
Get the JSON representation of the label object
| Label bridges.base.Label.setFontSize | ( | Integer | size | ) |
1.8.13