|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfree.data.general.AbstractDataset
hudson.plugins.plot.PlotCategoryDataset
public class PlotCategoryDataset
A CategoryDataset implementation that stores numeric data points
and corresponding URLs. This data structure is basically a table
with row and column names (keys).
| Constructor Summary | |
|---|---|
PlotCategoryDataset()
Creates a new empty instance. |
|
| Method Summary | |
|---|---|
void |
clipDataset(int maxColumns)
Truncates the dataset to the last maxColumns
columns. |
int |
getColumnCount()
|
int |
getColumnIndex(java.lang.Comparable key)
|
java.lang.Comparable |
getColumnKey(int column)
|
java.util.List |
getColumnKeys()
|
int |
getRowCount()
|
int |
getRowIndex(java.lang.Comparable key)
|
java.lang.Comparable |
getRowKey(int row)
|
java.util.List |
getRowKeys()
|
java.lang.String |
getUrl(int row,
int column)
Returns the URL at the given row and column. |
java.lang.Number |
getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Gets the value with the given row and column keys. |
java.lang.Number |
getValue(int row,
int column)
|
void |
setValue(java.lang.Number value,
java.lang.String url,
java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Adds or updates a value. |
| Methods inherited from class org.jfree.data.general.AbstractDataset |
|---|
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.data.general.Dataset |
|---|
addChangeListener, getGroup, removeChangeListener, setGroup |
| Constructor Detail |
|---|
public PlotCategoryDataset()
| Method Detail |
|---|
public void clipDataset(int maxColumns)
maxColumns
columns.
maxColumns - the maximum number columns that will appear to
be in the dataset.public int getRowCount()
getRowCount in interface org.jfree.data.Values2Dpublic int getColumnCount()
getColumnCount in interface org.jfree.data.Values2D
public java.lang.Number getValue(int row,
int column)
getValue in interface org.jfree.data.Values2Dpublic java.lang.Comparable getRowKey(int row)
getRowKey in interface org.jfree.data.KeyedValues2Dpublic int getRowIndex(java.lang.Comparable key)
getRowIndex in interface org.jfree.data.KeyedValues2Dpublic java.util.List getRowKeys()
getRowKeys in interface org.jfree.data.KeyedValues2Dpublic java.lang.Comparable getColumnKey(int column)
getColumnKey in interface org.jfree.data.KeyedValues2Dpublic int getColumnIndex(java.lang.Comparable key)
getColumnIndex in interface org.jfree.data.KeyedValues2Dpublic java.util.List getColumnKeys()
getColumnKeys in interface org.jfree.data.KeyedValues2D
public java.lang.Number getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
getValue in interface org.jfree.data.KeyedValues2DrowKey - the row keycolumnKey - the column key
public java.lang.String getUrl(int row,
int column)
row - the row indexcolumn - the column index
public void setValue(java.lang.Number value,
java.lang.String url,
java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
value - the value to addurl - the URL to add and associate with the valuerowKey - the row keycolumnKey - the column key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||