|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.data.general.AbstractDataset org.jfree.data.category.DefaultCategoryDataset edu.sdsc.inca.consumer.DistributionBean
public class DistributionBean
A dataset producer for graphing distribution data based on an xpath values in a xml document. This is implemented by extending the category dataset using the xpath values for the xaxis and their count for the yaxis. Multiple rows (or series) can be added to create a stacked bar graph.
Field Summary | |
---|---|
static java.lang.String |
NAMESPACE_DECLS
|
Fields inherited from interface de.laures.cewolf.DatasetProducer |
---|
PRODUCER_ATTRIBUTE_NAME |
Constructor Summary | |
---|---|
DistributionBean(java.lang.String id,
java.lang.String xml)
Create a new distribution dataset which will pull data from the provided xml document |
Method Summary | |
---|---|
void |
add(java.lang.String xpath,
java.lang.String rowKey)
Add a new row to the dataset. |
java.lang.String |
generateToolTip(org.jfree.data.category.CategoryDataset data,
int row,
int column)
Text to display when a bar is moused over |
int |
getColKeyIndex(java.lang.String colValue)
Return the index of the column key value |
java.util.Vector<java.lang.String> |
getColKeys()
Return the vector of column keys (or unique values found in the xpath) |
java.lang.String |
getProducerId()
Returns a unique id for this dataset |
int |
getRowKeyIndex(java.lang.String rowValue)
Return the index of the row key value |
java.util.Vector<java.lang.String> |
getRowKeys()
Return the vector of row keys (or series) |
boolean |
hasExpired(java.util.Map params,
java.util.Date since)
This method influences Cewolf's caching behaviour. |
java.lang.Object |
produceDataset(java.util.Map params)
Return this object as the dataset |
Methods inherited from class org.jfree.data.category.DefaultCategoryDataset |
---|
addValue, addValue, clear, clone, equals, getColumnCount, getColumnIndex, getColumnKey, getColumnKeys, getRowCount, getRowIndex, getRowKey, getValue, getValue, hashCode, incrementValue, removeColumn, removeColumn, removeRow, removeRow, removeValue, setValue, setValue |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.general.Dataset |
---|
addChangeListener, getGroup, removeChangeListener, setGroup |
Field Detail |
---|
public static final java.lang.String NAMESPACE_DECLS
Constructor Detail |
---|
public DistributionBean(java.lang.String id, java.lang.String xml) throws org.apache.xmlbeans.XmlException
id
- A unique id that can be used for a graph idxml
- An string containing an xml document following the query
results schema: http://inca.sdsc.edu/dataModel/queryResults_2.0
org.apache.xmlbeans.XmlException
- if problem parsing xmlMethod Detail |
---|
public void add(java.lang.String xpath, java.lang.String rowKey)
xpath
- the values that will be calculated into the distributionrowKey
- an identifier to use for the row (or series)public java.lang.String generateToolTip(org.jfree.data.category.CategoryDataset data, int row, int column)
generateToolTip
in interface de.laures.cewolf.tooltips.CategoryToolTipGenerator
data
- Jfree CategoryDataset object to add mouseover text to.row
- The row value that was moused overcolumn
- The column value that was moused over
public int getColKeyIndex(java.lang.String colValue)
colValue
- A value in the the column keys
public java.util.Vector<java.lang.String> getColKeys()
public java.lang.String getProducerId()
getProducerId
in interface de.laures.cewolf.DatasetProducer
public int getRowKeyIndex(java.lang.String rowValue)
rowValue
- A value in the the row keys
public java.util.Vector<java.lang.String> getRowKeys()
getRowKeys
in interface org.jfree.data.KeyedValues2D
getRowKeys
in class org.jfree.data.category.DefaultCategoryDataset
public boolean hasExpired(java.util.Map params, java.util.Date since)
hasExpired
in interface de.laures.cewolf.DatasetProducer
public java.lang.Object produceDataset(java.util.Map params) throws de.laures.cewolf.DatasetProduceException
produceDataset
in interface de.laures.cewolf.DatasetProducer
params
- Additional params for the dataset production.
de.laures.cewolf.DatasetProduceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |