Package mil.nga.gars.grid
Class GARSLabeler
- java.lang.Object
-
- mil.nga.grid.Labeler
-
- mil.nga.gars.grid.GridLabeler
-
- mil.nga.gars.grid.GARSLabeler
-
public class GARSLabeler extends GridLabeler
GARS grid labeler- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.gars.grid.GridLabeler
DEFAULT_BUFFER, DEFAULT_TEXT_SIZE
-
-
Constructor Summary
Constructors Constructor Description GARSLabeler()
Default ConstructorGARSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color)
ConstructorGARSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize)
ConstructorGARSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
ConstructorGARSLabeler(int minZoom, Integer maxZoom, Color color)
ConstructorGARSLabeler(int minZoom, Integer maxZoom, Color color, double textSize)
ConstructorGARSLabeler(int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
ConstructorGARSLabeler(int minZoom, Color color)
ConstructorGARSLabeler(int minZoom, Color color, double textSize)
ConstructorGARSLabeler(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)
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
-
GARSLabeler
public GARSLabeler()
Default Constructor
-
GARSLabeler
public GARSLabeler(int minZoom, Color color)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label color
-
GARSLabeler
public GARSLabeler(int minZoom, Color color, double textSize)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label colortextSize
- label text size
-
GARSLabeler
public GARSLabeler(int minZoom, Color color, double textSize, double buffer)
Constructor- Parameters:
minZoom
- minimum zoomcolor
- label colortextSize
- label text sizebuffer
- grid edge buffer (greater than or equal to 0.0 and less than 0.5)
-
GARSLabeler
public GARSLabeler(int minZoom, Integer maxZoom, Color color)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label color
-
GARSLabeler
public GARSLabeler(int minZoom, Integer maxZoom, Color color, double textSize)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text size
-
GARSLabeler
public GARSLabeler(int minZoom, Integer maxZoom, Color color, double textSize, double buffer)
Constructor- Parameters:
minZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text sizebuffer
- grid edge buffer (greater than or equal to 0.0 and less than 0.5)
-
GARSLabeler
public GARSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color)
Constructor- Parameters:
enabled
- enabled labelerminZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label color
-
GARSLabeler
public GARSLabeler(boolean enabled, int minZoom, Integer maxZoom, Color color, double textSize)
Constructor- Parameters:
enabled
- enabled labelerminZoom
- minimum zoommaxZoom
- maximum zoomcolor
- label colortextSize
- label text size
-
GARSLabeler
public GARSLabeler(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 edge buffer (greater than or equal to 0.0 and less than 0.5)
-
-