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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Gridscreate()Create with all grid types enabledstatic Gridscreate(Collection<GridType> types) Create with grids to enablestatic GridsCreate 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 Gridprotected ZoomGridsnewZoomGrids(int zoom) voidsetLabelColor(GridType type, Color color) voidsetLabelPaint(GridType type, Paint labelPaint) Set the grid label paint for the grid typevoidsetLabelTextSize(GridType type, double textSize) voidsetLinePaint(GridType type, Paint linePaint) Set the grid line paint for the grid typevoidsetLinePaint(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, setZoomRangeMethods 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:
newZoomGridsin 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:
setLabelColorin classGrids
-
setLabelTextSize
- Overrides:
setLabelTextSizein classGrids
-