|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfable.python.ColumnFile
public class ColumnFile
This is a python module interface in java for columnfile.py. Use it to parse a file with columns
columnfile represents an ascii file with titles begining "#" and multiple lines of data. An equals sign "=" on a "#" line implies a parameter = value pair
Field Summary | |
---|---|
java.lang.String[] |
titles
|
Constructor Summary | |
---|---|
ColumnFile()
Class constructor |
|
ColumnFile(FableJep jep_as_parameter)
Class constructor column_object already exists in jep_as_parameter |
|
ColumnFile(java.lang.String _fileName)
Class constructor specifying file to parse. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Add a listener to this columnFile. |
void |
AddUnitCell(float[] values)
|
void |
displayComputedData(java.lang.String[] xyLabel)
This method is called from transformer to display last computation i.e. |
void |
fireAddColumnFile()
Sends a PropertyChangeEvent to all ColumnFile listeners when
a new column is added in python object. |
void |
fireAddUnitCell()
Sends a PropertyChangeEvent to ColumnFile listeners when
unit cells have been added in python object. |
void |
fireColumnHasBeenUpdated()
Sends a PropertyChangeEvent to all ColumnFile listeners when
a column have been updated in python object. |
void |
fireRemoveAll()
This methods sends an event to all ColumnFile listeners, and espacially views, to remove all dots in plot. |
float |
getColumnFileCell(int index,
java.lang.String colName)
|
java.lang.String |
getColumnfileId()
This method returns the name of the id for a columnfile..... |
int |
getColumnIDIndex()
This method is used to get the index of the column that have columnFile if. |
java.util.HashMap<java.lang.String,double[]> |
getColumnstoPlot()
|
float[] |
getData()
|
java.lang.String |
getFileName()
Return the short file name. |
java.lang.String |
getFullFileName()
Return the full file name. |
int |
getNCols()
|
int |
getNRows()
|
float[] |
getRowAt(int index)
This method return a row at index |
float[] |
getSortedIndex(int columnIndex)
This methods have been created (thanks to Jon for its help in python), to sort columns in table viewer, as it is now virtual. |
java.lang.String[] |
getTitles()
|
float[] |
getUnitCell()
|
void |
keepDots(java.lang.String key1,
double key1min,
double key1max,
java.lang.String key2,
double key2min,
double key2max)
keep all dots selected in the zone and remove others |
void |
keepRow(java.lang.Object[] rows,
java.lang.String id)
This methods remove selected rows from columnfile. |
void |
loadColumnFile(java.lang.String _fileName)
open a new column file in the current jep Init sort index, based on the file id, or on the first column if it is not defined. |
void |
loadRows()
This method load a big array of float from python object. |
void |
removeDots(java.lang.String key1,
double key1min,
double key1max,
java.lang.String key2,
double key2min,
double key2max)
remove all dots between these values |
void |
removePropertyrChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
remove a listener from this columnFile. |
void |
removeRow(java.lang.Object[] idlist,
java.lang.String id)
This methods remove selected rows from columnfile. |
boolean |
saveColumnFile(java.lang.String filename)
This function is used to save a column file object, for example if spots have been removed for the original file. |
void |
setFileName(java.lang.String name)
For example, in transformer, colmnfile object exists in python object transformer. |
void |
setPythonObject(FableJep jep_as_parameter)
|
void |
setSortedIndex(int index,
int dir)
|
void |
update()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String[] titles
Constructor Detail |
---|
public ColumnFile() throws java.lang.Throwable
jep.JepException
java.lang.Throwable
public ColumnFile(FableJep jep_as_parameter) throws jep.JepException
jep_as_parameter
-
jep.JepException
public ColumnFile(java.lang.String _fileName) throws java.lang.Throwable
Creates a new column_object python object. Use it if you don' t have a columnfile object in your jep
FileName
-
jep.JepException
java.lang.Throwable
Method Detail |
---|
public void loadColumnFile(java.lang.String _fileName)
_fileName
- - name of column file to open
jep.JepException
public void setFileName(java.lang.String name)
name
- public java.lang.String getFullFileName()
public java.lang.String getFileName()
public void setPythonObject(FableJep jep_as_parameter) throws jep.JepException
jep.JepException
public void loadRows()
public java.lang.String getColumnfileId()
public int getColumnIDIndex()
public float[] getSortedIndex(int columnIndex)
ILazyContentProvider
is not compatible with a sort
set on the table.
the
- index of the column to sort
public boolean saveColumnFile(java.lang.String filename)
filename
- the name of the file to save this column file object.
public java.util.HashMap<java.lang.String,double[]> getColumnstoPlot()
public float getColumnFileCell(int index, java.lang.String colName)
index
- the number of the row.colName
- the name of the column to get index.
public void update()
public void AddUnitCell(float[] values)
public float[] getUnitCell()
public int getNRows()
public int getNCols()
public java.lang.String[] getTitles()
public void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
listener
- public void removePropertyrChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
listener
- public void fireAddColumnFile()
PropertyChangeEvent
to all ColumnFile listeners when
a new column is added in python object.
public void fireColumnHasBeenUpdated()
PropertyChangeEvent
to all ColumnFile listeners when
a column have been updated in python object.
public void fireAddUnitCell()
PropertyChangeEvent
to ColumnFile listeners when
unit cells have been added in python object.
public void removeDots(java.lang.String key1, double key1min, double key1max, java.lang.String key2, double key2min, double key2max) throws jep.JepException
key1min
- min value for key1key1max
- max value for key1key2min
- min value for key2key2max
- max value for key2
jep.JepException
public void removeRow(java.lang.Object[] idlist, java.lang.String id)
idlist
- a table of id selected in a tableViewer.id
- columnFile id.public void keepRow(java.lang.Object[] rows, java.lang.String id)
rows
- a table of id selected in a tableViewer.id
- columnFile id.public void keepDots(java.lang.String key1, double key1min, double key1max, java.lang.String key2, double key2min, double key2max) throws jep.JepException
key1min
- min value for key1key1max
- max value for key1key2min
- min value for key2key2max
- max value for key2
jep.JepException
public void displayComputedData(java.lang.String[] xyLabel)
xyLabel
- public void fireRemoveAll()
public float[] getData()
public void setSortedIndex(int index, int dir)
public float[] getRowAt(int index)
index
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |