![]() |
Bridges-Java 3.5.1
Bridges(Java API)
|
This class used to render text as part of a SymbolCollection. More...
Additional Inherited Members | |
Protected Attributes inherited from bridges.base.Symbol | |
| String | label = null |
| Color | fillColor = null |
| Float | opacity = null |
| Color | strokeColor = null |
| Float | strokeWidth = null |
| Integer | strokeDash = null |
| Integer | layer = null |
| float[] | transform = null |
Package Attributes inherited from bridges.base.Symbol | |
| Boolean | xform_flag = false |
This class used to render text as part of a SymbolCollection.
Text have a text string, font size, anchor location, and anchoring mode.
Basic styling such as stroke, color are defined in the superclass Symbol.
On a label the "stroke" refer to the outside of the of the letter, and the "fill" refers to the inside of the letters. In most case, you want no stroke but a fill.
Text is placed by defining an anchor position and what that position is for the text (is it the middle? is it the top left?). Check the tutorial for details.
| bridges.base.Text.Text | ( | ) |
Construct a default label
| bridges.base.Text.Text | ( | String | label | ) |
Construct a label with the give text string
| label | the text of the label |
| float bridges.base.Text.getAnchorLocationX | ( | ) |
| float bridges.base.Text.getAnchorLocationY | ( | ) |
| String bridges.base.Text.getAnchroAlignmentLR | ( | ) |
| String bridges.base.Text.getAnchroAlignmentTB | ( | ) |
| float bridges.base.Text.getFontSize | ( | ) |
| JSONObject bridges.base.Text.getJSONRepresentation | ( | ) |
Get the JSON representation of the label object
Reimplemented from bridges.base.Symbol.
| String bridges.base.Text.getShapeType | ( | ) |
| String bridges.base.Text.getText | ( | ) |
| typeLR | valid parameters are "left", "middle", and "right" |
| typeTB | valid parameters are "top", "bottom", "embottom", "emtop", "middle" |