|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.DefaultBoundedRangeModel prefuse.data.query.ObjectRangeModel
public class ObjectRangeModel
Supports an ordered range of arbitrary objects. Designed to support range-based dynamic queries over ordered, but not necessarily numerical, data.
Field Summary |
---|
Fields inherited from class javax.swing.DefaultBoundedRangeModel |
---|
changeEvent, listenerList |
Constructor Summary | |
---|---|
ObjectRangeModel(java.lang.Object[] objects)
Create a new ObjectRangeModel with the given objects. |
Method Summary | |
---|---|
java.lang.Object |
getHighValue()
Get the value at the high point of the range span. |
int |
getIndex(java.lang.Object o)
Return the index for a given Object, indicating its order in the range. |
java.lang.Object |
getLowValue()
Get the value at the low point of the range span. |
java.lang.Object |
getMaxValue()
Get the maximum value backing the range model. |
java.lang.Object |
getMinValue()
Get the minimum value backing the range model. |
java.lang.Object |
getObject(int i)
Return the Object at the given index. |
void |
setValueRange(java.lang.Object[] objects)
Sets the range model to the given objects. |
Methods inherited from class javax.swing.DefaultBoundedRangeModel |
---|
addChangeListener, fireStateChanged, getChangeListeners, getExtent, getListeners, getMaximum, getMinimum, getValue, getValueIsAdjusting, removeChangeListener, setExtent, setMaximum, setMinimum, setRangeProperties, setValue, setValueIsAdjusting, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.BoundedRangeModel |
---|
addChangeListener, getExtent, getMaximum, getMinimum, getValue, getValueIsAdjusting, removeChangeListener, setExtent, setMaximum, setMinimum, setRangeProperties, setValue, setValueIsAdjusting |
Constructor Detail |
---|
public ObjectRangeModel(java.lang.Object[] objects)
objects
- the members of this ObjectRangeModel, sorted in ascending
order.Method Detail |
---|
public void setValueRange(java.lang.Object[] objects)
objects
- the members of this ObjectRangeModel, sorted in ascending
order.public java.lang.Object getObject(int i)
i
- the index of the Object
public int getIndex(java.lang.Object o)
o
- the Object to lookup.
public java.lang.Object getMinValue()
ValuedRangeModel
getMinValue
in interface ValuedRangeModel
ValuedRangeModel.getMinValue()
public java.lang.Object getMaxValue()
ValuedRangeModel
getMaxValue
in interface ValuedRangeModel
ValuedRangeModel.getMaxValue()
public java.lang.Object getLowValue()
ValuedRangeModel
getLowValue
in interface ValuedRangeModel
ValuedRangeModel.getLowValue()
public java.lang.Object getHighValue()
ValuedRangeModel
getHighValue
in interface ValuedRangeModel
ValuedRangeModel.getHighValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |