Class AbstractLayer

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

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

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
    protected Projection
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an abstract layer.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract BoundingBox
    The bounding box of this Layer
    Gets the name of this Layer
    The projection of this Layer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Layer

    paint
  • 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