Package jspecview.common
Class ViewData
java.lang.Object
jspecview.common.ViewData
Stores information that
GraphSet
needs
to display a view with one or more spectra.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
areYScalesSame
(int i, int j) int
getEndingPointIndex
(int i) in some cases, there is only one scaleData, but there are more than that number of spectra this is no problem -- we just use mod to set this to 0getNewScales
(int iSelected, boolean isXOnly, double y1, double y2) getScale()
int
getStartingPointIndex
(int i) in some cases, there is only one scaleData, but there are more than that number of spectra this is no problem -- we just use mod to set this to 0void
newSpectrum
(Lst<Spectrum> spectra) void
void
scaleSpectrum
(int i, double f) void
setScale
(int i, int xPixels, int yPixels, boolean isInverted) void
setXRangeForSubSpectrum
(Coordinate[] xyCoords)
-
Constructor Details
-
Method Details
-
getScaleData
-
getScale
-
newSpectrum
-
setXRangeForSubSpectrum
-
getStartingPointIndex
public int getStartingPointIndex(int i) in some cases, there is only one scaleData, but there are more than that number of spectra this is no problem -- we just use mod to set this to 0- Parameters:
i
-- Returns:
- starting point data index
-
getEndingPointIndex
public int getEndingPointIndex(int i) in some cases, there is only one scaleData, but there are more than that number of spectra this is no problem -- we just use mod to set this to 0- Parameters:
i
-- Returns:
- ending point data index
-
areYScalesSame
public boolean areYScalesSame(int i, int j) -
setScale
public void setScale(int i, int xPixels, int yPixels, boolean isInverted) -
resetScaleFactors
public void resetScaleFactors() -
scaleSpectrum
public void scaleSpectrum(int i, double f) -
getNewScales
-