Package mil.nga.mgrs.grid
Class GridLabeler
- java.lang.Object
-
- mil.nga.grid.Labeler
-
- mil.nga.mgrs.grid.GridLabeler
-
- Direct Known Subclasses:
GZDLabeler
,MGRSLabeler
public abstract class GridLabeler extends Labeler
Grid Labeler- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static double
DEFAULT_BUFFER
Default buffer sizestatic double
DEFAULT_TEXT_SIZE
Default text size
-
Constructor Summary
Constructors Constructor Description GridLabeler()
Default ConstructorGridLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color)
ConstructorGridLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize)
ConstructorGridLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
ConstructorGridLabeler(int minZoom, Integer maxZoom, Color color)
ConstructorGridLabeler(int minZoom, Integer maxZoom, Color color, double textSize)
ConstructorGridLabeler(int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
ConstructorGridLabeler(int minZoom, Color color)
ConstructorGridLabeler(int minZoom, Color color, double textSize)
ConstructorGridLabeler(int minZoom, Color color, double textSize, double buffer)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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
-
GridLabeler
public GridLabeler()
Default Constructor
-
GridLabeler
public GridLabeler(int minZoom, Color color)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label color
-
GridLabeler
public GridLabeler(int minZoom, Color color, double textSize)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label colortextSize
- label text size
-
GridLabeler
public GridLabeler(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)
-
GridLabeler
public GridLabeler(int minZoom, Integer maxZoom, Color color)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label color
-
GridLabeler
public GridLabeler(int minZoom, Integer maxZoom, Color color, double textSize)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text size
-
GridLabeler
public GridLabeler(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)
-
GridLabeler
public GridLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color)
Constructor- Parameters:
enabled
- enabled labelerminZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label color
-
GridLabeler
public GridLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize)
Constructor- Parameters:
enabled
- enabled labelerminZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text size
-
GridLabeler
public GridLabeler(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)
-
-