java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherLayer

public class WeatherLayer extends Object
  • Field Details

    • LAYERCOUNT

      public static final int LAYERCOUNT
      See Also:
    • dateFormat

      public final SimpleDateFormat dateFormat
    • WARNMAPX0

      public static final float WARNMAPX0
      See Also:
    • WARNMAPY0

      public static final float WARNMAPY0
      See Also:
    • WARNMAPX1

      public static final float WARNMAPX1
      See Also:
    • WARNMAPY1

      public static final float WARNMAPY1
      See Also:
    • WarnMapGeo

      public static final float[] WarnMapGeo
    • WarnMapSize

      public static final int[] WarnMapSize
    • layerMapWidth

      public static final int layerMapWidth
      See Also:
    • layerMapHeight

      public static final int layerMapHeight
      See Also:
    • EuropeLargeGeo

      public static final float[] EuropeLargeGeo
    • EuropeLargeSize

      public static final int[] EuropeLargeSize
    • CACHE_FILENAME_SUFFIX

      public static final String CACHE_FILENAME_SUFFIX
      See Also:
    • CacheFileNames

      public static final String[] CacheFileNames
    • LayerIDs

      public static final String[] LayerIDs
  • Constructor Details

    • WeatherLayer

      public WeatherLayer(int layer, float[] mapGeo, long targetTime, int width, int height, String srs, int updateMode, int[] atop, int legendType)
    • WeatherLayer

      public WeatherLayer(int i)
  • Method Details

    • isInIntArray

      public static boolean isInIntArray(int[] array, int value)
    • getDisabledLayersArray

      public static int[] getDisabledLayersArray(Context context)
    • getFilteredBrowseItemsOrder

      public static int[] getFilteredBrowseItemsOrder(Context context)
    • getCacheFilename

      public static String getCacheFilename(int layer)
    • getCacheFilename

      public String getCacheFilename()
    • getFullChacheFilepath

      public String getFullChacheFilepath(Context context)
    • getFileLastModifiedTime

      public long getFileLastModifiedTime(Context context)
    • setFileLastModifiedTime

      public boolean setFileLastModifiedTime(Context context, long time)
    • getLayerID

      public static String getLayerID(int layer)
    • getLabel

      public static String getLabel(Context context, int layer)
    • getShortLabel

      public static String getShortLabel(Context context, int layer)
    • getMidnightTime

      public static long getMidnightTime(long time, int daysToAdd)
    • getMidnightTime

      public static long getMidnightTime(long time)
    • getRelativeDays

      public static int getRelativeDays(long time)
    • getFullHourTime

      public static long getFullHourTime(long time, int hour, int daysToAdd, int timeZone)
    • isOutdated

      public boolean isOutdated(Context context)
    • getLayer

      public static WeatherLayer getLayer(int i)
    • isInArray

      public static boolean isInArray(int[] array, int item)
    • getLayers

      public static ArrayList<WeatherLayer> getLayers(Context context)
    • getLayerBitmap

      public Bitmap getLayerBitmap(Context context, int inSampleSize)
    • getTransparentLayerBitmap

      public Bitmap getTransparentLayerBitmap(Context context, int targetColor, int inSampleSize)
    • replaceBitmapColor

      public static Bitmap replaceBitmapColor(Bitmap bitmap, int sourceColor, int targetColor)
    • getTargetTime

      public long getTargetTime()
    • getTimestampString

      public String getTimestampString()
    • saveLayerBitmapToCache

      public void saveLayerBitmapToCache(Context context, Bitmap bitmap)
    • isPollenLayerCacheFileOutdated

      public boolean isPollenLayerCacheFileOutdated(Context context)
    • isPollen

      public boolean isPollen()