Package org.jfree.chart.axis
Class DateAxis.DefaultTimeline
java.lang.Object
org.jfree.chart.axis.DateAxis.DefaultTimeline
- All Implemented Interfaces:
Serializable,Timeline
- Enclosing class:
DateAxis
A timeline that includes all milliseconds (as defined by
java.util.Date) in the real time line.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsDomainRange(long from, long to) Returnstrueif the timeline includes the specified domain value range.booleancontainsDomainRange(Date from, Date to) Returnstrueif the timeline includes the specified domain value range.booleancontainsDomainValue(long millisecond) Returnstrueif the timeline includes the specified domain value.booleancontainsDomainValue(Date date) Returnstrueif the timeline includes the specified domain value.booleanTests 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(Date date) Converts a date into a timeline value.
-
Constructor Details
-
DefaultTimeline
private DefaultTimeline()
-
-
Method Details
-
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
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
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
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
Tests an object for equality with this instance.
-