public class SPsheet extends Object
Constructor and Description |
---|
SPsheet()
Show empty spreadsheet
|
SPsheet(CSVReader reader)
Open spreadsheet and load csv file
|
SPsheet(DataHolder dh)
Build a spreadsheet from multidimensional data holder
|
SPsheet(double[] a)
Build a spreadsheet from 1D array
|
SPsheet(double[][] a)
Build a spreadsheet from 2D array
|
SPsheet(F1D f1d)
Build a spreadsheet from the F1D function
|
SPsheet(H1D h1d)
Build a spreadsheet from the H1D histogram
|
SPsheet(P1D p1d)
Build a spreadsheet from the P1D container
|
SPsheet(PND pnd)
Build a spreadsheet from the PND container
|
SPsheet(PNI pnd)
Build a spreadsheet from the PND container
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(double[] a)
Add a column.
|
void |
addRow()
Adds row to end of table
|
void |
addRow(double[] a)
Add a row from a vector.
|
void |
doc()
Show online documentation.
|
void |
fillWithVectors(String title,
String[] names,
Double[][] arrayList)
Fill the table from the Vectors
|
sharptools.SharpTableModel |
getTableModel()
Get table model.
|
Object |
getValueAt(int aRow,
int aColumn)
This method returns the cell object at those coordinates.
|
void |
insertRow(double[] a,
int row)
Inser a row at position
|
void |
setCellAt(Object input,
int aRow,
int aColumn)
This fill assumes that the object passes to it is already the correct
object to set the value of the cell as.
|
void |
setStringAt(String value,
int aRow,
int aColumn)
Set string value at a position
|
void |
setValueAt(double value,
int aRow,
int aColumn)
Set value of a spreadsheet
|
void |
setValueAt(Object aValue,
int aRow,
int aColumn)
This method sets the value of the cell specified with these coordinates
to aValue.
|
public SPsheet()
public SPsheet(double[] a)
a
- Input arraypublic SPsheet(double[][] a)
a
- Input arraypublic SPsheet(P1D p1d)
p1d
- Input containerpublic SPsheet(PND pnd)
pnd
- Input containerpublic SPsheet(PNI pnd)
pni
- Input containerpublic SPsheet(CSVReader reader) throws IOException
reader
- CSVReaderIOException
public SPsheet(H1D h1d)
h1d
- Input histogrampublic SPsheet(F1D f1d)
f1d
- Input functionpublic SPsheet(DataHolder dh)
dh
- Input datapublic void addRow()
public void setValueAt(Object aValue, int aRow, int aColumn)
aValue
- value to set cell toaRow
- row coordinate of cellaColumn
- column coordinate of cellpublic void setCellAt(Object input, int aRow, int aColumn)
input
- object to set the Cell value asaRow
- row of cell to setaColumn
- column of cell to setpublic void fillWithVectors(String title, String[] names, Double[][] arrayList)
title
- New titlenames
- Vector with namesarrayList
- Vector with the datapublic Object getValueAt(int aRow, int aColumn)
aRow
- the row coordinateaColumn
- the column coordinatepublic void setValueAt(double value, int aRow, int aColumn)
value
- valueaRow
- rowaColumn
- columnpublic void setStringAt(String value, int aRow, int aColumn)
value
- stringaRow
- rowaColumn
- columnpublic sharptools.SharpTableModel getTableModel()
public void addRow(double[] a)
a
- input array to be added.public void insertRow(double[] a, int row)
a
- array of valuesrow
- positionpublic void addColumn(double[] a)
a
- column to added.public void doc()
jHepWork 3.8 ©