Package mil.nga.mgrs.grid
Class MGRSLabeler
- java.lang.Object
-
- mil.nga.grid.Labeler
-
- mil.nga.mgrs.grid.GridLabeler
-
- mil.nga.mgrs.grid.MGRSLabeler
-
public class MGRSLabeler extends GridLabeler
MGRS grid labeler- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.mgrs.grid.GridLabeler
DEFAULT_BUFFER, DEFAULT_TEXT_SIZE
-
-
Constructor Summary
Constructors Constructor Description MGRSLabeler()
Default ConstructorMGRSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color)
ConstructorMGRSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize)
ConstructorMGRSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
ConstructorMGRSLabeler(int minZoom, Integer maxZoom, Color color)
ConstructorMGRSLabeler(int minZoom, Integer maxZoom, Color color, double textSize)
ConstructorMGRSLabeler(int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
ConstructorMGRSLabeler(int minZoom, Color color)
ConstructorMGRSLabeler(int minZoom, Color color, double textSize)
ConstructorMGRSLabeler(int minZoom, Color color, double textSize, double buffer)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<GridLabel>
getLabels(Bounds tileBounds, GridType gridType, GridZone zone)
Get labels for the bounds-
Methods inherited from class mil.nga.grid.Labeler
getBuffer, getColor, getMaxZoom, getMinZoom, getTextSize, hasMaxZoom, isEnabled, isWithin, setBuffer, setColor, setEnabled, setMaxZoom, setMinZoom, setTextSize
-
-
-
-
Constructor Detail
-
MGRSLabeler
public MGRSLabeler()
Default Constructor
-
MGRSLabeler
public MGRSLabeler(int minZoom, Color color)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label color
-
MGRSLabeler
public MGRSLabeler(int minZoom, Color color, double textSize)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label colortextSize
- label text size
-
MGRSLabeler
public MGRSLabeler(int minZoom, Color color, double textSize, double buffer)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label colortextSize
- label text sizebuffer
- grid zone edge buffer (greater than or equal to 0.0 and less than 0.5)
-
MGRSLabeler
public MGRSLabeler(int minZoom, Integer maxZoom, Color color)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label color
-
MGRSLabeler
public MGRSLabeler(int minZoom, Integer maxZoom, Color color, double textSize)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text size
-
MGRSLabeler
public MGRSLabeler(int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text sizebuffer
- grid zone edge buffer (greater than or equal to 0.0 and less than 0.5)
-
MGRSLabeler
public MGRSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color)
Constructor- Parameters:
enabled
- enabled labelerminZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label color
-
MGRSLabeler
public MGRSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize)
Constructor- Parameters:
enabled
- enabled labelerminZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text size
-
MGRSLabeler
public MGRSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
Constructor- Parameters:
enabled
- enabled labelerminZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text sizebuffer
- grid zone edge buffer (greater than or equal to 0.0 and less than 0.5)
-
-