public class TLspGARSGridStyle extends Object
Styles grid lines and labels for GARS grid layers.
This style makes it possible to define different styles for all
(GARSLevel
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 (seeTLspGARSGridOverlayLabelBuilder
),
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 TLspGARSGridStyle.Builder.defaultGARSGridStyle()
.
The samples contain a class that builds a style from the ground up. This
sample code can be adjusted according to your needs. See samples.lightspeed.grid.GARSGridStyleFactory
GARSGridStyleFactory
.
Modifier and Type | Class and Description |
---|---|
static class |
TLspGARSGridStyle.Axis
The axis for which style information can be specified.
|
static class |
TLspGARSGridStyle.Builder<B extends TLspGARSGridStyle.Builder<B>>
Builder for GARS styles.
|
static class |
TLspGARSGridStyle.GARSLevel
The GARS grid level.
|
static class |
TLspGARSGridStyle.LabelPosition
Defines the position of the line labels with respect to the view.
|
static class |
TLspGARSGridStyle.LinePosition
Defines where the line labels should be positioned with respect to the line.
|
static class |
TLspGARSGridStyle.Orientation
Defines how the labels should be oriented.
|
Modifier and Type | Method and Description |
---|---|
TLspGARSGridStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
static TLspGARSGridStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
public static TLspGARSGridStyle.Builder<?> newBuilder()
public TLspGARSGridStyle.Builder<?> asBuilder()