Package mil.nga.mgrs.gzd
Class GZDLabeler
- java.lang.Object
-
- mil.nga.grid.Labeler
-
- mil.nga.mgrs.grid.GridLabeler
-
- mil.nga.mgrs.gzd.GZDLabeler
-
public class GZDLabeler extends GridLabeler
Grid Zone Designator labeler- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.mgrs.grid.GridLabeler
DEFAULT_BUFFER, DEFAULT_TEXT_SIZE
-
-
Constructor Summary
Constructors Constructor Description GZDLabeler()
Default ConstructorGZDLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color)
ConstructorGZDLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize)
ConstructorGZDLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
ConstructorGZDLabeler(int minZoom, Integer maxZoom, Color color)
ConstructorGZDLabeler(int minZoom, Integer maxZoom, Color color, double textSize)
ConstructorGZDLabeler(int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
ConstructorGZDLabeler(int minZoom, Color color)
ConstructorGZDLabeler(int minZoom, Color color, double textSize)
ConstructorGZDLabeler(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
-
GZDLabeler
public GZDLabeler()
Default Constructor
-
GZDLabeler
public GZDLabeler(int minZoom, Color color)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label color
-
GZDLabeler
public GZDLabeler(int minZoom, Color color, double textSize)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label colortextSize
- label text size
-
GZDLabeler
public GZDLabeler(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)
-
GZDLabeler
public GZDLabeler(int minZoom, Integer maxZoom, Color color)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label color
-
GZDLabeler
public GZDLabeler(int minZoom, Integer maxZoom, Color color, double textSize)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text size
-
GZDLabeler
public GZDLabeler(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)
-
GZDLabeler
public GZDLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color)
Constructor- Parameters:
enabled
- enabled labelerminZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label color
-
GZDLabeler
public GZDLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize)
Constructor- Parameters:
enabled
- enabled labelerminZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text size
-
GZDLabeler
public GZDLabeler(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)
-
-