public interface JoggleModel
Joggle
this model keeps a value depending on
the current rotationAngle of the joggle. To convert a model's value to
a rotationAngle, a joggle calls getTransmissionRatio()
.Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener l) |
double |
getMaximum()
Return the upper limit of the represented value sequence.
|
double |
getMinimum()
Return the lower limit of the represented value sequence.
|
double |
getTransmissionRatio()
Return the ratio converting the rotationAngle of a Joggle
to the value in this Model.
|
double |
getValue()
Returns the current value.
|
void |
removeChangeListener(ChangeListener l) |
void |
setMaximum(double newMax)
Set the upper limit of the represented value sequence.
|
void |
setMinimum(double newMin)
Set the lower limit of the represented value sequence.
|
void |
setValue(double value)
Set a new value contained in the value sequence.
|
void addChangeListener(ChangeListener l)
double getMaximum()
double getMinimum()
double getTransmissionRatio()
rotationAngle
of the Joggle multiplied with the transmission ratio.double getValue()
getTransmissionRatio()
,
Joggle.getRotationAngle()
void removeChangeListener(ChangeListener l)
void setMaximum(double newMax)
newMax
- a new upper limit.void setMinimum(double newMin)
newMin
- a new lower limit.void setValue(double value)
value
- the value to be set.