|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.clichart.data.AbstractDataParser
public abstract class AbstractDataParser
Abstract base class for data parsers. Subclasses are responsible for parsing the X value.
Note: In order to add a second axis, call addSecondAxis before parsing starts.
| Constructor Summary | |
|---|---|
protected |
AbstractDataParser(LineParser lineParser,
int xColumnIndex,
int[] yColumnIndexes,
boolean hasHeader,
boolean ignoreMissingValues,
boolean ignoreEmptyValues,
DataSink sink)
|
| Method Summary | |
|---|---|
void |
addSecondAxis(int[] yColumnIndexes,
DataSink sink)
Configure parsing for values to be displayed on a second axis on the chart. |
void |
parse(java.io.Reader source)
Parse the data from the reader, advising the sink of all data parsed |
protected abstract java.lang.Object |
parseXValueImpl(java.lang.String xValue,
int lineNumber)
Parse the provided X value, and return as an appropriate object, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractDataParser(LineParser lineParser,
int xColumnIndex,
int[] yColumnIndexes,
boolean hasHeader,
boolean ignoreMissingValues,
boolean ignoreEmptyValues,
DataSink sink)
| Method Detail |
|---|
public void addSecondAxis(int[] yColumnIndexes,
DataSink sink)
yColumnIndexes - Column indexes to display on the second chartsink - Data sink for the second axis.
public void parse(java.io.Reader source)
throws java.io.IOException,
InvalidDataException
DataParser
parse in interface DataParserjava.io.IOException
InvalidDataException
protected abstract java.lang.Object parseXValueImpl(java.lang.String xValue,
int lineNumber)
throws InvalidDataException
InvalidDataException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||