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 TypeMethodDescriptionbooleanareYScalesSame(int i, int j) intgetEndingPointIndex(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()intgetStartingPointIndex(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 0voidnewSpectrum(Lst<Spectrum> spectra) voidvoidscaleSpectrum(int i, double f) voidsetScale(int i, int xPixels, int yPixels, boolean isInverted) voidsetXRangeForSubSpectrum(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
-