public class IntegerParameter extends java.lang.Object implements IParameter, java.awt.event.ActionListener
Constructor and Description |
---|
IntegerParameter(int iValue,
int iMinValue,
int iMaxValue)
Creates an
IntegerParameter object with the specified integer 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.
|
int |
getMaximum()
Returns the maximum integer value that can be represented by this
IntegerParameter object. |
int |
getMinimum()
Returns the minimum integer value that can be represented by this
IntegerParameter object. |
java.util.Vector<java.lang.Double> |
getTimestamps()
Returns the timestamps for which integer values have been defined.
|
int |
getValue()
Returns the integer value that is represented by this
IntegerParameter object. |
int |
getValue(double dTime)
Returns the integer value that is represented by this
IntegerParameter object for the specified point of time. |
void |
setMaximum(int iMaxValue)
Sets the maximum integer value that can be represented by this
IntegerParameter object. |
void |
setMinimum(int iMinValue)
Sets the minimum integer value that can be represented by this
IntegerParameter object. |
void |
setValue(int iValue)
Sets the integer value that should be represented by this
IntegerParameter object. |
void |
setValue(int iValue,
double dTime)
Sets the integer value that should be represented by this
IntegerParameter object for a specified point in time of a video. |
boolean |
setValue(java.lang.String pValue)
Sets the integer value that should be represented by this
IntegerParameter object. |
public IntegerParameter(int iValue, int iMinValue, int iMaxValue)
IntegerParameter
object with the specified integer value and the allowed minimum and maximum value.iValue
- The integer value that should be represented by this IntegerParameter
object.iMinValue
- The minimum integer value that can be represented by this IntegerParameter
object.iMaxValue
- The maximum integer value that can be represented by this IntegerParameter
object.public boolean setValue(java.lang.String pValue)
IntegerParameter
object.
The integer value is representated by a string.setValue
in interface IParameter
pValue
- The string value representing the integer that should be represented by this IntegerParameter
object.public void setValue(int iValue)
IntegerParameter
object.iValue
- The integer value that should be represented by this IntegerParameter
object.public void setValue(int iValue, double dTime)
IntegerParameter
object for a specified point in time of a video.iValue
- The integer value that should be represented by this IntegerParameter
object for a specified point in time of a video.dTime
- The point in time of a video as double.public void setMinimum(int iMinValue)
IntegerParameter
object.iMinValue
- The minimum integer value that can be represented by this IntegerParameter
object.public void setMaximum(int iMaxValue)
IntegerParameter
object.iMaxValue
- The maximum integer value that can be represented by this IntegerParameter
object.public int getValue()
IntegerParameter
object.IntegerParameter
object.public int getValue(double dTime)
IntegerParameter
object for the specified point of time.dTime
- The point in time of a video as double.IntegerParameter
object for the specified point of time.public java.util.Vector<java.lang.Double> getTimestamps()
public int getMinimum()
IntegerParameter
object.IntegerParameter
object.public int getMaximum()
IntegerParameter
object.IntegerParameter
object.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The event that triggers this method.