|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.template.NodeSetToTableModel
Creates a TableModel from a NodeList.
Field Summary | |
private Vector |
colmnNames
Vector of the column names to be used in the graph. |
private Vector |
data
Vector of the data that will be used in the graph. |
private Vector |
headingNames
Vector of the tag names that data needs to be collected from. |
private NodeList |
nodeListIn
The NodeList to be put into the TableModel. |
Constructor Summary | |
NodeSetToTableModel(NodeList nodeListIn)
Constructor. |
Method Summary | |
TableModel |
convert(int style)
Converts the NodeSet to a TableModel. |
protected Color |
getColor(int i)
Get's a color depending on the input. |
protected TableModel |
pieModel()
JChart's pie chart needs table model in a certain format. |
protected void |
snagData()
Gets the data from the DOM. |
protected TableModel |
standardModel()
Puts the data collected from the DOM into the TableModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private NodeList nodeListIn
private Vector headingNames
private Vector colmnNames
private Vector data
Constructor Detail |
public NodeSetToTableModel(NodeList nodeListIn)
Method Detail |
public TableModel convert(int style) throws WTException
Throws
- WTException if data is bad.
WTException
protected TableModel standardModel()
protected TableModel pieModel()
protected void snagData() throws WTException
WTException
protected Color getColor(int i)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |