Package org.jfree.chart.axis
Class DateAxis.DefaultTimeline
- java.lang.Object
-
- org.jfree.chart.axis.DateAxis.DefaultTimeline
-
-
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)
Returnstrue
if the timeline includes the specified domain value range.boolean
containsDomainRange(java.util.Date from, java.util.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(java.util.Date date)
Returnstrue
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 byjava.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.
-
-
-
Method Detail
-
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
public long toTimelineValue(java.util.Date date)
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
public boolean containsDomainValue(java.util.Date date)
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
public boolean containsDomainRange(java.util.Date from, java.util.Date to)
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
public boolean equals(java.lang.Object object)
Tests an object for equality with this instance.- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- the object.- Returns:
- A boolean.
-
-