|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jidesoft.range.AbstractRange<T>
com.jidesoft.range.CategoryRange<T>
public class CategoryRange<T>
Note that this class is iterable so you can use it in an advanced for.. loop
| Field Summary |
|---|
| Fields inherited from interface com.jidesoft.range.Range |
|---|
PROPERTY_MAX, PROPERTY_MIN |
| Constructor Summary | |
|---|---|
CategoryRange()
|
|
CategoryRange(java.util.Set<T> values)
Create a CategoryRange from a set of values. |
|
CategoryRange(T... values)
Create a CategoryRange from the supplied values |
|
| Method Summary | |
|---|---|
CategoryRange<T> |
add(Category<T> c)
This method fires a propety change event, but to avoid cloning a list for efficiency, the old value is always null |
void |
adjust(T lower,
T upper)
Adjusts the range. |
boolean |
contains(Category<T> value)
Determines whether the category range contains the specified category value |
boolean |
contains(T x)
Determines whether the category range contains the supplied possible value |
java.util.List<Category<T>> |
getCategoryValues()
|
java.util.List<T> |
getPossibleValues()
|
java.util.Iterator<Category<T>> |
iterator()
|
T |
lower()
|
double |
maximum()
This may be the numeric representation of upper() or it may be rounded up. |
double |
minimum()
This may be the numeric representation of lower() or it may be rounded down. |
int |
position(T value)
|
double |
size()
Compute the size of the range |
T |
upper()
|
| Methods inherited from class com.jidesoft.range.AbstractRange |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CategoryRange()
public CategoryRange(T... values)
values - the values.public CategoryRange(java.util.Set<T> values)
upper() and a lower() value.
values - - the set of possible values| Method Detail |
|---|
public java.util.List<T> getPossibleValues()
public CategoryRange<T> add(Category<T> c)
c - the category to add
public T lower()
lower in interface Range<T>public T upper()
upper in interface Range<T>
public void adjust(T lower,
T upper)
Range
adjust in interface Range<T>lower - the new smallest value of the rangeupper - the new largest value of the rangepublic double maximum()
Range
maximum in interface Range<T>Range.maximum()public double minimum()
Range
minimum in interface Range<T>Range.minimum()public double size()
Range
size in interface Range<T>Range.size()public int position(T value)
public boolean contains(T x)
contains in interface Range<T>public boolean contains(Category<T> value)
value - the category value.
public java.util.Iterator<Category<T>> iterator()
iterator in interface java.lang.Iterable<Category<T>>public java.util.List<Category<T>> getCategoryValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||