Package 

Class PolychromaticPaintList

  • All Implemented Interfaces:
    org.osmdroid.views.overlay.PaintList

    
    public class PolychromaticPaintList
     implements PaintList
                        

    A real PaintList with potentially different colors for each segment, and linear gradients

    • Method Summary

      Modifier and Type Method Description
      Paint getPaint()
      Paint getPaint(int pIndex, float pX0, float pY0, float pX1, float pY1)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PolychromaticPaintList

        PolychromaticPaintList(Paint pPaint, ColorMapping pColorMapping, boolean pUseGradient)
        Parameters:
        pPaint - Basis Paint
        pColorMapping - from where we get the color to use for each geo segment
        pUseGradient - should we use a gradient from this segment's color to the next segment's