Class DateAxis.DefaultTimeline

java.lang.Object
org.jfree.chart.axis.DateAxis.DefaultTimeline
All Implemented Interfaces:
Serializable, Timeline
Enclosing class:
DateAxis

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

    • DefaultTimeline

      private DefaultTimeline()
  • Method Details

    • 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(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(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(Date from, 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(Object object)
      Tests an object for equality with this instance.
      Overrides:
      equals in class Object
      Parameters:
      object - the object.
      Returns:
      A boolean.