Constructor
new TextStyle(options)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | See below the available values.
Properties
|
- Source:
Members
(protected) borderColor :bemap.Color
Color of text border.
Type:
- Source:
(protected) borderWidth :int
Width of text border.
Type:
- int
- Source:
(protected) color :bemap.Color
Color of text.
Type:
- Source:
(protected) native :Object
Type:
- Object
- Source:
(protected) offsetX :int
offset X of text in pixels.
Type:
- int
- Source:
(protected) offsetY :int
offset Y of text in pixels.
Type:
- int
- Source:
(protected) size :int
Width of text border.
Type:
- int
- Source:
Methods
getBorderColor() → {bemap.Color}
Return the color of text border.
- Source:
Returns:
Return the color of text border.
- Type
- bemap.Color
getBorderWidth() → {int}
Return the width of text border in pixels.
- Source:
Returns:
Return the width of text border in pixels.
- Type
- int
getColor() → {bemap.Color}
Return the color of text.
- Source:
Returns:
Return the color of text.
- Type
- bemap.Color
getOffsetX() → {int}
Return the offset X of text.
- Source:
Returns:
Return the offset X of text.
- Type
- int
getOffsetY() → {int}
Return the offset Y of text.
- Source:
Returns:
Return the offset Y of text.
- Type
- int
getSize() → {int}
Return the size of text.
- Source:
Returns:
Return the size of text.
- Type
- int
setBorderColor(borderColor) → {bemap.TextStyle}
Set the color of text border.
Parameters:
| Name | Type | Description |
|---|---|---|
borderColor |
bemap.Color | the new color of text border to set. |
- Source:
Returns:
Return this.
- Type
- bemap.TextStyle
setBorderWidth(borderWidth) → {bemap.TextStyle}
Set the width of text border in pixels.
Parameters:
| Name | Type | Description |
|---|---|---|
borderWidth |
int | the new width of text border to set (in pixels). |
- Source:
Returns:
Return this.
- Type
- bemap.TextStyle
setColor(color) → {bemap.TextStyle}
Set the color of text.
Parameters:
| Name | Type | Description |
|---|---|---|
color |
bemap.Color | the new color of text to set. |
- Source:
Returns:
Return this.
- Type
- bemap.TextStyle
setOffsetX(offsetX) → {bemap.TextStyle}
Set the offset X of text.
Parameters:
| Name | Type | Description |
|---|---|---|
offsetX |
int | the new offset X of text to set. |
- Source:
Returns:
Return this.
- Type
- bemap.TextStyle
setOffsetY(offsetY) → {bemap.TextStyle}
Set the offset Y of text.
Parameters:
| Name | Type | Description |
|---|---|---|
offsetY |
int | the new offset Y of text to set. |
- Source:
Returns:
Return this.
- Type
- bemap.TextStyle
setSize(color) → {bemap.TextStyle}
Set the size of text.
Parameters:
| Name | Type | Description |
|---|---|---|
color |
int | the new size of text to set. |
- Source:
Returns:
Return this.
- Type
- bemap.TextStyle