Package mil.nga.gars.grid.style
Class Grid
java.lang.Object
mil.nga.grid.BaseGrid
mil.nga.gars.grid.Grid
mil.nga.gars.grid.style.Grid
- All Implemented Interfaces:
Comparable<Grid>
Grid with Android specific styling
-
Field Summary
Fields inherited from class mil.nga.gars.grid.Grid
DEFAULT_WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate the grid label paintCreate the grid line paintcreateLinePaint(GridType gridType) Create the grid line paintGet the grid label paint, create if neededGet the grid line paint, create if neededgetLinePaint(GridType gridType) Get the grid line paint for the grid type, create if neededvoidReset the grid label paintvoidReset the grid line paintvoidresetLinePaint(GridType gridType) Reset the grid type line paintvoidReset the grid line and label paintvoidvoidvoidsetLabelPaint(Paint labelPaint) Set the grid label paintvoidsetLinePaint(Paint paint) Set the grid line paintvoidsetLinePaint(GridType gridType, Paint paint) Set the grid line paintvoidsetWidth(double width) voidMethods inherited from class mil.nga.gars.grid.Grid
clearPrecisionStyles, compareTo, equals, getColor, getLabeler, getLabels, getLabels, getLines, getLines, getLines, getPrecision, getStyle, getType, getWidth, hashCode, isType, setLabeler, setStyleMethods inherited from class mil.nga.grid.BaseGrid
getColor, getLabelBuffer, getLinesMaxZoom, getLinesMinZoom, getMaxZoom, getMinZoom, getStyle, getWidth, hasLabeler, hasLinesMaxZoom, hasLinesMinZoom, hasMaxZoom, isEnabled, isLabelerWithin, isLinesWithin, isWithin, setEnabled, setLabeler, setLinesMaxZoom, setLinesMinZoom, setMaxZoom, setMinZoom, setStyle
-
Constructor Details
-
Grid
Constructor- Parameters:
type- grid type
-
-
Method Details
-
getLinePaint
Get the grid line paint, create if needed- Returns:
- grid line paint
-
getLinePaint
Get the grid line paint for the grid type, create if needed- Parameters:
gridType- grid type- Returns:
- grid line paint
-
createLinePaint
Create the grid line paint- Returns:
- grid line paint
-
createLinePaint
Create the grid line paint- Parameters:
gridType- grid type- Returns:
- grid line paint
-
setWidth
public void setWidth(double width) -
setColor
-
setColor
-
setWidth
-
resetLinePaint
public void resetLinePaint()Reset the grid line paint -
resetLinePaint
Reset the grid type line paint- Parameters:
gridType- grid type
-
setLinePaint
Set the grid line paint- Parameters:
paint- grid line paint
-
setLinePaint
Set the grid line paint- Parameters:
gridType- grid typepaint- grid line paint
-
getLabelPaint
Get the grid label paint, create if needed- Returns:
- grid label paint, null if no labeler
-
createLabelPaint
Create the grid label paint- Returns:
- grid label paint, null if no labeler
-
resetLabelPaint
public void resetLabelPaint()Reset the grid label paint -
setLabelPaint
Set the grid label paint- Parameters:
labelPaint- grid label paint
-
resetPaint
public void resetPaint()Reset the grid line and label paint
-