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
.boolean
isValid()
Returnstrue
if the value is between the minimum and the maximum,false
otherwise.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()Returnstrue
if the value is between the minimum and the maximum,false
otherwise.- Returns:
true
if the value is between the minimum and the maximum,false
otherwise.
-