|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.range.AggregatedRange
public class AggregatedRange
A range class formed from a collection of Positionable instances. The class can be used to derive the minimum and maximum values for the collection of Positionables, as well as providing other useful information such as the sum of all the positive values and the sum of all the negative values. (These are used in the preparation of a stacked bar chart.)
Field Summary |
---|
Fields inherited from interface com.jidesoft.range.Range |
---|
PROPERTY_MAX, PROPERTY_MIN |
Constructor Summary | |
---|---|
AggregatedRange()
Create an empty range |
|
AggregatedRange(Collection<Positionable> positions)
Create a range from the supplied Positionable instances |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
Not supported in this class |
void |
adjust(Double lower,
Double upper)
Not supported in this class |
boolean |
contains(Double item)
Returns a boolean to indicate whether the supplied Double lies within this range |
int |
getCount()
The number of points being combined in this range |
int |
getNegativeCount()
|
double |
getNegativeSum()
Computes the sum of all the negative Positionables |
int |
getPositiveCount()
|
double |
getPositiveSum()
Computes the sum of all the positive Positionables |
Double |
lower()
The lower value of the range; for this class it is the same as minimum() |
double |
maximum()
Returns the maximum (numeric) value in the range |
double |
minimum()
Returns the minimum (numeric) value in the range |
void |
removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
Not supported in this class |
double |
size()
The size of the range, computed as the difference between the maximum and the minimum |
Double |
upper()
The upper value of the range; for this class it is the same as maximum() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregatedRange()
public AggregatedRange(Collection<Positionable> positions)
positions
- the instances of the Positionable interfaceMethod Detail |
---|
public Double lower()
lower
in interface Range<Double>
public Double upper()
upper
in interface Range<Double>
public int getCount()
public double getPositiveSum()
public int getPositiveCount()
public double getNegativeSum()
public int getNegativeCount()
public double minimum()
minimum
in interface Range<Double>
public double maximum()
maximum
in interface Range<Double>
public double size()
size
in interface Range<Double>
public boolean contains(Double item)
contains
in interface Range<Double>
public void adjust(Double lower, Double upper)
adjust
in interface Range<Double>
lower
- the new smallest value of the rangeupper
- the new largest value of the rangepublic void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
addPropertyChangeListener
in interface Range<Double>
propertyChangeListener
- the new property change listenerpublic void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
removePropertyChangeListener
in interface Range<Double>
propertyChangeListener
- the PropertyChangeListener
to remove
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |