-
- All Implemented Interfaces:
-
org.osmdroid.views.util.constants.OverlayConstants
public class LatLonGridlineOverlay2 extends Overlay
created on 2/7/2018.
-
-
Constructor Summary
Constructors Constructor Description LatLonGridlineOverlay2()
-
Method Summary
Modifier and Type Method Description voiddraw(Canvas c, Projection pProjection)voidsetDecimalFormatter(DecimalFormat df)voidsetLineColor(int lineColor)voidsetFontColor(int fontColor)voidsetFontSizeDp(short fontSizeDp)voidsetTextStyle(Paint.Style paint)sets the text label paint stylersee https://github. voidsetTextPaint(Paint paint)if for some reason there's missing setter for this class and you don't want to subclass it,you can override the paint object with this method. PaintgetTextPaint()getter for the Paint object. voidsetBackgroundColor(int backgroundColor)background color for the text labels voidsetLineWidth(float lineWidth)voidsetMultiplier(float multiplier)default is 1, larger number = more lines on screen. -
Methods inherited from class org.osmdroid.views.overlay.Overlay
draw, draw, getBounds, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
draw
void draw(Canvas c, Projection pProjection)
-
setDecimalFormatter
void setDecimalFormatter(DecimalFormat df)
-
setLineColor
void setLineColor(int lineColor)
-
setFontColor
void setFontColor(int fontColor)
-
setFontSizeDp
void setFontSizeDp(short fontSizeDp)
-
setTextStyle
void setTextStyle(Paint.Style paint)
sets the text label paint stylersee https://github.com/osmdroid/osmdroid/issues/1723
-
setTextPaint
void setTextPaint(Paint paint)
if for some reason there's missing setter for this class and you don't want to subclass it,you can override the paint object with this method. Only used for the text painter
-
getTextPaint
Paint getTextPaint()
getter for the Paint object. I'd suggest using the setter methods first or subclassing this classif you need to do something else but this will get you access to the live instance of the paint objectwhich is used for drawing text labels
-
setBackgroundColor
void setBackgroundColor(int backgroundColor)
background color for the text labels
-
setLineWidth
void setLineWidth(float lineWidth)
-
setMultiplier
void setMultiplier(float multiplier)
default is 1, larger number = more lines on screen. This comes at a performance penalty though
-
-
-
-