org.jfree.chart.axis
Class SegmentedTimeline.SegmentRange
- SegmentedTimeline
- Cloneable, Comparable, Serializable
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.
SegmentRange(long fromMillisecond, long toMillisecond)- Creates a SegmentRange between a start and end domain values.
|
long | getSegmentCount()- Returns the number of segments contained in this range.
|
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.
|
void | inc(long n)- Not implemented for SegmentRange.
|
SegmentedTimeline.Segment | intersect(long from, long to)- Returns a segment that is the intersection of this segment and the
interval.
|
after, before, calculateSegmentNumber, compareTo, contained, contains, contains, contains, copy, dec, dec, equals, getDate, getMillisecond, getSegmentCount, getSegmentEnd, getSegmentNumber, getSegmentStart, inExceptionSegments, inExcludeSegments, inIncludeSegments, inc, inc, intersect, moveIndexToEnd, moveIndexToStart |
SegmentRange
public SegmentRange(long fromMillisecond,
long toMillisecond) Creates a SegmentRange between a start and end domain values.
fromMillisecond - start of the rangetoMillisecond - end of the range
inc
public void inc(long n)
Not implemented for SegmentRange. Always throws
IllegalArgumentException.
- inc in interface SegmentedTimeline.Segment
n - Number of segments to increment.