JIDE 3.5.15

com.jidesoft.interval
Interface Interval

All Known Subinterfaces:
BoundedInterval, MutableBoundedInterval, MutableInterval
All Known Implementing Classes:
AbstractMutableInterval, ClosedInterval, OpenInterval, SimpleBoundedInterval

public interface Interval

This interface represents the current state of an interval.


Method Summary
 void addIntervalListener(IntervalListener listener)
           
 void addWeakIntervalListener(IntervalListener listener)
           
 boolean contains(double value)
          Tests if this interval contains the specified value?
 double getEnd()
           
 double getExtent()
           
 double getStart()
           
 boolean isDegenerate()
          Tests whether the starting and ending values are the same
 boolean overlaps(Interval interval)
          Tests if this interval overlaps the specified interval.
 void removeIntervalListener(IntervalListener listener)
           
 void removeIntervalListeners()
           
 

Method Detail

getStart

double getStart()

getEnd

double getEnd()

getExtent

double getExtent()

contains

boolean contains(double value)
Tests if this interval contains the specified value?

Parameters:
value - the value to test
Returns:
true if the interval contains the value, false otherwise

overlaps

boolean overlaps(Interval interval)
Tests if this interval overlaps the specified interval.

Parameters:
interval - the interval to test
Returns:
true if this interval overlaps the specified interval, false otherwise

isDegenerate

boolean isDegenerate()
Tests whether the starting and ending values are the same

Returns:
true if start and end values are identical, false otherwise

addIntervalListener

void addIntervalListener(IntervalListener listener)

addWeakIntervalListener

void addWeakIntervalListener(IntervalListener listener)

removeIntervalListener

void removeIntervalListener(IntervalListener listener)

removeIntervalListeners

void removeIntervalListeners()

JIDE 3.5.15