|
||||||||||
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.NumberRangeModel
public class NumberRangeModel
Range model for numerical data. Designed to support range-based dynamic queries.
Field Summary | |
---|---|
protected java.lang.Number |
m_hi
|
protected java.lang.Number |
m_lo
|
protected java.lang.Number |
m_max
|
protected java.lang.Number |
m_min
|
protected java.lang.Class |
m_type
|
Fields inherited from class javax.swing.DefaultBoundedRangeModel |
---|
changeEvent, listenerList |
Constructor Summary | |
---|---|
NumberRangeModel(double lo,
double hi,
double min,
double max)
Create a new NumberRangeModel for the given range. |
|
NumberRangeModel(float lo,
float hi,
float min,
float max)
Create a new NumberRangeModel for the given range. |
|
NumberRangeModel(int lo,
int hi,
int min,
int max)
Create a new NumberRangeModel for the given range. |
|
NumberRangeModel(long lo,
long hi,
long min,
long max)
Create a new NumberRangeModel for the given range. |
|
NumberRangeModel(java.lang.Number lo,
java.lang.Number hi,
java.lang.Number min,
java.lang.Number max)
Create a new NumberRangeModel for the given range. |
Method Summary | |
---|---|
java.lang.Object |
getHighValue()
Get the value at the high point of the range span. |
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. |
void |
setExtent(int extent)
|
void |
setHighValue(java.lang.Number n)
Set the highest selected range value. |
void |
setLowValue(java.lang.Number n)
Set the lowest selected range value. |
void |
setMaximum(int max)
Not supported, throws an exception. |
void |
setMaxValue(java.lang.Number n)
Set the maximum range value. |
void |
setMinimum(int min)
Not supported, throws an exception. |
void |
setMinValue(java.lang.Number n)
Set the minimum range value. |
protected void |
setRange(int val,
int ext,
int min,
int max)
Set the range settings in the pixel-space coordinates. |
void |
setRangeProperties(int val,
int extent,
int min,
int max,
boolean adj)
|
void |
setValue(int val)
|
void |
setValueRange(double lo,
double hi,
double min,
double max)
Set the range model's backing values. |
void |
setValueRange(int lo,
int hi,
int min,
int max)
Set the range model's backing values. |
void |
setValueRange(long lo,
long hi,
long min,
long max)
Set the range model's backing values. |
void |
setValueRange(java.lang.Number lo,
java.lang.Number hi,
java.lang.Number min,
java.lang.Number max)
Set the range model's backing values. |
protected void |
updateRange()
Update the range settings based on current values. |
protected java.lang.Object |
value(int val)
|
Methods inherited from class javax.swing.DefaultBoundedRangeModel |
---|
addChangeListener, fireStateChanged, getChangeListeners, getExtent, getListeners, getMaximum, getMinimum, getValue, getValueIsAdjusting, removeChangeListener, 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, setValueIsAdjusting |
Field Detail |
---|
protected java.lang.Class m_type
protected java.lang.Number m_min
protected java.lang.Number m_max
protected java.lang.Number m_lo
protected java.lang.Number m_hi
Constructor Detail |
---|
public NumberRangeModel(int lo, int hi, int min, int max)
lo
- the low value of the selected rangehi
- the high value of the selected rangemin
- the minimum value allowed for rangesmax
- the maximum value allowed for rangespublic NumberRangeModel(long lo, long hi, long min, long max)
lo
- the low value of the selected rangehi
- the high value of the selected rangemin
- the minimum value allowed for rangesmax
- the maximum value allowed for rangespublic NumberRangeModel(float lo, float hi, float min, float max)
lo
- the low value of the selected rangehi
- the high value of the selected rangemin
- the minimum value allowed for rangesmax
- the maximum value allowed for rangespublic NumberRangeModel(double lo, double hi, double min, double max)
lo
- the low value of the selected rangehi
- the high value of the selected rangemin
- the minimum value allowed for rangesmax
- the maximum value allowed for rangespublic NumberRangeModel(java.lang.Number lo, java.lang.Number hi, java.lang.Number min, java.lang.Number max)
lo
- the low value of the selected rangehi
- the high value of the selected rangemin
- the minimum value allowed for rangesmax
- the maximum value allowed for rangesMethod Detail |
---|
protected void updateRange()
protected void setRange(int val, int ext, int min, int max)
public void setRangeProperties(int val, int extent, int min, int max, boolean adj)
setRangeProperties
in interface javax.swing.BoundedRangeModel
setRangeProperties
in class javax.swing.DefaultBoundedRangeModel
BoundedRangeModel.setRangeProperties(int, int, int, int, boolean)
public void setValueRange(java.lang.Number lo, java.lang.Number hi, java.lang.Number min, java.lang.Number max)
lo
- the low value of the selected rangehi
- the high value of the selected rangemin
- the minimum value allowed for rangesmax
- the maximum value allowed for rangespublic void setValueRange(double lo, double hi, double min, double max)
lo
- the low value of the selected rangehi
- the high value of the selected rangemin
- the minimum value allowed for rangesmax
- the maximum value allowed for rangespublic void setValueRange(int lo, int hi, int min, int max)
lo
- the low value of the selected rangehi
- the high value of the selected rangemin
- the minimum value allowed for rangesmax
- the maximum value allowed for rangespublic void setValueRange(long lo, long hi, long min, long max)
lo
- the low value of the selected rangehi
- the high value of the selected rangemin
- the minimum value allowed for rangesmax
- the maximum value allowed for rangespublic java.lang.Object getMinValue()
ValuedRangeModel
getMinValue
in interface ValuedRangeModel
ValuedRangeModel.getMinValue()
public void setMinValue(java.lang.Number n)
n
- the minimum range value.public java.lang.Object getMaxValue()
ValuedRangeModel
getMaxValue
in interface ValuedRangeModel
ValuedRangeModel.getMaxValue()
public void setMaxValue(java.lang.Number n)
n
- the maximum range value.public java.lang.Object getLowValue()
ValuedRangeModel
getLowValue
in interface ValuedRangeModel
ValuedRangeModel.getLowValue()
public void setLowValue(java.lang.Number n)
n
- the low value of the selected range.public java.lang.Object getHighValue()
ValuedRangeModel
getHighValue
in interface ValuedRangeModel
ValuedRangeModel.getHighValue()
public void setHighValue(java.lang.Number n)
n
- the high value of the selected range.protected java.lang.Object value(int val)
public void setMinimum(int min)
setMinimum
in interface javax.swing.BoundedRangeModel
setMinimum
in class javax.swing.DefaultBoundedRangeModel
java.lang.UnsupportedOperationException
BoundedRangeModel.setMinimum(int)
public void setMaximum(int max)
setMaximum
in interface javax.swing.BoundedRangeModel
setMaximum
in class javax.swing.DefaultBoundedRangeModel
java.lang.UnsupportedOperationException
BoundedRangeModel.setMaximum(int)
public void setValue(int val)
setValue
in interface javax.swing.BoundedRangeModel
setValue
in class javax.swing.DefaultBoundedRangeModel
BoundedRangeModel.setValue(int)
public void setExtent(int extent)
setExtent
in interface javax.swing.BoundedRangeModel
setExtent
in class javax.swing.DefaultBoundedRangeModel
BoundedRangeModel.setExtent(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |