Class WeatherTileLayer

java.lang.Object
org.deltava.beans.wx.WeatherTileLayer
All Implemented Interfaces:
Serializable, Comparable<WeatherTileLayer>
Direct Known Subclasses:
WeatherFutureTileLayer

public class WeatherTileLayer extends Object implements Comparable<WeatherTileLayer>, Serializable
A bean to store weather tile overlay layer data.
Since:
8.0
Version:
11.6
Author:
Luke
See Also:
  • Constructor Details

    • WeatherTileLayer

      public WeatherTileLayer(String name)
      Creates the layer bean.
      Parameters:
      name - the layer name
  • Method Details

    • getName

      public String getName()
      Returns the layer name.
      Returns:
      the name
    • getDates

      public Collection<TileDate> getDates()
      Returns the layer effective dates.
      Returns:
      a Collection of TileDates
    • getNativeZoom

      public int getNativeZoom()
      Returns the layer's native zoom level.
      Returns:
      the native zoom level
    • getMaxZoom

      public int getMaxZoom()
      Returns the layer's maximum zoom level.
      Returns:
      the maximum zoom level
    • getPaletteCode

      public int getPaletteCode()
      Returns the layer's palette code.
      Returns:
      the palette code
    • addDate

      public void addDate(TileDate td)
      Adds an effective date to this layer.
      Parameters:
      td - a TileDate
    • setZoom

      public void setZoom(int nativeZoom, int maxZoom)
      Sets the native and maximum zoom levels for this layer.
      Parameters:
      nativeZoom - the native zoom level
      maxZoom - the maximum zoom level
    • setPaletteCode

      public void setPaletteCode(int code)
      Updates the layer's palette code.
      Parameters:
      code - the palette code
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(WeatherTileLayer l2)
      Specified by:
      compareTo in interface Comparable<WeatherTileLayer>