public class DataSheet
extends java.lang.Object
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
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 Valuepublic 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 indexpublic 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 Valuepublic 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 indexpublic 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 Valuepublic 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 indexpublic 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 resultpublic 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 indexpublic 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 indexpublic 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 detailspublic void transpose() throws java.lang.Exception
java.lang.Exception
public void transpose(int[] transposeCol) throws java.lang.Exception
transposeCol
- transposing selected column indexjava.lang.Exception
public 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 rowpublic void updateRow(java.lang.Object[] record, int no)
record
- the new row datano
- the row number to updatepublic 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 :