Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » axis » [javadoc | source]
org.jfree.chart.axis
protected class: SegmentedTimeline.SegmentRange [javadoc | source]
java.lang.Object
   org.jfree.chart.axis.SegmentedTimeline$Segment
      org.jfree.chart.axis.SegmentedTimeline$SegmentRange

All Implemented Interfaces:
    Cloneable, Serializable, Comparable

Direct Known Subclasses:
    BaseTimelineSegmentRange

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.
Fields inherited from org.jfree.chart.axis.SegmentedTimeline$Segment:
segmentNumber,  segmentStart,  segmentEnd,  millisecond
Constructor:
 public SegmentRange(long fromMillisecond,
    long toMillisecond) 
Method from org.jfree.chart.axis.SegmentedTimeline$SegmentRange Summary:
getSegmentCount,   inExcludeSegments,   inIncludeSegments,   inc,   intersect
Methods from org.jfree.chart.axis.SegmentedTimeline$Segment:
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
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.axis.SegmentedTimeline$SegmentRange Detail:
 public long getSegmentCount() 
    Returns the number of segments contained in this range.
 public boolean inExcludeSegments() 
    Returns true if we are an excluded segment.
 public boolean inIncludeSegments() 
    Returns true if all Segments of this SegmentRenge are an included segment and are not an exception.
 public  void inc(long n) 
    Not implemented for SegmentRange. Always throws IllegalArgumentException.
 public SegmentedTimeline.Segment intersect(long from,
    long to) 
    Returns a segment that is the intersection of this segment and the interval.