Package qupath.lib.plugins.parameters
Class DoubleParameter
java.lang.Object
qupath.lib.plugins.parameters.NumericParameter<Double>
qupath.lib.plugins.parameters.DoubleParameter
- All Implemented Interfaces:
- Serializable,- Parameter<Double>
Parameter to represent a floating point numeric value.
 
May be bounded.
- See Also:
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionCreate a new Parameter with the same text and value.Get a default value to use if the Parameter has not been otherwise set.Get a description of the meaning of the Parameter; may be displayed e.g.Get some prompt text that may be displayed to a user.getValue()Get the current set value (may be null).Get the current set value, or any default if no value has been set.booleanQuery whether getHelpText() returns a meaningful String (as opposed to null).booleanisHidden()Test is the 'hidden' flag is set for the parameter.voidSet last value to null (so default can be used).booleansetDoubleLastValue(double val) A class for setting the numeric value as a double (subclasses should convert this as needed).voidsetHidden(boolean hidden) Mark that a parameter should not be displayed to a user.booleanSet the last value; this will apply a range check using clipping.booleansetValueWithBoundsCheck(Double lastValue) Set the value of this parameter, constraining it to be within any lower and upper bounds if necessary.toString()Methods inherited from class qupath.lib.plugins.parameters.NumericParametergetLowerBound, getUnit, getUpperBound, hasLowerAndUpperBounds, hasLowerBound, hasUpperBound, isUnbounded, isValidInput, setRange, setStringLastValue
- 
Field Details- 
lastValue
 
- 
- 
Method Details- 
setValueSet the last value; this will apply a range check using clipping.
- 
setValueWithBoundsCheckDescription copied from class:NumericParameterSet the value of this parameter, constraining it to be within any lower and upper bounds if necessary.- Specified by:
- setValueWithBoundsCheckin class- NumericParameter<Double>
- Parameters:
- lastValue-
- Returns:
 
- 
setDoubleLastValuepublic boolean setDoubleLastValue(double val) Description copied from class:NumericParameterA class for setting the numeric value as a double (subclasses should convert this as needed).- Specified by:
- setDoubleLastValuein class- NumericParameter<Double>
- Parameters:
- val-
- Returns:
 
- 
duplicateDescription copied from interface:ParameterCreate a new Parameter with the same text and value.- Returns:
 
- 
setHiddenpublic void setHidden(boolean hidden) Description copied from interface:ParameterMark that a parameter should not be displayed to a user. This is useful, for example, if a parameter list changes the parameters to be displayed depending upon the image available or current settings, e.g. using different parameters when the pixel size is known in microns.
- 
isHiddenpublic boolean isHidden()Description copied from interface:ParameterTest is the 'hidden' flag is set for the parameter.
- 
getDefaultValueDescription copied from interface:ParameterGet a default value to use if the Parameter has not been otherwise set.- Specified by:
- getDefaultValuein interface- Parameter<S>
- Returns:
 
- 
getValueDescription copied from interface:ParameterGet the current set value (may be null).
- 
resetValuepublic void resetValue()Description copied from interface:ParameterSet last value to null (so default can be used).- Specified by:
- resetValuein interface- Parameter<S>
 
- 
getValueOrDefaultDescription copied from interface:ParameterGet the current set value, or any default if no value has been set.- Specified by:
- getValueOrDefaultin interface- Parameter<S>
- Returns:
- See Also:
 
- 
getPromptDescription copied from interface:ParameterGet some prompt text that may be displayed to a user.
- 
toString
- 
hasHelpTextpublic boolean hasHelpText()Description copied from interface:ParameterQuery whether getHelpText() returns a meaningful String (as opposed to null).- Specified by:
- hasHelpTextin interface- Parameter<S>
- Returns:
 
- 
getHelpTextDescription copied from interface:ParameterGet a description of the meaning of the Parameter; may be displayed e.g. as a tooltip.- Specified by:
- getHelpTextin interface- Parameter<S>
- Returns:
 
 
-