Package adams.data.spectrumimage
Class Intensity
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.spectrumimage.AbstractSpectrumImageGenerator
-
- adams.data.spectrumimage.AbstractSpectrumImageGeneratorWithRange
-
- adams.data.spectrumimage.Intensity
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
public class Intensity extends AbstractSpectrumImageGeneratorWithRange
Generates a simple intensity image.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_Height
the image height to generate.protected int
m_Width
the image width to generate.-
Fields inherited from class adams.data.spectrumimage.AbstractSpectrumImageGeneratorWithRange
m_MaxAmplitude, m_MinAmplitude
-
Fields inherited from class adams.data.spectrumimage.AbstractSpectrumImageGenerator
m_ImageType
-
-
Constructor Summary
Constructors Constructor Description Intensity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected BufferedImage
doGenerate(Spectrum spectrum)
Converts the spectrum into an image.int
getHeight()
Returns the height of the image.int
getWidth()
Returns the width of the image.String
globalInfo()
Returns a string describing the object.String
heightTipText()
Returns the tip text for this property.void
setHeight(int value)
Sets the height of the image.void
setWidth(int value)
Sets the width of the image.String
widthTipText()
Returns the tip text for this property.-
Methods inherited from class adams.data.spectrumimage.AbstractSpectrumImageGeneratorWithRange
check, getDefaultMaxAmplitude, getDefaultMinAmplitude, getLowerMaxAmplitude, getLowerMinAmplitude, getMaxAmplitude, getMinAmplitude, getUpperMaxAmplitude, getUpperMinAmplitude, maxAmplitudeTipText, minAmplitudeTipText, rangeCheck, setMaxAmplitude, setMinAmplitude
-
Methods inherited from class adams.data.spectrumimage.AbstractSpectrumImageGenerator
generate, getImageType, imageTypeTipText, newImage, setImageType, setPixel
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractSpectrumImageGeneratorWithRange
-
setWidth
public void setWidth(int value)
Sets the width of the image.- Parameters:
value
- the width, -1 for auto-calculation
-
getWidth
public int getWidth()
Returns the width of the image.- Returns:
- the width, -1 if auto-calculation
-
widthTipText
public String widthTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setHeight
public void setHeight(int value)
Sets the height of the image.- Parameters:
value
- the height, -1 for auto-calculation
-
getHeight
public int getHeight()
Returns the height of the image.- Returns:
- the height, -1 if auto-calculation
-
heightTipText
public String heightTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doGenerate
protected BufferedImage doGenerate(Spectrum spectrum)
Converts the spectrum into an image.- Specified by:
doGenerate
in classAbstractSpectrumImageGenerator
- Parameters:
spectrum
- the spectrum to convert- Returns:
- the generated image
-
-