Class WeatherLayer


  • public class WeatherLayer
    extends java.lang.Object
    • Field Detail

      • dateFormat

        public final java.text.SimpleDateFormat dateFormat
      • WarnMapGeo

        public static final float[] WarnMapGeo
      • WarnMapSize

        public static final int[] WarnMapSize
      • EuropeLargeGeo

        public static final float[] EuropeLargeGeo
      • EuropeLargeSize

        public static final int[] EuropeLargeSize
      • CACHE_FILENAME_SUFFIX

        public static final java.lang.String CACHE_FILENAME_SUFFIX
        See Also:
        Constant Field Values
      • CacheFileNames

        public static final java.lang.String[] CacheFileNames
      • LayerIDs

        public static final java.lang.String[] LayerIDs
    • Constructor Detail

      • WeatherLayer

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

        public WeatherLayer​(int i)
    • Method Detail

      • 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 java.lang.String getCacheFilename​(int layer)
      • getCacheFilename

        public java.lang.String getCacheFilename()
      • getFullChacheFilepath

        public java.lang.String getFullChacheFilepath​(Context context)
      • getFileLastModifiedTime

        public long getFileLastModifiedTime​(Context context)
      • setFileLastModifiedTime

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

        public static java.lang.String getLayerID​(int layer)
      • getLabel

        public static java.lang.String getLabel​(Context context,
                                                int layer)
      • getShortLabel

        public static java.lang.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)
      • isInArray

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

        public static java.util.ArrayList<WeatherLayer> getLayers​(Context context)
      • getLayerBitmap

        public Bitmap getLayerBitmap​(Context context)
      • getTransparentLayerBitmap

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

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

        public long getTargetTime()
      • getTimestampString

        public java.lang.String getTimestampString()
      • saveLayerBitmapToCache

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

        public boolean isPollenLayerCacheFileOutdated​(Context context)
      • isPollen

        public boolean isPollen()