public abstract class AbstractLayer

  1. Object
  2. AbstractLayer

ImplementsLayer

Known subtypesLinesLayer, PointsLayer

This class represents an abstract layer on the map.

Fields

protected final String name
protected Projection projection

Constructors

public AbstractLayer(Projection p, String name)Creates an abstract layer.

Methods

public String getName()Gets the name of this Layer
public Projection getProjection()The projection of this Layer
public abstract BoundingBox boundingBox()The bounding box of this Layer

Inherited methods

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 Projection
the projection system of this Layer
name String
the name of this Layer

Method details

getName

public String getName()
Gets the name of this Layer

Returns

the name of this 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