public class PanelData
extends java.lang.Object
Graph
.Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(java.util.List<java.lang.String> tokens) |
void |
addDialog(int iSpec,
Annotation.AType type,
AnnotationData dialog) |
void |
addHighlight(jspecview.common.GraphSet gs,
double x1,
double x2,
JDXSpectrum spec,
int r,
int g,
int b,
int a)
Add information about a region of the displayed spectrum to be highlighted
applet only right now
|
void |
addListener(PanelListener listener) |
void |
addPeakHighlight(PeakInfo peakInfo) |
void |
addToList(int iSpec,
java.util.List<JDXSpectrum> list) |
void |
advanceSubSpectrum(int dir) |
void |
checkIntegral(Parameters parameters,
java.lang.String value) |
void |
clearAllView()
Clears all views in the zoom list
|
void |
clearIntegrals() |
void |
clearLinkViews(jspecview.common.GraphSet graphSet) |
void |
clearMeasurements() |
void |
closeAllDialogsExcept(Annotation.AType type) |
void |
dialogsToFront() |
void |
dispose() |
void |
doZoomLinked(jspecview.common.GraphSet graphSet,
double initX,
double finalX,
boolean addZoom,
boolean checkRange,
boolean is1d) |
PeakInfo |
findMatchingPeakInfo(PeakInfo pi) |
void |
findX(JDXSpectrum spec,
double d) |
void |
findX2(JDXSpectrum spec,
double d,
JDXSpectrum spec2,
double d2) |
boolean |
getBoolean(ScriptToken st) |
Coordinate |
getClickedCoordinate()
Returns the spectrum coordinate of the point on the display that was
clicked
|
int |
getCurrentSpectrumIndex() |
AnnotationData |
getDialog(Annotation.AType type) |
boolean |
getDisplay1D() |
java.lang.String |
getDisplayFontName()
Returns the name of the font used in the display
|
int |
getEndingPointIndex(int index) |
java.util.Map<java.lang.String,java.lang.Object> |
getInfo(boolean selectedOnly,
java.lang.String key) |
int |
getNumberOfGraphSets()
Returns the Number of Graph sets
|
int |
getNumberOfSpectraInCurrentSet() |
int |
getNumberOfSpectraTotal()
Returns the Number of Graph sets
|
void |
getPeakListing(Parameters p,
java.lang.Boolean tfToggle) |
boolean |
getPickedCoordinates(Coordinate coord,
Coordinate actualCoord)
click event processing
|
java.lang.String |
getPrintJobTitle(boolean isPrinting) |
Integral |
getSelectedIntegral() |
boolean |
getShowAnnotation(Annotation.AType type) |
java.lang.String |
getSolutionColor() |
java.lang.String |
getSolutionColorHtml() |
JDXSpectrum |
getSpectrum() |
JDXSpectrum |
getSpectrumAt(int index) |
int |
getStartingPointIndex(int index) |
java.lang.String |
getTitle()
Returns the title displayed on the graph
|
java.lang.String |
getTitleFontName()
Returns the font of the title
|
ScaleData |
getView() |
java.lang.String |
getViewTitle() |
boolean |
hasCurrentMeasurements(Annotation.AType type) |
boolean |
hasFileLoaded(java.lang.String filePath) |
boolean |
haveSelectedSpectrum() |
void |
integrateAll(Parameters parameters) |
boolean |
isShowAllStacked() |
void |
linkSpectra(jspecview.common.PanelData.LinkMode mode) |
void |
nextView()
Displays the next view zoomed
|
void |
previousView()
Displays the previous view zoomed
|
void |
refresh() |
void |
removeAllHighlights()
Removes all highlights from the display
|
void |
removeDialog(AnnotationDialog dialog) |
void |
removeHighlight(double x1,
double x2)
Remove the highlight specified by the starting and ending x value
|
void |
removeHighlight(int index)
Remove the highlight at the specified index in the internal list of
highlights The index depends on the order in which the highlights were
added
|
void |
resetView()
Resets the spectrum to it's original view
|
void |
scaleSelectedBy(double f) |
void |
scaleYBy(double f) |
void |
selectFromEntireSet(int iSpec)
sets bsSelected to the specified pointer from "select 3.1*1"
|
PeakInfo |
selectPeakByFileIndex(java.lang.String filePath,
java.lang.String index) |
void |
selectSpectrum(java.lang.String filePath,
java.lang.String type,
java.lang.String model,
boolean andCurrent) |
void |
set2DCrossHairsLinked(jspecview.common.GraphSet graphSet,
double x,
double y,
boolean isLocked) |
void |
setBoolean(ScriptToken st,
boolean isTrue) |
void |
setIntegrationRatios(java.lang.String value)
DEPRECATED
Sets the integration ratios that will be displayed
|
void |
setlinkedXMove(jspecview.common.GraphSet graphSet,
double x,
boolean isX2) |
void |
setSelectedIntegral(double val) |
void |
setSpectrum(int iSpec,
boolean isSplit) |
void |
setSpectrum(JDXSpectrum spec) |
void |
setViewTitle(java.lang.String title) |
void |
setYStackOffsetPercent(int offset) |
void |
setZoom(double x1,
double y1,
double x2,
double y2) |
boolean |
shiftSpectrum(double dx,
double x1)
shifts xyCoords for a spectrum by the specified amount
|
void |
showAnnotation(Annotation.AType type,
java.lang.Boolean tfToggle) |
void |
splitStack(boolean doSplit) |
void |
toPeak(int i) |
public void addListener(PanelListener listener)
public void dispose()
public void setViewTitle(java.lang.String title)
public java.lang.String getViewTitle()
public java.util.Map<java.lang.String,java.lang.Object> getInfo(boolean selectedOnly, java.lang.String key)
public void setBoolean(ScriptToken st, boolean isTrue)
public boolean getBoolean(ScriptToken st)
public boolean getDisplay1D()
public void integrateAll(Parameters parameters)
public int getNumberOfSpectraTotal()
public int getNumberOfGraphSets()
public java.lang.String getTitle()
public java.lang.String getDisplayFontName()
public java.lang.String getTitleFontName()
public void refresh()
public void addAnnotation(java.util.List<java.lang.String> tokens)
public void addPeakHighlight(PeakInfo peakInfo)
public PeakInfo selectPeakByFileIndex(java.lang.String filePath, java.lang.String index)
public void selectSpectrum(java.lang.String filePath, java.lang.String type, java.lang.String model, boolean andCurrent)
public boolean hasFileLoaded(java.lang.String filePath)
public void clearAllView()
public void selectFromEntireSet(int iSpec)
iSpec
- public void addToList(int iSpec, java.util.List<JDXSpectrum> list)
public void scaleSelectedBy(double f)
public void splitStack(boolean doSplit)
public int getNumberOfSpectraInCurrentSet()
public int getStartingPointIndex(int index)
public int getEndingPointIndex(int index)
public java.lang.String getSolutionColor()
public boolean haveSelectedSpectrum()
public boolean getShowAnnotation(Annotation.AType type)
public void showAnnotation(Annotation.AType type, java.lang.Boolean tfToggle)
public void setYStackOffsetPercent(int offset)
public void setSpectrum(int iSpec, boolean isSplit)
public JDXSpectrum getSpectrum()
public void setSpectrum(JDXSpectrum spec)
public boolean isShowAllStacked()
public int getCurrentSpectrumIndex()
public JDXSpectrum getSpectrumAt(int index)
public void addHighlight(jspecview.common.GraphSet gs, double x1, double x2, JDXSpectrum spec, int r, int g, int b, int a)
gs
- x1
- the x value of the coordinate where the highlight should startx2
- the x value of the coordinate where the highlight should endspec
- r
- a
- b
- g
- public void removeHighlight(int index)
index
- the index of the highlight in the listpublic void removeHighlight(double x1, double x2)
x1
- the x value of the coordinate where the highlight startedx2
- the x value of the coordinate where the highlight endedpublic void removeAllHighlights()
public void setZoom(double x1, double y1, double x2, double y2)
public void clearIntegrals()
public void clearMeasurements()
public void resetView()
public void previousView()
public void nextView()
public Integral getSelectedIntegral()
public void advanceSubSpectrum(int dir)
public void setSelectedIntegral(double val)
public void scaleYBy(double f)
public void toPeak(int i)
public java.lang.String getSolutionColorHtml()
public Coordinate getClickedCoordinate()
public boolean getPickedCoordinates(Coordinate coord, Coordinate actualCoord)
coord
- actualCoord
- public boolean shiftSpectrum(double dx, double x1)
dx
- NaN to determine from x0, x1x1
- NaN to query for new valuepublic void findX(JDXSpectrum spec, double d)
public void findX2(JDXSpectrum spec, double d, JDXSpectrum spec2, double d2)
public boolean hasCurrentMeasurements(Annotation.AType type)
public AnnotationData getDialog(Annotation.AType type)
public void addDialog(int iSpec, Annotation.AType type, AnnotationData dialog)
public void getPeakListing(Parameters p, java.lang.Boolean tfToggle)
public void checkIntegral(Parameters parameters, java.lang.String value)
public void setIntegrationRatios(java.lang.String value)
value
- public ScaleData getView()
public void closeAllDialogsExcept(Annotation.AType type)
public void removeDialog(AnnotationDialog dialog)
public java.lang.String getPrintJobTitle(boolean isPrinting)
public void linkSpectra(jspecview.common.PanelData.LinkMode mode)
public void doZoomLinked(jspecview.common.GraphSet graphSet, double initX, double finalX, boolean addZoom, boolean checkRange, boolean is1d)
public void clearLinkViews(jspecview.common.GraphSet graphSet)
public void setlinkedXMove(jspecview.common.GraphSet graphSet, double x, boolean isX2)
public void set2DCrossHairsLinked(jspecview.common.GraphSet graphSet, double x, double y, boolean isLocked)
public void dialogsToFront()