| Method from org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset Detail: |
public void add(List list,
Comparable rowKey,
Comparable columnKey) {
BoxAndWhiskerItem item = BoxAndWhiskerCalculator
.calculateBoxAndWhiskerStatistics(list);
add(item, rowKey, columnKey);
}
Adds a list of values relating to one box-and-whisker entity to the
table. The various median values are calculated. |
public void add(BoxAndWhiskerItem item,
Comparable rowKey,
Comparable columnKey) {
this.data.addObject(item, rowKey, columnKey);
// update cached min and max values
int r = this.data.getRowIndex(rowKey);
int c = this.data.getColumnIndex(columnKey);
if ((this.maximumRangeValueRow == r && this.maximumRangeValueColumn
== c) || (this.minimumRangeValueRow == r
&& this.minimumRangeValueColumn == c)) {
updateBounds();
}
else {
double minval = Double.NaN;
if (item.getMinOutlier() != null) {
minval = item.getMinOutlier().doubleValue();
}
double maxval = Double.NaN;
if (item.getMaxOutlier() != null) {
maxval = item.getMaxOutlier().doubleValue();
}
if (Double.isNaN(this.maximumRangeValue)) {
this.maximumRangeValue = maxval;
this.maximumRangeValueRow = r;
this.maximumRangeValueColumn = c;
}
else if (maxval > this.maximumRangeValue) {
this.maximumRangeValue = maxval;
this.maximumRangeValueRow = r;
this.maximumRangeValueColumn = c;
}
if (Double.isNaN(this.minimumRangeValue)) {
this.minimumRangeValue = minval;
this.minimumRangeValueRow = r;
this.minimumRangeValueColumn = c;
}
else if (minval < this.minimumRangeValue) {
this.minimumRangeValue = minval;
this.minimumRangeValueRow = r;
this.minimumRangeValueColumn = c;
}
}
fireDatasetChanged();
}
Adds a list of values relating to one Box and Whisker entity to the
table. The various median values are calculated. |
public void clear() {
this.data.clear();
updateBounds();
fireDatasetChanged();
}
Clears all data from the dataset and sends a DatasetChangeEvent
to all registered listeners. |
public Object clone() throws CloneNotSupportedException {
DefaultBoxAndWhiskerCategoryDataset clone
= (DefaultBoxAndWhiskerCategoryDataset) super.clone();
clone.data = (KeyedObjects2D) this.data.clone();
return clone;
}
Returns a clone of this dataset. |
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof DefaultBoxAndWhiskerCategoryDataset) {
DefaultBoxAndWhiskerCategoryDataset dataset
= (DefaultBoxAndWhiskerCategoryDataset) obj;
return ObjectUtilities.equal(this.data, dataset.data);
}
return false;
}
Tests this dataset for equality with an arbitrary object. |
public int getColumnCount() {
return this.data.getColumnCount();
}
Returns the number of columns in the table. |
public int getColumnIndex(Comparable key) {
return this.data.getColumnIndex(key);
}
Returns the column index for a given key. |
public Comparable getColumnKey(int column) {
return this.data.getColumnKey(column);
}
|
public List getColumnKeys() {
return this.data.getColumnKeys();
}
|
public BoxAndWhiskerItem getItem(int row,
int column) {
return (BoxAndWhiskerItem) this.data.getObject(row, column);
}
Return an item from within the dataset. |
public Number getMaxOutlier(int row,
int column) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
row, column);
if (item != null) {
result = item.getMaxOutlier();
}
return result;
}
Returns the maximum outlier (non farout) value for an item. |
public Number getMaxOutlier(Comparable rowKey,
Comparable columnKey) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
rowKey, columnKey);
if (item != null) {
result = item.getMaxOutlier();
}
return result;
}
Returns the maximum outlier (non farout) value for an item. |
public Number getMaxRegularValue(int row,
int column) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
row, column);
if (item != null) {
result = item.getMaxRegularValue();
}
return result;
}
Returns the maximum regular (non outlier) value for an item. |
public Number getMaxRegularValue(Comparable rowKey,
Comparable columnKey) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
rowKey, columnKey);
if (item != null) {
result = item.getMaxRegularValue();
}
return result;
}
Returns the maximum regular (non outlier) value for an item. |
public Number getMeanValue(int row,
int column) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(row,
column);
if (item != null) {
result = item.getMean();
}
return result;
}
Returns the mean value for an item. |
public Number getMeanValue(Comparable rowKey,
Comparable columnKey) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
rowKey, columnKey);
if (item != null) {
result = item.getMean();
}
return result;
}
Returns the mean value for an item. |
public Number getMedianValue(int row,
int column) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(row,
column);
if (item != null) {
result = item.getMedian();
}
return result;
}
Returns the median value for an item. |
public Number getMedianValue(Comparable rowKey,
Comparable columnKey) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
rowKey, columnKey);
if (item != null) {
result = item.getMedian();
}
return result;
}
Returns the median value for an item. |
public Number getMinOutlier(int row,
int column) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
row, column);
if (item != null) {
result = item.getMinOutlier();
}
return result;
}
Returns the minimum outlier (non farout) value for an item. |
public Number getMinOutlier(Comparable rowKey,
Comparable columnKey) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
rowKey, columnKey);
if (item != null) {
result = item.getMinOutlier();
}
return result;
}
Returns the minimum outlier (non farout) value for an item. |
public Number getMinRegularValue(int row,
int column) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
row, column);
if (item != null) {
result = item.getMinRegularValue();
}
return result;
}
Returns the minimum regular (non outlier) value for an item. |
public Number getMinRegularValue(Comparable rowKey,
Comparable columnKey) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
rowKey, columnKey);
if (item != null) {
result = item.getMinRegularValue();
}
return result;
}
Returns the minimum regular (non outlier) value for an item. |
public List getOutliers(int row,
int column) {
List result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
row, column);
if (item != null) {
result = item.getOutliers();
}
return result;
}
Returns a list of outlier values for an item. |
public List getOutliers(Comparable rowKey,
Comparable columnKey) {
List result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
rowKey, columnKey);
if (item != null) {
result = item.getOutliers();
}
return result;
}
Returns a list of outlier values for an item. |
public Number getQ1Value(int row,
int column) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
row, column);
if (item != null) {
result = item.getQ1();
}
return result;
}
Returns the first quartile value. |
public Number getQ1Value(Comparable rowKey,
Comparable columnKey) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
rowKey, columnKey);
if (item != null) {
result = item.getQ1();
}
return result;
}
Returns the first quartile value. |
public Number getQ3Value(int row,
int column) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
row, column);
if (item != null) {
result = item.getQ3();
}
return result;
}
Returns the third quartile value. |
public Number getQ3Value(Comparable rowKey,
Comparable columnKey) {
Number result = null;
BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(
rowKey, columnKey);
if (item != null) {
result = item.getQ3();
}
return result;
}
Returns the third quartile value. |
public Range getRangeBounds(boolean includeInterval) {
return new Range(this.minimumRangeValue, this.maximumRangeValue);
}
Returns the range of the values in this dataset's range. |
public double getRangeLowerBound(boolean includeInterval) {
return this.minimumRangeValue;
}
Returns the minimum y-value in the dataset. |
public double getRangeUpperBound(boolean includeInterval) {
return this.maximumRangeValue;
}
Returns the maximum y-value in the dataset. |
public int getRowCount() {
return this.data.getRowCount();
}
Returns the number of rows in the table. |
public int getRowIndex(Comparable key) {
// defer null argument check
return this.data.getRowIndex(key);
}
Returns the row index for a given key. |
public Comparable getRowKey(int row) {
return this.data.getRowKey(row);
}
|
public List getRowKeys() {
return this.data.getRowKeys();
}
|
public Number getValue(int row,
int column) {
return getMedianValue(row, column);
}
Returns the value for an item. |
public Number getValue(Comparable rowKey,
Comparable columnKey) {
return getMedianValue(rowKey, columnKey);
}
Returns the value for an item. |
public void remove(Comparable rowKey,
Comparable columnKey) {
// defer null argument checks
int r = getRowIndex(rowKey);
int c = getColumnIndex(columnKey);
this.data.removeObject(rowKey, columnKey);
// if this cell held a maximum and/or minimum value, we'll need to
// update the cached bounds...
if ((this.maximumRangeValueRow == r && this.maximumRangeValueColumn
== c) || (this.minimumRangeValueRow == r
&& this.minimumRangeValueColumn == c)) {
updateBounds();
}
fireDatasetChanged();
}
Removes an item from the dataset and sends a DatasetChangeEvent
to all registered listeners. |
public void removeColumn(int columnIndex) {
this.data.removeColumn(columnIndex);
updateBounds();
fireDatasetChanged();
}
Removes a column from the dataset and sends a DatasetChangeEvent
to all registered listeners. |
public void removeColumn(Comparable columnKey) {
this.data.removeColumn(columnKey);
updateBounds();
fireDatasetChanged();
}
Removes a column from the dataset and sends a DatasetChangeEvent
to all registered listeners. |
public void removeRow(int rowIndex) {
this.data.removeRow(rowIndex);
updateBounds();
fireDatasetChanged();
}
Removes a row from the dataset and sends a DatasetChangeEvent
to all registered listeners. |
public void removeRow(Comparable rowKey) {
this.data.removeRow(rowKey);
updateBounds();
fireDatasetChanged();
}
Removes a row from the dataset and sends a DatasetChangeEvent
to all registered listeners. |