1 package prefuse.util.ui; 2 3 import javax.swing.BoundedRangeModel; 4 5 /** 6 * BoundedRangeModel that additionally supports a mapping between the integer 7 * range used by interface components and a richer range of values, such 8 * as numbers or arbitrary objects. 9 * 10 * @author <a HREF="http://jheer.org">jeffrey heer</a> 11 * @see javax.swing.BoundedRangeModel 12 */ 13 public interface ValuedRangeModel extends BoundedRangeModel { 14 15 /** 16 * Get the minimum value backing the range model. This is 17 * the absolute minimum value possible for the range span. 18 * @return the minimum value 19 */ 20 public Object getMinValue(); 21 22 /** 23 * Get the maximum value backing the range model. This is 24 * the absolute maximum value possible for the range span. 25 * @return the maximum value 26 */ 27 public Object getMaxValue(); 28 29 /** 30 * Get the value at the low point of the range span. 31 * @return the lowest value of the current range 32 */ 33 public Object getLowValue(); 34 35 /** 36 * Get the value at the high point of the range span. 37 * @return the highest value of the current range 38 */ 39 public Object getHighValue(); 40 41 } // end of interface ValuedRangeModel 42