|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.axis.SegmentedTimeline.Segment
org.jfree.chart.axis.SegmentedTimeline.SegmentRange
Private internal class to represent a range of segments. This class is mainly used to store in one object a range of exception segments. This optimizes certain timelines that use a small segment size (like an intraday timeline) allowing them to express a day exception as one SegmentRange instead of multi Segments.
| Field Summary |
| Fields inherited from class org.jfree.chart.axis.SegmentedTimeline.Segment |
millisecond, segmentEnd, segmentNumber, segmentStart |
| Constructor Summary | |
SegmentedTimeline.SegmentRange(long fromMillisecond,
long toMillisecond)
Creates a SegmentRange between a start and end domain values. |
|
| Method Summary | |
long |
getSegmentCount()
Returns the number of segments contained in this range. |
void |
inc(long n)
Not implemented for SegmentRange. |
boolean |
inExcludeSegments()
Returns true if we are an excluded segment. |
boolean |
inIncludeSegments()
Returns true if all Segments of this SegmentRenge are an included segment and are not an exception. |
SegmentedTimeline.Segment |
intersect(long from,
long to)
Returns a segment that is the intersection of this segment and the interval. |
| Methods inherited from class org.jfree.chart.axis.SegmentedTimeline.Segment |
after, before, calculateSegmentNumber, compareTo, contained, contains, contains, contains, copy, dec, dec, equals, getDate, getIndex, getMillisecond, getSegmentEnd, getSegmentNumber, getSegmentStart, inc, inExceptionSegments, moveIndexToEnd, moveIndexToStart |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SegmentedTimeline.SegmentRange(long fromMillisecond,
long toMillisecond)
fromMillisecond - start of the rangetoMillisecond - end of the range| Method Detail |
public long getSegmentCount()
getSegmentCount in class SegmentedTimeline.Segment
public SegmentedTimeline.Segment intersect(long from,
long to)
intersect in class SegmentedTimeline.Segmentfrom - the start of the interval.to - the end of the interval.
public boolean inIncludeSegments()
inIncludeSegments in class SegmentedTimeline.Segmenttrue or false.public boolean inExcludeSegments()
inExcludeSegments in class SegmentedTimeline.Segmenttrue or false.public void inc(long n)
inc in class SegmentedTimeline.Segmentn - Number of segments to increment.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||