Package 

Class LatLonGridlineOverlay2

  • All Implemented Interfaces:
    org.osmdroid.views.util.constants.OverlayConstants

    
    public class LatLonGridlineOverlay2
    extends Overlay
                        

    created on 2/7/2018.

    • Method Summary

      Modifier and Type Method Description
      void draw(Canvas c, Projection pProjection)
      void setDecimalFormatter(DecimalFormat df)
      void setLineColor(int lineColor)
      void setFontColor(int fontColor)
      void setFontSizeDp(short fontSizeDp)
      void setTextStyle(Paint.Style paint) sets the text label paint stylersee https://github.
      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.
      Paint getTextPaint() getter for the Paint object.
      void setBackgroundColor(int backgroundColor) background color for the text labels
      void setLineWidth(float lineWidth)
      void setMultiplier(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
    • Constructor Detail

      • LatLonGridlineOverlay2

        LatLonGridlineOverlay2()
    • Method Detail

      • 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

      • setMultiplier

         void setMultiplier(float multiplier)

        default is 1, larger number = more lines on screen. This comes at a performance penalty though