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 TypeMethodDescriptionvoidAdds an effective date to this layer.intgetDates()Returns the layer effective dates.intReturns the layer's maximum zoom level.getName()Returns the layer name.intReturns the layer's native zoom level.intReturns the layer's palette code.inthashCode()voidsetPaletteCode(int code) Updates the layer's palette code.voidsetZoom(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:
compareToin interfaceComparable<WeatherTileLayer>
-