Package gda.rcp.mx.ui.forms
Class DoseExposureViewModel
java.lang.Object
uk.ac.gda.beans.ObservableModel
gda.rcp.mx.ui.forms.DoseExposureViewModel
public class DoseExposureViewModel
extends uk.ac.gda.beans.ObservableModel
-
Constructor Summary
ConstructorsConstructorDescriptionDoseExposureViewModel(DataCollectionModel dataCollectionModel, boolean showDoseField) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetDose()Gets the current dose value.booleanGets the current dose tooltip.Gets the current exposure time value.booleanGets the current exposure time tooltip.Gets the current first image number value.Gets the current first image number tooltip.Gets the current number of images value.Gets the current number of images tooltip.Gets the current total exposure time value.booleanGets the current total exposure time tooltip.booleanbooleanbooleanvoidSets the dose value.voidsetDoseEnabled(boolean newSetting) Sets if the dose text is enabled.voidsetDoseTooltip(String newDoseTooltip) Sets the dose tooltip.voidsetExposureTime(String newExposureTime) Sets the exposure time value.voidsetExposureTimeEnabled(boolean newSetting) Sets if the exposure time text is enabled.voidsetExposureTimeTooltip(String newExposureTimeTooltip) Sets the exposure time tooltip.voidsetFirstImageNumber(String newFirstImageNumber) Sets the first image number value.voidsetFirstImageNumberTooltip(String newFirstImageNumberTooltip) Sets the first image number tooltip.voidsetNumberOfImages(String newNumberOfImages) Sets the number of images value.voidsetNumberOfImagesTooltip(String newNumberOfImagesTooltip) Sets the number of images tooltip.voidsetTotalExposureTime(String newTotalExposureTime) Sets the total exposure time value.voidsetTotalExposureTimeEnabled(boolean newSetting) Sets if the total exposure time text is enabled.voidsetTotalExposureTimeTooltip(String newTotalExposureTimeTooltip) Sets the total exposure time tooltip.voidsetUseTargetDoseByResolution(boolean newSetting) voidsetUseTargetDoseView(boolean newSetting) Sets if the target dose view is enabled.voidsetUseTargetExposureView(boolean newSetting) Sets if the target exposure view is enabled.Methods inherited from class uk.ac.gda.beans.ObservableModel
addPropertyChangeListener, addPropertyChangeListener, clearListeners, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
DoseExposureViewModel
Constructor. Creates a new instance of the DoseExposureViewModel object.- Parameters:
dataCollectionModel- the DataCollectionModel containing the row of the data collection table
-
-
Method Details
-
setNumberOfImages
Sets the number of images value.- Parameters:
newNumberOfImages- the new numImagesValue.
-
setExposureTime
Sets the exposure time value.- Parameters:
newExposureTime- the new exposureTimeValue.
-
setTotalExposureTime
Sets the total exposure time value.- Parameters:
newTotalExposureTime- the new totalExposureTimeValue.
-
setDose
Sets the dose value.- Parameters:
newDose- the new doseValue.
-
setFirstImageNumber
Sets the first image number value.- Parameters:
newFirstImageNumber- the new firstImageNumberValue.
-
setNumberOfImagesTooltip
Sets the number of images tooltip.- Parameters:
newNumberOfImagesTooltip- the new numImagesTooltip.
-
setExposureTimeTooltip
Sets the exposure time tooltip.- Parameters:
newExposureTimeTooltip- the new exposureTimeTooltip.
-
setTotalExposureTimeTooltip
Sets the total exposure time tooltip.- Parameters:
newTotalExposureTimeTooltip- the new totalExposureTimeTooltip.
-
setDoseTooltip
Sets the dose tooltip.- Parameters:
newDoseTooltip- the new doseTooltip.
-
setFirstImageNumberTooltip
Sets the first image number tooltip.- Parameters:
newFirstImageNumberTooltip- the new firstImageNumberTooltip.
-
setUseTargetDoseView
public void setUseTargetDoseView(boolean newSetting) Sets if the target dose view is enabled.- Parameters:
newSetting- whether the target dose view is enabled
-
setUseTargetExposureView
public void setUseTargetExposureView(boolean newSetting) Sets if the target exposure view is enabled.- Parameters:
newSetting- whether the target exposure view is enabled
-
setUseTargetDoseByResolution
public void setUseTargetDoseByResolution(boolean newSetting) -
setDoseEnabled
public void setDoseEnabled(boolean newSetting) Sets if the dose text is enabled.- Parameters:
newSetting- whether the dose text is enabled
-
setExposureTimeEnabled
public void setExposureTimeEnabled(boolean newSetting) Sets if the exposure time text is enabled.- Parameters:
newSetting- whether the exposure time text is enabled
-
setTotalExposureTimeEnabled
public void setTotalExposureTimeEnabled(boolean newSetting) Sets if the total exposure time text is enabled.- Parameters:
newSetting- whether the total exposure time text is enabled
-
getNumberOfImages
Gets the current number of images value. -
getExposureTime
Gets the current exposure time value. -
getTotalExposureTime
Gets the current total exposure time value. -
getDose
Gets the current dose value. -
getFirstImageNumber
Gets the current first image number value. -
getNumberOfImagesTooltip
Gets the current number of images tooltip. -
getExposureTimeTooltip
Gets the current exposure time tooltip. -
getTotalExposureTimeTooltip
Gets the current total exposure time tooltip. -
getDoseTooltip
Gets the current dose tooltip. -
getFirstImageNumberTooltip
Gets the current first image number tooltip. -
getUseTargetDoseView
public boolean getUseTargetDoseView()- Returns:
- whether the target dose view is enabled
-
getUseTargetExposureView
public boolean getUseTargetExposureView()- Returns:
- whether the target exposure view is enabled
-
getUseTargetDoseByResolution
public boolean getUseTargetDoseByResolution()- Returns:
- whether the target resolution is used
-
getDoseEnabled
public boolean getDoseEnabled()- Returns:
- whether the dose text is enabled
-
getExposureTimeEnabled
public boolean getExposureTimeEnabled()- Returns:
- whether the exposure time text is enabled
-
getTotalExposureTimeEnabled
public boolean getTotalExposureTimeEnabled()- Returns:
- whether the total exposure time text is enabled
-