Class PolylineContainer

  • All Implemented Interfaces:
    ShapeContainer

    public class PolylineContainer
    extends java.lang.Object
    implements ShapeContainer
    A PolylineContainer encapsulates the way data retrieved from a map file.

    The class uses deferred evaluation for computing the absolute and relative pixel coordinates of the way as many ways will not actually be rendered on a map. In order to save memory, after evaluation, the internally stored way is released.

    • Constructor Summary

      Constructors 
      Constructor Description
      PolylineContainer​(org.mapsforge.core.model.Point[] coordinates, org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight, java.util.List<org.mapsforge.core.model.Tag> tags)  
      PolylineContainer​(Way way, org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)  
    • Constructor Detail

      • PolylineContainer

        public PolylineContainer​(Way way,
                                 org.mapsforge.core.model.Tile upperLeft,
                                 org.mapsforge.core.model.Tile lowerRight)
      • PolylineContainer

        public PolylineContainer​(org.mapsforge.core.model.Point[] coordinates,
                                 org.mapsforge.core.model.Tile upperLeft,
                                 org.mapsforge.core.model.Tile lowerRight,
                                 java.util.List<org.mapsforge.core.model.Tag> tags)
    • Method Detail

      • getCenterAbsolute

        public org.mapsforge.core.model.Point getCenterAbsolute()
      • getCoordinatesAbsolute

        public org.mapsforge.core.model.Point[][] getCoordinatesAbsolute()
      • getCoordinatesRelativeToOrigin

        public org.mapsforge.core.model.Point[][] getCoordinatesRelativeToOrigin()
      • getLayer

        public byte getLayer()
      • getShapeType

        public org.mapsforge.map.layer.renderer.ShapeType getShapeType()
        Specified by:
        getShapeType in interface ShapeContainer
      • getTags

        public java.util.List<org.mapsforge.core.model.Tag> getTags()
      • isClosedWay

        public boolean isClosedWay()
      • getUpperLeft

        public org.mapsforge.core.model.Tile getUpperLeft()
      • getLowerRight

        public org.mapsforge.core.model.Tile getLowerRight()