protected class

SegmentedTimeline.SegmentRange

extends SegmentedTimeline.Segment
java.lang.Object
   ↳ org.jfree.chart.axis.SegmentedTimeline.Segment
     ↳ org.jfree.chart.axis.SegmentedTimeline.SegmentRange
Known Direct Subclasses

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class org.jfree.chart.axis.SegmentedTimeline.Segment
Public Constructors
SegmentedTimeline.SegmentRange(long fromMillisecond, long toMillisecond)
Creates a SegmentRange between a start and end domain values.
Public Methods
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.
[Expand]
Inherited Methods
From class org.jfree.chart.axis.SegmentedTimeline.Segment
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public SegmentedTimeline.SegmentRange (long fromMillisecond, long toMillisecond)

Creates a SegmentRange between a start and end domain values.

Parameters
fromMillisecond start of the range
toMillisecond end of the range

Public Methods

public long getSegmentCount ()

Returns the number of segments contained in this range.

Returns
  • The segment count.

public boolean inExcludeSegments ()

Returns true if we are an excluded segment.

Returns
  • true or false.

public boolean inIncludeSegments ()

Returns true if all Segments of this SegmentRenge are an included segment and are not an exception.

Returns
  • true or false.

public void inc (long n)

Not implemented for SegmentRange. Always throws IllegalArgumentException.

Parameters
n Number of segments to increment.

public SegmentedTimeline.Segment intersect (long from, long to)

Returns a segment that is the intersection of this segment and the interval.

Parameters
from the start of the interval.
to the end of the interval.
Returns
  • The intersection.