Package com.luciad.view.map.mgrs
Class TLcdMGRSGridOverlayLabelBuilder
java.lang.Object
com.luciad.view.map.mgrs.TLcdMGRSGridOverlayLabelBuilder
Builder that makes it possible to create MGRS overlay labels. These labels are painted on the view
and show (part of) an MGRS coordinate. These labels can have a pre-defined content, and style.
An example of how to use this builder:
TLcdMGRSGridOverlayLabelBuilder overlayLabelBuilder =
TLcdMGRSGridOverlayLabelBuilder.newBuilder()
.content(TLcdMGRSGridOverlayLabelBuilder.Content.COORDINATE_AT_CENTER)
.style(gridStyle);
TLcdMGRSGridLayer gridLayer = ...;
gridLayer.addOverlayLabel(overlayLabelBuilder, TLcdOverlayLayout.Location.NORTH);
- Since:
- 2015.1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The content that is displayed in the label. -
Method Summary
Modifier and TypeMethodDescriptionall
(TLcdMGRSGridOverlayLabelBuilder aBuilder) Copies all properties from the given builder.The content which is being displayed.Creates a new builder, capable of adding MGRS grid labels.style
(TLcdMGRSGridStyle aMGRSGridStyle) The style with which the overlay label is being displayed.
-
Method Details
-
newBuilder
Creates a new builder, capable of adding MGRS grid labels.- Returns:
- a new builder
-
content
The content which is being displayed. By default, the content isCOORDINATE_AT_CENTER
.- Parameters:
aContent
- coordinate which is being displayed.- Returns:
- this builder
-
style
The style with which the overlay label is being displayed. When using this method, only styles and formats set after using the
TLspMGRSGridStyle.Builder.overlay()
are used.When setting a format, it is ignored when using
COMMON_VIEW_COORDINATE
.- Parameters:
aMGRSGridStyle
- the MGRS grid style.- Returns:
- this builder.
-
all
Copies all properties from the given builder.- Parameters:
aBuilder
- a builder- Returns:
- this builder.
-