📄 defaultboxandwhiskercategorydataset.java
字号:
}
return result;
}
/**
* Returns the column index for a given key.
*
* @param key the column key.
*
* @return The column index.
*/
public int getColumnIndex(Comparable key) {
return this.data.getColumnIndex(key);
}
/**
* Returns a column key.
*
* @param column the column index (zero-based).
*
* @return The column key.
*/
public Comparable getColumnKey(int column) {
return this.data.getColumnKey(column);
}
/**
* Returns the column keys.
*
* @return The keys.
*/
public List getColumnKeys() {
return this.data.getColumnKeys();
}
/**
* Returns the row index for a given key.
*
* @param key the row key.
*
* @return The row index.
*/
public int getRowIndex(Comparable key) {
return this.data.getRowIndex(key);
}
/**
* Returns a row key.
*
* @param row the row index (zero-based).
*
* @return The row key.
*/
public Comparable getRowKey(int row) {
return this.data.getRowKey(row);
}
/**
* Returns the row keys.
*
* @return The keys.
*/
public List getRowKeys() {
return this.data.getRowKeys();
}
/**
* Returns the number of rows in the table.
*
* @return The row count.
*/
public int getRowCount() {
return this.data.getRowCount();
}
/**
* Returns the number of columns in the table.
*
* @return The column count.
*/
public int getColumnCount() {
return this.data.getColumnCount();
}
/**
* Returns the minimum y-value in the dataset.
*
* @param includeInterval a flag that determines whether or not the
* y-interval is taken into account.
*
* @return The minimum value.
*/
public double getRangeLowerBound(boolean includeInterval) {
double result = Double.NaN;
if (this.minimumRangeValue != null) {
result = this.minimumRangeValue.doubleValue();
}
return result;
}
/**
* Returns the maximum y-value in the dataset.
*
* @param includeInterval a flag that determines whether or not the
* y-interval is taken into account.
*
* @return The maximum value.
*/
public double getRangeUpperBound(boolean includeInterval) {
double result = Double.NaN;
if (this.maximumRangeValue != null) {
result = this.maximumRangeValue.doubleValue();
}
return result;
}
/**
* Returns the range of the values in this dataset's range.
*
* @param includeInterval a flag that determines whether or not the
* y-interval is taken into account.
*
* @return The range.
*/
public Range getRangeBounds(boolean includeInterval) {
return this.rangeBounds;
}
/**
* Returns the minimum regular (non outlier) value for an item.
*
* @param row the row index (zero-based).
* @param column the column index (zero-based).
*
* @return The minimum regular value.
*/
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.
*
* @param rowKey the row key.
* @param columnKey the column key.
*
* @return The minimum regular value.
*/
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 maximum regular (non outlier) value for an item.
*
* @param row the row index (zero-based).
* @param column the column index (zero-based).
*
* @return The maximum regular value.
*/
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.
*
* @param rowKey the row key.
* @param columnKey the column key.
*
* @return The maximum regular value.
*/
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 minimum outlier (non farout) value for an item.
*
* @param row the row index (zero-based).
* @param column the column index (zero-based).
*
* @return The minimum outlier.
*/
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.
*
* @param rowKey the row key.
* @param columnKey the column key.
*
* @return The minimum outlier.
*/
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 maximum outlier (non farout) value for an item.
*
* @param row the row index (zero-based).
* @param column the column index (zero-based).
*
* @return The maximum outlier.
*/
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.
*
* @param rowKey the row key.
* @param columnKey the column key.
*
* @return The maximum outlier.
*/
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 a list of outlier values for an item.
*
* @param row the row index (zero-based).
* @param column the column index (zero-based).
*
* @return A list of outlier values.
*/
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.
*
* @param rowKey the row key.
* @param columnKey the column key.
*
* @return A list of outlier values.
*/
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;
}
/**
* Tests this dataset for equality with an arbitrary object.
*
* @param obj the object to test against (<code>null</code> permitted).
*
* @return A boolean.
*/
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;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -