# Class: TextStyle

## bemap.TextStyle(options)

Base class for TextStyle.

## Constructor

#### new TextStyle(options)

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | Object | See below the available values. ###### Properties
Name | Type | Description
--- | --- | ---
`color` | bemap.Color | Set the volor of text.
`size` | int | Set the size of text.
`offsetX` | int | Set the offset X of text.
`offsetY` | int | Set the offset Y of text.
`borderColor` | bemap.Color | Set the color of text border.
`borderWidth` | int | Set the Width of text border in pixels.
`type` | Boolean | define the type of the line.

Source:
  - bemap-model/bemap-textStyle.js, line 19

### Members

#### (protected) borderColor :bemap.Color

Color of text border.

##### Type:

- bemap.Color

Source:
  - bemap-model/bemap-textStyle.js, line 61

#### (protected) borderWidth :int

Width of text border.

##### Type:

- int

Source:
  - bemap-model/bemap-textStyle.js, line 68

#### (protected) color :bemap.Color

Color of text.

##### Type:

- bemap.Color

Source:
  - bemap-model/bemap-textStyle.js, line 33

#### (protected) native :Object

##### Type:

- Object

Source:
  - bemap-model/bemap-textStyle.js, line 26

#### (protected) offsetX :int

offset X of text in pixels.

##### Type:

- int

Source:
  - bemap-model/bemap-textStyle.js, line 47

#### (protected) offsetY :int

offset Y of text in pixels.

##### Type:

- int

Source:
  - bemap-model/bemap-textStyle.js, line 54

#### (protected) size :int

Width of text border.

##### Type:

- int

Source:
  - bemap-model/bemap-textStyle.js, line 40

### Methods

#### getBorderColor() → {bemap.Color}

Return the color of text border.

Source:
  - bemap-model/bemap-textStyle.js, line 149

##### Returns:

Return the color of text border.

Type
  bemap.Color

#### getBorderWidth() → {int}

Return the width of text border in pixels.

Source:
  - bemap-model/bemap-textStyle.js, line 169

##### Returns:

Return the width of text border in pixels.

Type
  int

#### getColor() → {bemap.Color}

Return the color of text.

Source:
  - bemap-model/bemap-textStyle.js, line 75

##### Returns:

Return the color of text.

Type
  bemap.Color

#### getOffsetX() → {int}

Return the offset X of text.

Source:
  - bemap-model/bemap-textStyle.js, line 113

##### Returns:

Return the offset X of text.

Type
  int

#### getOffsetY() → {int}

Return the offset Y of text.

Source:
  - bemap-model/bemap-textStyle.js, line 131

##### Returns:

Return the offset Y of text.

Type
  int

#### getSize() → {int}

Return the size of text.

Source:
  - bemap-model/bemap-textStyle.js, line 95

##### 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:
  - bemap-model/bemap-textStyle.js, line 158

##### 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:
  - bemap-model/bemap-textStyle.js, line 178

##### 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:
  - bemap-model/bemap-textStyle.js, line 84

##### 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:
  - bemap-model/bemap-textStyle.js, line 122

##### 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:
  - bemap-model/bemap-textStyle.js, line 140

##### 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:
  - bemap-model/bemap-textStyle.js, line 104

##### Returns:

Return this.

Type
  bemap.TextStyle