public class RateRange extends Object
| Constructor and Description |
|---|
RateRange(float init,
float min,
float max,
boolean isExact)
Constructor using required values.
|
RateRange(RateRange r)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getCurrentRate()
Get the current rate.
|
float |
getMaximumRate()
Get the maximum rate supported by this range.
|
float |
getMinimumRate()
Get the minimum rate supported by this range.
|
boolean |
isExact()
Determine whether or not the source will maintain a constant
speed when using this rate.
|
float |
setCurrentRate(float rate)
Set the current rate.
|
public RateRange(RateRange r)
public RateRange(float init,
float min,
float max,
boolean isExact)
init - The initial value for this rate.min - The minimum value that this rate can take.max - The maximum value that this rate can take.isExact - Set to true if the source rate does not vary when using this
rate range.public float setCurrentRate(float rate)
rate - The new rate.public float getCurrentRate()
public float getMinimumRate()
public float getMaximumRate()
public boolean isExact()
true if the source will maintain a constant speed at this rate.Copyright © 2012 code4tv.com. All Rights Reserved.