S
- The SinglePointStyle child stylepublic abstract class SinglePointStyle<S extends SinglePointStyle> extends FeatureStyle<S>
The style of single point geometry.
Copyright (c) 2017 Nexusgeographics All rights reserved.
Styling
,
FeatureStyle
,
LabelStyle
,
MarkerStyle
Styling.Style
Constructor and Description |
---|
SinglePointStyle()
Instantiates a new Single point style.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getCollide()
Gets collide.
|
java.lang.Integer[] |
getOffset()
Get offset integer [ ].
|
java.lang.Integer[] |
getSize()
Get size integer [ ].
|
LabelStyle |
getText()
get text style
|
S |
setCollide(java.lang.Boolean collide)
Sets collide.
|
S |
setOffset(java.lang.Integer[] offset)
Sets offset.
|
S |
setOffset(int xPixels,
int yPixels)
Sets offset.
|
S |
setSize(java.lang.Integer[] size)
Sets size.
|
S |
setSize(int xPixels,
int yPixels)
Sets size.
|
S |
setText(LabelStyle labelStyle)
Sets style label.
|
S |
setText(java.lang.String text)
Sets text to LabelStyle.
|
getInteractive, isInteractive, setInteractive
getBlend, getColor, getMapStyle, getOrder, getStyle, getStylePath, hasStylePath, isVisible, setBlend, setColor, setOrder, setStyle, setStylePath, setVisible, toJson, toMap, toString
public SinglePointStyle()
@NonNull public java.lang.Integer[] getSize()
public S setSize(@NonNull java.lang.Integer[] size)
Example:
SinglePointStyle.setSize(new Integer[]{25, 25})
size
- the size in pixelspublic S setSize(int xPixels, int yPixels)
Example:
SinglePointStyle.setSize(25, 25)
xPixels
- pixels size in xyPixels
- the y pixels@Nullable public java.lang.Boolean getCollide()
public S setCollide(@Nullable java.lang.Boolean collide)
collide
- the collide@Nullable public java.lang.Integer[] getOffset()
public S setOffset(@Nullable java.lang.Integer[] offset)
Example:
SinglePointStyle.setOffset(new Integer[]{1, 1})
offset
- the offset [x, y] in pixelspublic S setOffset(int xPixels, int yPixels)
Example:
SinglePointStyle.setOffset(1, 1)
xPixels
- offset pixels in xyPixels
- offset pixels in ypublic S setText(@Nullable LabelStyle labelStyle)
labelStyle
- the label stylepublic S setText(@Nullable java.lang.String text)
text
- the text@Nullable public LabelStyle getText()