Package org.graffiti.plugin.parameter
Interface LimitableParameter
- All Superinterfaces:
Displayable,Parameter,SingleParameter
- All Known Implementing Classes:
AbstractLimitableParameter,DoubleParameter,FloatParameter,IntegerParameter,LandmarkParameter
public interface LimitableParameter extends SingleParameter
The value of a
LimitableParameter can be limited by giving
maximum and minimum values.- Version:
- $Revision: 1.5 $
-
Method Summary
Modifier and Type Method Description Comparable<?>getMax()Returns the maximum value for thisLimitableParameter.Comparable<?>getMin()Returns the minimum value for thisLimitableParameter.booleanisValid()Returnstrueif the value is between the minimum and the maximum,falseotherwise.Methods inherited from interface org.graffiti.plugin.Displayable
getDescription, getIcon, getName, getValue, setDescription, setValue, toXMLString
-
Method Details
-
getMax
Comparable<?> getMax()Returns the maximum value for thisLimitableParameter.- Returns:
- the maximum value for this
LimitableParameter.
-
getMin
Comparable<?> getMin()Returns the minimum value for thisLimitableParameter.- Returns:
- the minimum value for this
LimitableParameter.
-
isValid
boolean isValid()Returnstrueif the value is between the minimum and the maximum,falseotherwise.- Returns:
trueif the value is between the minimum and the maximum,falseotherwise.
-