public final class LabelStyle extends Styling<LabelStyle>
The style of Label.
Copyright (c) 2017 Nexusgeographics All rights reserved.
Styling
Modifier and Type | Class and Description |
---|---|
static class |
LabelStyle.Anchor |
Styling.Style
Constructor and Description |
---|
LabelStyle()
Instantiates a new Point style.
|
LabelStyle(FontStyle font)
Instantiates a new Point style.
|
LabelStyle(java.util.Map<java.lang.String,java.lang.String> mapStyle)
Instantiates a new Point style.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlign()
Gets align.
|
LabelStyle.Anchor |
getAnchor()
Gets anchor.
|
java.lang.Boolean |
getCollide()
Gets collide.
|
FontStyle |
getFont()
Gets font.
|
java.lang.Integer[] |
getOffset()
Get offset integer [ ].
|
java.lang.String |
getOutline()
Gets outline in pixels.
|
java.lang.Integer |
getPriority()
Gets priority.
|
java.lang.String |
getRepeatDistance()
Gets repeat distance.
|
java.lang.String |
getRepeatGroup()
Gets repeat group.
|
java.lang.String |
getSprite()
Gets sprite.
|
java.lang.String |
getTextSource()
Gets text source.
|
java.lang.String |
getTextWrap()
Gets text wrap.
|
void |
setAlign(java.lang.String align)
Sets align.
|
void |
setAnchor(LabelStyle.Anchor anchor)
Sets anchor.
|
LabelStyle |
setCollide(java.lang.Boolean collide)
Sets collide.
|
void |
setFont(FontStyle font)
Sets font.
|
LabelStyle |
setOffset(java.lang.Integer[] offset)
Sets offset [x, y].
|
LabelStyle |
setOffset(int xPixels,
int yPixels)
Sets offset.
|
LabelStyle |
setOutline(java.lang.String pixels)
Sets outline in pixels.
|
LabelStyle |
setPriority(java.lang.Integer priority)
Sets priority.
|
void |
setRepeatDistance(java.lang.String repeatDistance)
Sets repeat distance.
|
void |
setRepeatGroup(java.lang.String repeatGroup)
Sets repeat group.
|
LabelStyle |
setSprite(java.lang.String sprite)
Sets sprite.
|
void |
setTextSource(java.lang.String textSource)
Sets text source.
|
void |
setTextWrap(java.lang.String textWrap)
Sets text wrap.
|
getBlend, getColor, getMapStyle, getOrder, getStyle, getStylePath, hasStylePath, isVisible, setBlend, setColor, setOrder, setStyle, setStylePath, setVisible, toJson, toMap, toString
public LabelStyle()
public LabelStyle(FontStyle font)
font
- the fontpublic LabelStyle(java.util.Map<java.lang.String,java.lang.String> mapStyle)
mapStyle
- the map style@Nullable public java.lang.Boolean getCollide()
public LabelStyle setCollide(@Nullable java.lang.Boolean collide)
collide
- the collidepublic FontStyle getFont()
public void setFont(@NonNull FontStyle font)
font
- the fontpublic java.lang.String getTextSource()
public void setTextSource(java.lang.String textSource)
textSource
- the text sourcepublic java.lang.String getAlign()
public void setAlign(java.lang.String align)
align
- the alignpublic LabelStyle.Anchor getAnchor()
public void setAnchor(LabelStyle.Anchor anchor)
anchor
- the anchorpublic java.lang.String getTextWrap()
public void setTextWrap(java.lang.String textWrap)
textWrap
- the text wrappublic java.lang.String getRepeatDistance()
public void setRepeatDistance(java.lang.String repeatDistance)
repeatDistance
- the repeat distancepublic java.lang.String getRepeatGroup()
public void setRepeatGroup(java.lang.String repeatGroup)
repeatGroup
- the repeat grouppublic java.lang.Integer getPriority()
public LabelStyle setPriority(java.lang.Integer priority)
priority
- the prioritypublic java.lang.String getSprite()
public LabelStyle setSprite(java.lang.String sprite)
sprite
- the spritepublic LabelStyle setOutline(java.lang.String pixels)
Example:
LabelStyle.setOutline("1px")
pixels
- the pixelspublic java.lang.String getOutline()
public java.lang.Integer[] getOffset()
public LabelStyle setOffset(java.lang.Integer[] offset)
Example:
LabelStyle.setOffset(new Integer[]{1, 1})
offset
- the offset [x, y]public LabelStyle setOffset(int xPixels, int yPixels)
Example:
LabelStyle.setOffset(1, 1)
xPixels
- offset pixels in xyPixels
- offset pixels in y