public class TLspMGRSGridStyle extends Object
Style that can be used for MGRS grid layers. This style can be used to style the grid lines as well as the labels.
This style makes it possible to define different styles for all
(MGRSType
, MGRSLevel
and body/label) combinations. For
every combination, it as also possible to define different scale intervals, in which
different styles are used. This can be used to make lines or labels more prominent
when zooming in.
For lines, the following styles are supported:
For labels, the following styles are supported: For overlay components (seeTLspMGRSGridOverlayLabelBuilder
),
the following styles are supported:
On top of that, the text formatting can be controlled.
A simple way to use this class is to create a default style, see Builder#defaultMGRSGridStyle()
. The samples contain a class that builds a style from the ground up. This
sample code can be adjusted according to needs. See samples.lightspeed.grid.mgrs.MGRSGridStyleFactory
.
Modifier and Type | Class and Description |
---|---|
static class |
TLspMGRSGridStyle.Axis
The axis for which style information can be specified.
|
static class |
TLspMGRSGridStyle.Builder<B extends TLspMGRSGridStyle.Builder<B>>
Builder for MGRS styles.
|
static class |
TLspMGRSGridStyle.LabelPosition
Defines the position of the line labels with respect to the view.
|
static class |
TLspMGRSGridStyle.LinePosition
Defines where the line labels should be positioned with respect to the line.
|
static class |
TLspMGRSGridStyle.MGRSLevel
The MGRS level.
|
static class |
TLspMGRSGridStyle.MGRSType
The MGRS Type.
|
static class |
TLspMGRSGridStyle.Orientation
Defines how the labels should be oriented.
|
Modifier and Type | Method and Description |
---|---|
TLspMGRSGridStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
static TLspMGRSGridStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
public static TLspMGRSGridStyle.Builder<?> newBuilder()
public TLspMGRSGridStyle.Builder<?> asBuilder()