public class LabAbsorptionControl extends java.lang.Object implements ModelListener, ISpectrumComputation, java.awt.event.ActionListener, Deletable
| Constructor and Description |
|---|
LabAbsorptionControl(LabAbsorptionModel cometModel,
LabAbsorptionPanel labAbsorptionPanel) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
computeAbsorptionSpectrum()
Compute the spectrum with the Comet Model
|
void |
dataChanged(ModelChangedEvent event) |
void |
delete()
Do actions to delete the object (mostly listeners removing).
|
void |
display() |
CassisTableDisplayListenerList |
getListeners() |
LabAbsorptionModel |
getModel() |
CommentedSpectrum |
getResult() |
LabAbsorptionPanel |
getView() |
void |
invokeSpectrumComputation() |
void |
loadConfig(java.io.File selectedFile) |
void |
loadConfigButtonClicked(java.awt.event.MouseEvent e) |
void |
onDisplayButton()
on display button clicked handle
|
void |
setModel(LabAbsorptionModel newLabAbsorptionModel)
Set a new model.
|
public LabAbsorptionControl(LabAbsorptionModel cometModel, LabAbsorptionPanel labAbsorptionPanel)
public LabAbsorptionModel getModel()
public CassisTableDisplayListenerList getListeners()
public LabAbsorptionPanel getView()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void onDisplayButton()
public void computeAbsorptionSpectrum()
public void invokeSpectrumComputation()
invokeSpectrumComputation in interface ISpectrumComputationpublic CommentedSpectrum getResult()
public void loadConfig(java.io.File selectedFile)
selectedFile - public void dataChanged(ModelChangedEvent event)
dataChanged in interface ModelListenerpublic void display()
display in interface ISpectrumComputationpublic void setModel(LabAbsorptionModel newLabAbsorptionModel)
newLabAbsorptionModel - The new LabAbsorptionModel to use.public void loadConfigButtonClicked(java.awt.event.MouseEvent e)