| java.lang.Object | |
| ↳ | org.jfree.chart.axis.SegmentedTimeline.Segment | 
|  Known Direct Subclasses | 
|  Known Indirect Subclasses | 
Internal class to represent a valid segment for this timeline. A segment is valid on a timeline if it is part of its included, excluded or exception segments.
Each segment will know its segment number, segmentStart, segmentEnd and index inside the segment.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| millisecond | A reference point within the segment. | ||||||||||
| segmentEnd | The segment end. | ||||||||||
| segmentNumber | The segment number. | ||||||||||
| segmentStart | The segment start. | ||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Protected constructor only used by sub-classes. | |||||||||||
| Creates a segment for a given point in time. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns  trueif this segment is wholly after another
 segment. | |||||||||||
| Returns  trueif this segment is wholly before another
 segment. | |||||||||||
| Calculates the segment number for a given millisecond. | |||||||||||
| Will compare this Segment with another Segment (from Comparable
 interface). | |||||||||||
| Returns  trueif this segment is contained in an
 interval. | |||||||||||
| Returns true if a particular millisecond is contained in this
 segment. | |||||||||||
| Returns  trueif a segment is contained in this segment. | |||||||||||
| Returns  trueif an interval is contained in this
 segment. | |||||||||||
| Returns a copy of ourselves or  nullif there was an
 exception during cloning. | |||||||||||
| Decrements the internal attributes of this segment by a number of
 segments. | |||||||||||
| Decrements the internal attributes of this segment by one segment. | |||||||||||
| Tests an object (usually another  Segment) for equality
 with this segment. | |||||||||||
| Returns a  Datethat represents the reference point
 for this segment. | |||||||||||
| Returns the millisecond used to reference this segment (always
 between the segmentStart and segmentEnd). | |||||||||||
| Returns always one (the number of segments contained in this
 segment). | |||||||||||
| Gets the end of this segment in ms. | |||||||||||
| Returns the segment number of this segment. | |||||||||||
| Gets the start of this segment in ms. | |||||||||||
| Returns true if we are an exception segment. | |||||||||||
| Returns true if we are an excluded segment. | |||||||||||
| Returns true if we are an included segment and we are not an
 exception. | |||||||||||
| Increments the internal attributes of this segment by a number of
 segments. | |||||||||||
| Increments the internal attributes of this segment by one segment. | |||||||||||
| Returns a segment that is the intersection of this segment and the
 interval. | |||||||||||
| Moves the index of this segment to the end of the segment. | |||||||||||
| Moves the index of this segment to the beginning if the segment. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
|  From interface
  java.lang.Comparable | |||||||||||
A reference point within the segment.
The segment end.
The segment number.
The segment start.
Protected constructor only used by sub-classes.
Creates a segment for a given point in time.
| millisecond | the millisecond (as encoded by java.util.Date). | 
|---|
Returns true if this segment is wholly after another
 segment.
| other | the other segment. | 
|---|
Returns true if this segment is wholly before another
 segment.
| other | the other segment. | 
|---|
Calculates the segment number for a given millisecond.
| millis | the millisecond (as encoded by java.util.Date). | 
|---|
Will compare this Segment with another Segment (from Comparable interface).
| object | The other Segment to compare with | 
|---|
Returns true if this segment is contained in an
 interval.
| from | the start of the interval. | 
|---|---|
| to | the end of the interval. | 
true if this segment is contained in the
         interval.
Returns true if a particular millisecond is contained in this segment.
| millis | the millisecond to verify. | 
|---|
true if the millisecond is contained in the
         segment.
Returns true if a segment is contained in this segment.
| segment | the segment to test for inclusion | 
|---|
true if the segment is contained in this
         segment.
Returns true if an interval is contained in this
 segment.
| from | the start of the interval. | 
|---|---|
| to | the end of the interval. | 
true if the interval is contained in the
         segment.
Returns a copy of ourselves or null if there was an
 exception during cloning.
Decrements the internal attributes of this segment by a number of segments.
| n | Number of segments to decrement. | 
|---|
Decrements the internal attributes of this segment by one segment. The exact time decremented is segmentSize.
Tests an object (usually another Segment) for equality
 with this segment.
| object | The other segment to compare with us | 
|---|
true if we are the same segment
Returns a Date that represents the reference point
 for this segment.
Returns the millisecond used to reference this segment (always between the segmentStart and segmentEnd).
Returns always one (the number of segments contained in this segment).
Gets the end of this segment in ms.
Returns the segment number of this segment. Segments start at 0.
Gets the start of this segment in ms.
Returns true if we are an exception segment. This is implemented via a binary search on the exceptionSegments sorted list. If the segment is not listed as an exception in our list and we have a baseTimeline, a check is performed to see if the segment is inside an excluded segment from our base. If so, it is also considered an exception.
true if we are an exception segment.
Returns true if we are an excluded segment.
true or false.
Returns true if we are an included segment and we are not an exception.
true or false.
Increments the internal attributes of this segment by a number of segments.
| n | Number of segments to increment. | 
|---|
Increments the internal attributes of this segment by one segment. The exact time incremented is segmentSize.
Returns a segment that is the intersection of this segment and the interval.
| from | the start of the interval. | 
|---|---|
| to | the end of the interval. | 
Moves the index of this segment to the end of the segment.
Moves the index of this segment to the beginning if the segment.