|
EspressReport v 6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--quadbase.ChartAPI.swing.DataSheet
This class provides a functionality to merge multiple data sources together. Users can create a DataSheet class from different data sources, such as data file, database, spreadSheetModel, and IResultSet. Users may use a QbChart constructor for DataSheet array to create a chart object.
| Constructor Summary | |
DataSheet(java.applet.Applet applet,
EJBInfo ejbInfo)
Creates a new dataSheet from EJBInfo |
|
DataSheet(java.applet.Applet applet,
EJBInfo ejbInfo,
boolean doTranspose)
Creates a new dataSheet from EJBInfo |
|
DataSheet(java.applet.Applet applet,
EJBInfo ejbInfo,
boolean doTranspose,
int[] transposeColIdx)
Creates a new dataSheet from EJBInfo |
|
DataSheet(java.applet.Applet applet,
IDatabaseInfo dbInfo,
boolean doTranspose)
Creates a new dataSheet from a database |
|
DataSheet(java.applet.Applet applet,
IDatabaseInfo dbInfo,
boolean doTranspose,
int[] transposeColIdx)
Creates a new dataSheet from a database |
|
DataSheet(java.applet.Applet applet,
IResultSet data,
boolean doTranspose)
Creates a new dataSheet from IResultset |
|
DataSheet(java.applet.Applet applet,
IResultSet data,
boolean doTranspose,
int[] transposeColIdx)
Creates a new dataSheet from IResultset |
|
DataSheet(java.applet.Applet applet,
ISpreadSheetModel spreadSheet)
Creates a new dataSheet from spread sheet |
|
DataSheet(java.applet.Applet applet,
java.lang.String dataFile,
boolean doTranspose)
Creates a new dataSheet from a data file |
|
DataSheet(java.applet.Applet applet,
java.lang.String dataFile,
boolean doTranspose,
int[] transposeColIdx)
Creates a new dataSheet from a data file |
|
DataSheet(java.applet.Applet applet,
java.lang.String dataFile,
boolean doTranspose,
int[] transposeColIdx,
int dataFileType)
Creates a new dataSheet from a data file |
|
DataSheet(java.applet.Applet applet,
XMLFileQueryInfo xmlFileQueryInfo,
boolean doTranspose,
int[] transposeColIdx)
Creates a new dataSheet from XML File |
|
| Method Summary | |
void |
addRow(java.lang.Object[] record)
Adds a new row data object |
void |
deleteRow(int no)
Deletes a specified row |
int |
getColumnCount()
Returns number of columns |
java.lang.Object[] |
getRow(int no)
Returns specified row data |
int |
getRowCount()
Returns number of rows |
void |
print(java.io.PrintStream out,
int separator,
int format)
Print Data File |
void |
transpose()
Sets data transpose limitation: all data columns (except the first column) must have same data type |
void |
transpose(int[] transposeCol)
Sets data transpose |
void |
updateRow(java.lang.Object[] record,
int no)
Updates the specified row |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataSheet(java.applet.Applet applet,
IDatabaseInfo dbInfo,
boolean doTranspose)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationdbInfo - database information, see interface IDatabaseInfodoTranspose - a flag denoting whether the input data has to be transposed into
a result set having three columns: RowLabel, ColumnLabel, and Value
public DataSheet(java.applet.Applet applet,
IDatabaseInfo dbInfo,
boolean doTranspose,
int[] transposeColIdx)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationdbInfo - database information, see interface IDatabaseInfodoTranspose - a flag denoting whether the input data has to be transposed into
a resulttransposeColIdx - transpose selected column index
public DataSheet(java.applet.Applet applet,
java.lang.String dataFile,
boolean doTranspose)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationdataFile - source data file, see database file format for detailsdoTranspose - a flag denoting whether the input data has to be transposed into
a result set having three columns: RowLabel, ColumnLabel, and Value
public DataSheet(java.applet.Applet applet,
java.lang.String dataFile,
boolean doTranspose,
int[] transposeColIdx)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationdataFile - source data file, see database file format for detailsdoTranspose - a flag denoting whether the input data has to be transposed into
a result set having three columns: RowLabel, ColumnLabel, and ValuetransposeColIdx - transposing selected column index
public DataSheet(java.applet.Applet applet,
java.lang.String dataFile,
boolean doTranspose,
int[] transposeColIdx,
int dataFileType)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationdataFile - source data file, see database file format for detailsdoTranspose - a flag denoting whether the input data has to be transposed into
a result set having three columns: RowLabel, ColumnLabel, and ValuetransposeColIdx - transposing selected column indexdataFileType - Type of data file (QbChart.DATAFILE, QbChart.CLASSFILE or QbChart.XMLFILE)
public DataSheet(java.applet.Applet applet,
IResultSet data,
boolean doTranspose)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationdata - source data to plot chart, see IResultSet for detailsdoTranspose - a flag denoting whether the input data has to be transposed into
a result set having three columns: RowLabel, ColumnLabel, and Value
public DataSheet(java.applet.Applet applet,
IResultSet data,
boolean doTranspose,
int[] transposeColIdx)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationdata - source data to plot chart, see IResultSet for detailsdoTranspose - a flag denoting whether the input data has to be transposed into
a resulttransposeColIdx - transposing selected column index
public DataSheet(java.applet.Applet applet,
EJBInfo ejbInfo)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationejbInfo - ejb info to plot chart.
public DataSheet(java.applet.Applet applet,
EJBInfo ejbInfo,
boolean doTranspose)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationejbInfo - ejb info to plot chart.doTranspose - a flag denoting whether the input data has to be transposed into
a result
public DataSheet(java.applet.Applet applet,
EJBInfo ejbInfo,
boolean doTranspose,
int[] transposeColIdx)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationejbInfo - ejb info to plot chart.doTranspose - a flag denoting whether the input data has to be transposed into
a resulttransposeColIdx - transposing selected column index
public DataSheet(java.applet.Applet applet,
XMLFileQueryInfo xmlFileQueryInfo,
boolean doTranspose,
int[] transposeColIdx)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationxmlFiledQueryInfo - xml info to plot chart.doTranspose - a flag denoting whether the input data has to be transposed into
a resulttransposeColIdx - transposing selected column index
public DataSheet(java.applet.Applet applet,
ISpreadSheetModel spreadSheet)
applet - the applet containing the chart. Use "(Applet)null" if
used within an applicationspreadSheet - source data model for chart, see ISpreadSheetModel for details| Method Detail |
public void transpose()
throws java.lang.Exception
public void transpose(int[] transposeCol)
throws java.lang.Exception
transposeCol - transposing selected column indexpublic int getRowCount()
public int getColumnCount()
public java.lang.Object[] getRow(int no)
no - row numberpublic void addRow(java.lang.Object[] record)
record - new row data objectpublic void deleteRow(int no)
no - row number of deleted row
public void updateRow(java.lang.Object[] record,
int no)
record - the new row datano - the row number to update
public void print(java.io.PrintStream out,
int separator,
int format)
out - The outputStream. The caller is responsible for closing it.separator - Available separators are :format - Available format are :
|
EspressReport v 6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||