Package 

Class SimplePointTheme

  • All Implemented Interfaces:
    java.lang.Iterable , org.osmdroid.views.overlay.simplefastpoint.SimpleFastPointOverlay.PointAdapter

    
    public final class SimplePointTheme
     implements SimpleFastPointOverlay.PointAdapter
                        

    This class is just a simple wrapper for a List of IGeoPoints to be used in SimpleFastPointOverlay. Can be used for unlabelled or labelled GeoPoints. Use the simple constructor, or otherwise be sure to set the labelled and styled parameters of the constructor to match the kind of points. More complex cases should implement SimpleFastPointOverlay.PointAdapter, not extend this one. This is a simple example on how to implement an adapter for any case. Created by Miguel Porto on 26-10-2016.

    • Method Summary

      Modifier and Type Method Description
      int size()
      IGeoPoint get(int i)
      boolean isLabelled() Whether this adapter has labels
      boolean isStyled() Whether the points are individually styled
      Iterator<IGeoPoint> iterator() NOTE: this iterator will be called very frequently, avoid complicated code.
      • Methods inherited from class java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

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

      • SimplePointTheme

        SimplePointTheme(List<IGeoPoint> pPoints, boolean labelled)
      • SimplePointTheme

        SimplePointTheme(List<IGeoPoint> pPoints, boolean labelled, boolean styled)