Class WeatherTileLayer
java.lang.Object
org.deltava.beans.wx.WeatherTileLayer
- All Implemented Interfaces:
Serializable
,Comparable<WeatherTileLayer>
- Direct Known Subclasses:
WeatherFutureTileLayer
A bean to store weather tile overlay layer data.
- Since:
- 8.0
- Version:
- 11.6
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an effective date to this layer.int
getDates()
Returns the layer effective dates.int
Returns the layer's maximum zoom level.getName()
Returns the layer name.int
Returns the layer's native zoom level.int
Returns the layer's palette code.int
hashCode()
void
setPaletteCode
(int code) Updates the layer's palette code.void
setZoom
(int nativeZoom, int maxZoom) Sets the native and maximum zoom levels for this layer.toString()
-
Constructor Details
-
WeatherTileLayer
-
-
Method Details
-
getName
-
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
-
setZoom
public void setZoom(int nativeZoom, int maxZoom) Sets the native and maximum zoom levels for this layer.- Parameters:
nativeZoom
- the native zoom levelmaxZoom
- the maximum zoom level
-
setPaletteCode
public void setPaletteCode(int code) Updates the layer's palette code.- Parameters:
code
- the palette code
-
toString
-
hashCode
-
compareTo
- Specified by:
compareTo
in interfaceComparable<WeatherTileLayer>
-