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 TypeMethodDescriptionboolean
containsDomainRange
(long from, long to) Returnstrue
if the timeline includes the specified domain value range.boolean
containsDomainRange
(Date from, Date to) Returnstrue
if the timeline includes the specified domain value range.boolean
containsDomainValue
(long millisecond) Returnstrue
if the timeline includes the specified domain value.boolean
containsDomainValue
(Date date) Returnstrue
if the timeline includes the specified domain value.boolean
Tests an object for equality with this instance.long
toMillisecond
(long value) Converts a timeline value into a millisecond (as encoded byjava.util.Date
).long
toTimelineValue
(long millisecond) Converts a millisecond into a timeline value.long
toTimelineValue
(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:
toTimelineValue
in interfaceTimeline
- Parameters:
millisecond
- the millisecond.- Returns:
- The timeline value.
-
toTimelineValue
Converts a date into a timeline value.- Specified by:
toTimelineValue
in 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:
toMillisecond
in interfaceTimeline
- Parameters:
value
- the value.- Returns:
- The millisecond.
-
containsDomainValue
public boolean containsDomainValue(long millisecond) Returnstrue
if the timeline includes the specified domain value.- Specified by:
containsDomainValue
in interfaceTimeline
- Parameters:
millisecond
- the millisecond.- Returns:
true
.
-
containsDomainValue
Returnstrue
if the timeline includes the specified domain value.- Specified by:
containsDomainValue
in interfaceTimeline
- Parameters:
date
- the date.- Returns:
true
.
-
containsDomainRange
public boolean containsDomainRange(long from, long to) Returnstrue
if the timeline includes the specified domain value range.- Specified by:
containsDomainRange
in interfaceTimeline
- Parameters:
from
- the start value.to
- the end value.- Returns:
true
.
-
containsDomainRange
Returnstrue
if the timeline includes the specified domain value range.- Specified by:
containsDomainRange
in interfaceTimeline
- Parameters:
from
- the start date.to
- the end date.- Returns:
true
.
-
equals
Tests an object for equality with this instance.
-