Package mil.nga.gars.grid.style
Class Grids
Grids with Android specific styling
-
Field Summary
Fields inherited from class mil.nga.grid.BaseGrids
properties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Grids
create()
Create with all grid types enabledstatic Grids
create
(Collection<GridType> types) Create with grids to enablestatic Grids
Create with grids to enabledrawTile
(int tileWidth, int tileHeight, int x, int y, int zoom) Draw a tile with the dimensions and XYZ coordinateDraw a tile with the dimensions and boundsDraw the tilegetGrids
(int zoom) getLabelPaint
(GridType type) Get the grid label paint for the grid typegetLinePaint
(GridType type) Get the grid line paint for the grid typegetLinePaint
(GridType type, GridType precisionType) Get the grid type precision line paint for the grid typeprotected Grid
protected ZoomGrids
newZoomGrids
(int zoom) void
setLabelColor
(GridType type, Color color) void
setLabelPaint
(GridType type, Paint labelPaint) Set the grid label paint for the grid typevoid
setLabelTextSize
(GridType type, double textSize) void
setLinePaint
(GridType type, Paint linePaint) Set the grid line paint for the grid typevoid
setLinePaint
(GridType type, GridType precisionType, Paint linePaint) Set the grid type precision line paint for the grid typeMethods inherited from class mil.nga.gars.grid.Grids
deletePropagatedStyles, deletePropagatedStyles, deletePropagatedStyles, deletePropagatedStyles, disable, disableAllLabelers, disableLabeler, disableLabelers, disableLabelers, disableTypes, disableTypes, enable, enableLabeler, enableLabelers, enableLabelers, enableTypes, enableTypes, getDefaultWidth, getLabelBuffer, getLabeler, getPrecision, grids, hasLabeler, isEnabled, isLabelerEnabled, setAllColors, setAllLabelColors, setAllLabelTextSizes, setAllWidths, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setGrids, setGrids, setGrids, setGridTypes, setLabelBuffer, setLabelBuffer, setLabelBuffer, setLabelColor, setLabelColor, setLabeler, setLabelMaxZoom, setLabelMinZoom, setLabelTextSize, setLabelTextSize, setLabelZoomRange, setLinesMaxZoom, setLinesMinZoom, setMaxZoom, setMinZoom, setWidth, setWidth, setWidth, setWidth, setWidth, setWidth, setWidth, setZoomRange
Methods inherited from class mil.nga.grid.BaseGrids
createZoomGrids, disable, disableGrids, disableGrids, enable, enableAllLabelers, enableGrids, enableGrids, getGridStyle, loadGrid, loadGridStyleColor, loadGridStyleWidth, setAllLabelBuffers, setMaxZoom, setMinZoom, setZoomRange
-
Constructor Details
-
Grids
public Grids()Constructor, all grid types enabled -
Grids
Constructor- Parameters:
types
- grid types to enable
-
Grids
Constructor- Parameters:
types
- grid types to enable
-
-
Method Details
-
create
Create with all grid types enabled- Returns:
- grids
-
create
Create with grids to enable- Parameters:
types
- grid types to enable- Returns:
- grids
-
create
Create with grids to enable- Parameters:
types
- grid types to enable- Returns:
- grids
-
newGrid
-
newZoomGrids
- Overrides:
newZoomGrids
in classGrids
-
getGrid
-
getGrids
-
drawTile
Draw a tile with the dimensions and XYZ coordinate- Parameters:
tileWidth
- tile widthtileHeight
- tile heightx
- x coordinatey
- y coordinatezoom
- zoom level- Returns:
- bitmap tile
-
drawTile
Draw a tile with the dimensions and bounds- Parameters:
tileWidth
- tile widthtileHeight
- tile heightbounds
- bounds- Returns:
- bitmap tile
-
drawTile
Draw the tile- Parameters:
gridTile
- tile- Returns:
- bitmap tile
-
getLinePaint
Get the grid line paint for the grid type- Parameters:
type
- grid type- Returns:
- grid line paint
-
setLinePaint
Set the grid line paint for the grid type- Parameters:
type
- grid typelinePaint
- grid line paint
-
getLinePaint
Get the grid type precision line paint for the grid type- Parameters:
type
- grid typeprecisionType
- precision grid type- Returns:
- grid line paint
-
setLinePaint
Set the grid type precision line paint for the grid type- Parameters:
type
- grid typeprecisionType
- precision grid typelinePaint
- grid line paint
-
getLabelPaint
Get the grid label paint for the grid type- Parameters:
type
- grid type- Returns:
- grid label paint
-
setLabelPaint
Set the grid label paint for the grid type- Parameters:
type
- grid typelabelPaint
- grid label paint
-
setLabelColor
- Overrides:
setLabelColor
in classGrids
-
setLabelTextSize
- Overrides:
setLabelTextSize
in classGrids
-