public class DoubleParameter extends java.lang.Object implements IParameter, java.awt.event.ActionListener
Constructor and Description |
---|
DoubleParameter(double dValue,
double dMinValue,
double dMaxValue)
Creates a
DoubleParameter object with the specified double value and the allowed minimum and maximum value. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Not used at the moment.
|
double |
getMaximum()
Returns the maximum double value that can be represented by this
DoubleParameter object. |
double |
getMinimum()
Returns the minimum double value that can be represented by this
DoubleParameter object. |
double |
getValue()
Returns the double value that is represented by this
DoubleParameter object. |
double |
getValue(double dTime)
Returns the double value that is represented by this
DoubleParameter object for the specified point of time. |
void |
setMaximum(double dMaxValue)
Sets the maximum double value that can be represented by this
DoubleParameter object. |
void |
setMinimum(double dMinValue)
Sets the minimum double value that can be represented by this
DoubleParameter object. |
void |
setValue(double dValue)
Sets the double value that should be represented by this
DoubleParameter object. |
void |
setValue(double dValue,
double dTime)
Sets the double value that should be represented by this
DoubleParameter object for a specified point in time of a video. |
boolean |
setValue(java.lang.String pValue)
Sets the double value that should be represented by this
DoubleParameter object. |
public DoubleParameter(double dValue, double dMinValue, double dMaxValue)
DoubleParameter
object with the specified double value and the allowed minimum and maximum value.dValue
- The double value that should be represented by this DoubleParameter
object.dMinValue
- The minimum double value that can be represented by this DoubleParameter
object.dMaxValue
- The maximum double value that can be represented by this DoubleParameter
object.public boolean setValue(java.lang.String pValue)
DoubleParameter
object.
The double value is representated by a string.setValue
in interface IParameter
pValue
- The string value representing the double that should be represented by this DoubleParameter
object.public void setValue(double dValue)
DoubleParameter
object.dValue
- The double value that should be represented by this DoubleParameter
object.public void setValue(double dValue, double dTime)
DoubleParameter
object for a specified point in time of a video.dValue
- The double value that should be represented by this DoubleParameter
object for a specified point in time of a video.dTime
- The point in time of a video as double.public void setMinimum(double dMinValue)
DoubleParameter
object.dMinValue
- The minimum double value that can be represented by this DoubleParameter
object.public void setMaximum(double dMaxValue)
DoubleParameter
object.dMaxValue
- The maximum double value that can be represented by this DoubleParameter
object.public double getValue()
DoubleParameter
object.DoubleParameter
object.public double getValue(double dTime)
DoubleParameter
object for the specified point of time.dTime
- The point in time of a video as double.DoubleParameter
object for the specified point of time.public double getMinimum()
DoubleParameter
object.DoubleParameter
object.public double getMaximum()
DoubleParameter
object.DoubleParameter
object.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- event that triggers this method.