Logo Search packages:      
Sourcecode: libjfreechart-java version File versions  Download package

int org::jfree::chart::axis::SegmentedTimeline::Segment::compareTo ( Object  object  )  [inline, inherited]

Will compare this Segment with another Segment (from Comparable interface).

Parameters:
object The other Segment to compare with
Returns:
-1: this < object, 0: this.equal(object) and +1: this > object

Definition at line 1482 of file SegmentedTimeline.java.

References org::jfree::chart::axis::SegmentedTimeline::Segment::after(), and org::jfree::chart::axis::SegmentedTimeline::Segment::before().

                                            {
            Segment other = (Segment) object;
            if (this.before(other)) {
                return -1;
            }
            else if (this.after(other)) {
                return +1;
            }
            else {
                return 0;
            }
        }


Generated by  Doxygen 1.6.0   Back to index