Class AbstractLayer

java.lang.Object
com.codename1.maps.layers.AbstractLayer
All Implemented Interfaces:
Layer
Direct Known Subclasses:
LinesLayer, PointsLayer

public abstract class AbstractLayer extends Object implements Layer
This class represents an abstract layer on the map.
  • Field Details

    • name

      protected final String name
    • projection

      protected Projection projection
  • Constructor Details

    • AbstractLayer

      public AbstractLayer(Projection p, String name)

      Creates an abstract layer.

      Parameters
      • p: the projection system of this Layer

      • name: the name of this Layer

  • Method Details

    • getName

      public String getName()

      Gets the name of this Layer

      Returns

      the name of this Layer

      Specified by:
      getName in interface Layer
    • getProjection

      public Projection getProjection()

      The projection of this Layer

      Returns

      the projection of this Layer

    • boundingBox

      public abstract BoundingBox boundingBox()

      The bounding box of this Layer

      Returns

      the Layer bounding box

      Specified by:
      boundingBox in interface Layer