Class DateAxis.DefaultTimeline

  • All Implemented Interfaces:
    java.io.Serializable, Timeline
    Enclosing class:
    DateAxis

    private static class DateAxis.DefaultTimeline
    extends java.lang.Object
    implements Timeline, java.io.Serializable
    A timeline that includes all milliseconds (as defined by java.util.Date) in the real time line.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DefaultTimeline()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsDomainRange​(long from, long to)
      Returns true if the timeline includes the specified domain value range.
      boolean containsDomainRange​(java.util.Date from, java.util.Date to)
      Returns true if the timeline includes the specified domain value range.
      boolean containsDomainValue​(long millisecond)
      Returns true if the timeline includes the specified domain value.
      boolean containsDomainValue​(java.util.Date date)
      Returns true if the timeline includes the specified domain value.
      boolean equals​(java.lang.Object object)
      Tests an object for equality with this instance.
      long toMillisecond​(long value)
      Converts a timeline value into a millisecond (as encoded by java.util.Date).
      long toTimelineValue​(long millisecond)
      Converts a millisecond into a timeline value.
      long toTimelineValue​(java.util.Date date)
      Converts a date into a timeline value.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultTimeline

        private DefaultTimeline()
    • Method Detail

      • toTimelineValue

        public long toTimelineValue​(long millisecond)
        Converts a millisecond into a timeline value.
        Specified by:
        toTimelineValue in interface Timeline
        Parameters:
        millisecond - the millisecond.
        Returns:
        The timeline value.
      • toTimelineValue

        public long toTimelineValue​(java.util.Date date)
        Converts a date into a timeline value.
        Specified by:
        toTimelineValue in interface Timeline
        Parameters:
        date - the domain value.
        Returns:
        The timeline value.
      • toMillisecond

        public long toMillisecond​(long value)
        Converts a timeline value into a millisecond (as encoded by java.util.Date).
        Specified by:
        toMillisecond in interface Timeline
        Parameters:
        value - the value.
        Returns:
        The millisecond.
      • containsDomainValue

        public boolean containsDomainValue​(long millisecond)
        Returns true if the timeline includes the specified domain value.
        Specified by:
        containsDomainValue in interface Timeline
        Parameters:
        millisecond - the millisecond.
        Returns:
        true.
      • containsDomainValue

        public boolean containsDomainValue​(java.util.Date date)
        Returns true if the timeline includes the specified domain value.
        Specified by:
        containsDomainValue in interface Timeline
        Parameters:
        date - the date.
        Returns:
        true.
      • containsDomainRange

        public boolean containsDomainRange​(long from,
                                           long to)
        Returns true if the timeline includes the specified domain value range.
        Specified by:
        containsDomainRange in interface Timeline
        Parameters:
        from - the start value.
        to - the end value.
        Returns:
        true.
      • containsDomainRange

        public boolean containsDomainRange​(java.util.Date from,
                                           java.util.Date to)
        Returns true if the timeline includes the specified domain value range.
        Specified by:
        containsDomainRange in interface Timeline
        Parameters:
        from - the start date.
        to - the end date.
        Returns:
        true.
      • equals

        public boolean equals​(java.lang.Object object)
        Tests an object for equality with this instance.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - the object.
        Returns:
        A boolean.