Documentation of 'sgtplot.util.GeoDateArray' Java class
GeoDateArray
sgtplot.util

Class GeoDateArray

  • All Implemented Interfaces:
    java.io.Serializable


    public class GeoDateArray
    extends java.lang.Object
    implements java.io.Serializable
    GeoDateArray creates an efficient storage of GeoDate objects. This is accomplished by using an internal storage of long for the number of milliseconds since January 1, 1970, 00:00:00 GMT.
    Since:
    sgtplot 3.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      GeoDateArray(java.util.Date[] dates)
      Construct a new GeoDateArray from an array of Dates.
      GeoDateArray(GeoDate[] dates)
      Construct a new GeoDateArray from an array of GeoDates.
      GeoDateArray(long[] dates)
      Construct a new GeoDateArray from an array of longs that represent the number of milliseconds since January 1, 1970, 00:00:00 GMT.
    • Constructor Detail

      • GeoDateArray

        public GeoDateArray(GeoDate[] dates)
        Construct a new GeoDateArray from an array of GeoDates.
        Parameters:
        dates - an array of GeoDates.
      • GeoDateArray

        public GeoDateArray(java.util.Date[] dates)
        Construct a new GeoDateArray from an array of Dates.
        Parameters:
        dates - an array of Dates.
      • GeoDateArray

        public GeoDateArray(long[] dates)
        Construct a new GeoDateArray from an array of longs that represent the number of milliseconds since January 1, 1970, 00:00:00 GMT. Missing value for date is Long.MAX_VALUE.
        Parameters:
        dates - an array of longs.
    • Method Detail

      • getTime

        public long[] getTime()
      • getTime

        public long getTime(int index)
      • getGeoDate

        public GeoDate getGeoDate(int index)
      • getGeoDate

        public GeoDate[] getGeoDate()
      • getOffset

        public double getOffset(int index,
                                GeoDate ref)
        Time offset for reference GeoDate.
        Parameters:
        ref - reference GeoDate
        Returns:
        offset in days
      • getOffset

        public double[] getOffset(GeoDate ref)
        Time offset for reference GeoDate.
        Parameters:
        ref - reference GeoDate
        Returns:
        offset in days
      • getOffsetTime

        public long getOffsetTime(int index,
                                  GeoDate ref)
        Time offset for reference GeoDate.
        Parameters:
        ref - reference GeoDate
        Returns:
        offset in milliseconds
      • getOffsetTime

        public long[] getOffsetTime(GeoDate ref)
        Time offset for reference GeoDate.
        Parameters:
        ref - reference GeoDate
        Returns:
        offset in milliseconds
      • addOffset

        public void addOffset(long offset)
        Add offset to all dates.
      • addOffset

        public void addOffset(int index,
                              long offset)
        Add offset to single date.
      • getLength

        public int getLength()
        Get length of array.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.