fable.python
Class PeakSearchSpt

java.lang.Object
  extended by fable.python.PeakSearchSpt

public class PeakSearchSpt
extends java.lang.Object

Author:
G. Suchet fable.peaksearch 9 janv. 08 This class represents the output of peaksearcher.

Constructor Summary
PeakSearchSpt(java.lang.String parentFileName)
          f
 
Method Summary
 void addPeak(Peak p)
           
 void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
          Register or remove listeners
 void concatPeaks(java.lang.String peak)
           
 void firechangeSortdirection(int comp)
           
 void fireChangeSorter(java.lang.String comp)
           
 java.util.Vector<Peak> getChildren()
           
 java.lang.String getFabioFileName()
           
 FabioFile getImageFile()
           
 int getNbPeaks()
           
 java.lang.String getParentFileName()
           
 Peak getPeak(int i)
           
 int getSize()
           
 java.util.Vector<Peak> getSortedpeaks()
           
 java.util.Vector<java.lang.Float> getTabChildren()
           
 float getTreshold()
          14 janv.
 void initFabioFile(java.lang.String fullFileName)
           
 boolean isParsed()
           
 void parse()
           
 void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
           
 void setComparator(java.lang.String Key, int dir)
           
 void setFabioFile(FabioFile object)
           
 void setFabioFileName(java.lang.String filename)
           
 void setKeys(java.lang.String listKeys)
          listKeys is: "Number_of_pixels Average_counts f s fc sc sig_f sig_s cov_fs" As it comes from sptParser
 void setKeys(java.lang.String[] listKeys)
          listKeys is: "Number_of_pixels Average_counts f s fc sc sig_f sig_s cov_fs" As it comes from sptParser
 void setNbPeaks(int pks)
           
 void setParentFileName(java.lang.String sptFile)
           
 void setParsed(boolean parsed)
           
 void setPeaks(java.lang.String blockWithAllPeaks)
           
 void setTreshold(float t)
           
 java.lang.String toString()
          add this method for treeviewer content provider
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeakSearchSpt

public PeakSearchSpt(java.lang.String parentFileName)
f

Parameters:
Filename -
Method Detail

setNbPeaks

public void setNbPeaks(int pks)

setTreshold

public void setTreshold(float t)

getNbPeaks

public int getNbPeaks()

getImageFile

public FabioFile getImageFile()

initFabioFile

public void initFabioFile(java.lang.String fullFileName)
                   throws FabioFileException
Throws:
FabioFileException

getTreshold

public float getTreshold()
14 janv. 08

Returns:
treshold ; value stored in output peaksearch header

addPeak

public void addPeak(Peak p)

getSortedpeaks

public java.util.Vector<Peak> getSortedpeaks()

setComparator

public void setComparator(java.lang.String Key,
                          int dir)

getPeak

public Peak getPeak(int i)

getSize

public int getSize()

getParentFileName

public java.lang.String getParentFileName()

getFabioFileName

public java.lang.String getFabioFileName()
Returns:
filenames

getChildren

public java.util.Vector<Peak> getChildren()

getTabChildren

public java.util.Vector<java.lang.Float> getTabChildren()
Returns:
an array containing a pair of [i=s, i+1=f], for 2d peaks for visible peaks (bshow=true).
Peaks should be already parsed.

toString

public java.lang.String toString()
add this method for treeviewer content provider

Overrides:
toString in class java.lang.Object

setKeys

public void setKeys(java.lang.String listKeys)
listKeys is: "Number_of_pixels Average_counts f s fc sc sig_f sig_s cov_fs" As it comes from sptParser


setKeys

public void setKeys(java.lang.String[] listKeys)
listKeys is: "Number_of_pixels Average_counts f s fc sc sig_f sig_s cov_fs" As it comes from sptParser


setPeaks

public void setPeaks(java.lang.String blockWithAllPeaks)

concatPeaks

public void concatPeaks(java.lang.String peak)
Parameters:
peak - this is one line coming from the parser 4194304 1040.879432 1025.619308 1024.586495 1025.797993 1025.442168 588.552309 588.380541 -0.000225

parse

public void parse()

isParsed

public boolean isParsed()

setParsed

public void setParsed(boolean parsed)

addPropertyChangeListener

public void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Register or remove listeners


removePropertyChangeListener

public void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)

fireChangeSorter

public void fireChangeSorter(java.lang.String comp)

firechangeSortdirection

public void firechangeSortdirection(int comp)

setParentFileName

public void setParentFileName(java.lang.String sptFile)

setFabioFileName

public void setFabioFileName(java.lang.String filename)

setFabioFile

public void setFabioFile(FabioFile object)