public class AggregatedRange extends java.lang.Object implements Range<java.lang.Double>
PROPERTY_MAX, PROPERTY_MIN| Constructor and Description |
|---|
AggregatedRange()
Create an empty range
|
AggregatedRange(java.util.Collection<Positionable> positions)
Create a range from the supplied Positionable instances
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
Not supported in this class
|
void |
adjust(java.lang.Double lower,
java.lang.Double upper)
Not supported in this class
|
boolean |
contains(java.lang.Double item)
Returns a boolean to indicate whether the supplied Double lies within this range
|
boolean |
equals(java.lang.Object o) |
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
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners()
Gets the registered property change listeners.
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners(java.lang.String propertyName)
Gets the registered property change listeners for a property.
|
int |
hashCode() |
java.lang.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(java.beans.PropertyChangeListener propertyChangeListener)
Not supported in this class
|
double |
size()
The size of the range, computed as the difference between the maximum and the minimum
|
java.lang.Double |
upper()
The upper value of the range; for this class it is the same as maximum()
|
public AggregatedRange()
public AggregatedRange(java.util.Collection<Positionable> positions)
positions - the instances of the Positionable interfacepublic java.lang.Double lower()
public java.lang.Double upper()
public int getCount()
public double getPositiveSum()
public int getPositiveCount()
public double getNegativeSum()
public int getNegativeCount()
public double minimum()
public double maximum()
public double size()
public boolean contains(java.lang.Double item)
public void adjust(java.lang.Double lower,
java.lang.Double upper)
public void addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
addPropertyChangeListener in interface Range<java.lang.Double>propertyChangeListener - the new property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
removePropertyChangeListener in interface Range<java.lang.Double>propertyChangeListener - the PropertyChangeListener to removepublic java.beans.PropertyChangeListener[] getPropertyChangeListeners()
RangegetPropertyChangeListeners in interface Range<java.lang.Double>public java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String propertyName)
RangegetPropertyChangeListeners in interface Range<java.lang.Double>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object