public final class MgrsGridSetting extends Object implements AutoCloseable
It defines the style to use for a combination of
Modifier and Type | Class and Description |
---|---|
static class |
MgrsGridSetting.Builder
Builder for a MGRS grid setting.
|
Constructor and Description |
---|
MgrsGridSetting(MgrsGridSetting other) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object other) |
protected void |
finalize() |
double |
getLabelEdgeOffset()
Returns the label edge offset.
|
String |
getLabelFormat()
Returns the label format.
|
double |
getLabelGridOffset()
Returns the label grid offset.
|
GridLabelOrientation |
getLabelOrientation()
Returns the label orientation.
|
GridLabelPosition |
getLabelPosition()
Returns the label position.
|
TextStyle |
getLabelStyle()
Returns the label style.
|
MgrsLevel |
getLevel()
Returns the MGRS level.
|
GridLineLabelPosition |
getLineLabelPosition()
Returns the line label position.
|
LineStyle |
getLineStyle()
Returns the line style.
|
MapScale |
getMaxScale()
Returns the max scale (most zoomed in) for which this setting applies.
|
MapScale |
getMinScale()
Returns the min scale (most zoomed out) for which this setting applies.
|
MgrsType |
getType()
Returns the MGRS type.
|
int |
hashCode() |
static MgrsGridSetting.Builder |
newBuilder()
Creates a new builder with the default values.
|
public MgrsGridSetting(@NotNull MgrsGridSetting other)
public void close()
close
in interface AutoCloseable
@NotNull public static MgrsGridSetting.Builder newBuilder()
@NotNull public MgrsLevel getLevel()
@NotNull public MgrsType getType()
@NotNull public MapScale getMinScale()
@NotNull public MapScale getMaxScale()
@NotNull public LineStyle getLineStyle()
@NotNull public TextStyle getLabelStyle()
public double getLabelEdgeOffset()
public double getLabelGridOffset()
@NotNull public GridLineLabelPosition getLineLabelPosition()
@NotNull public GridLabelOrientation getLabelOrientation()
@NotNull public GridLabelPosition getLabelPosition()
@Nullable public String getLabelFormat()