Package org.jfree.chart.axis
Class DateAxis.DefaultTimeline
- java.lang.Object
-
- org.jfree.chart.axis.DateAxis.DefaultTimeline
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultTimeline()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsDomainRange(long from, long to)Returnstrueif the timeline includes the specified domain value range.booleancontainsDomainRange(java.util.Date from, java.util.Date to)Returnstrueif the timeline includes the specified domain value range.booleancontainsDomainValue(long millisecond)Returnstrueif the timeline includes the specified domain value.booleancontainsDomainValue(java.util.Date date)Returnstrueif the timeline includes the specified domain value.booleanequals(java.lang.Object object)Tests an object for equality with this instance.longtoMillisecond(long value)Converts a timeline value into a millisecond (as encoded byjava.util.Date).longtoTimelineValue(long millisecond)Converts a millisecond into a timeline value.longtoTimelineValue(java.util.Date date)Converts a date into a timeline value.
-
-
-
Method Detail
-
toTimelineValue
public long toTimelineValue(long millisecond)
Converts a millisecond into a timeline value.- Specified by:
toTimelineValuein interfaceTimeline- 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:
toTimelineValuein interfaceTimeline- Parameters:
date- the domain value.- Returns:
- The timeline value.
-
toMillisecond
public long toMillisecond(long value)
Converts a timeline value into a millisecond (as encoded byjava.util.Date).- Specified by:
toMillisecondin interfaceTimeline- Parameters:
value- the value.- Returns:
- The millisecond.
-
containsDomainValue
public boolean containsDomainValue(long millisecond)
Returnstrueif the timeline includes the specified domain value.- Specified by:
containsDomainValuein interfaceTimeline- Parameters:
millisecond- the millisecond.- Returns:
true.
-
containsDomainValue
public boolean containsDomainValue(java.util.Date date)
Returnstrueif the timeline includes the specified domain value.- Specified by:
containsDomainValuein interfaceTimeline- Parameters:
date- the date.- Returns:
true.
-
containsDomainRange
public boolean containsDomainRange(long from, long to)Returnstrueif the timeline includes the specified domain value range.- Specified by:
containsDomainRangein interfaceTimeline- Parameters:
from- the start value.to- the end value.- Returns:
true.
-
containsDomainRange
public boolean containsDomainRange(java.util.Date from, java.util.Date to)Returnstrueif the timeline includes the specified domain value range.- Specified by:
containsDomainRangein interfaceTimeline- 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:
equalsin classjava.lang.Object- Parameters:
object- the object.- Returns:
- A boolean.
-
-