|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.protocol.RateRange
Describes the speed at which data flows.
Constructor Summary | |
RateRange(float init,
float min,
float max,
boolean isExact)
Constructor using required values. |
|
RateRange(RateRange r)
Copy constructor. |
Method Summary | |
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 |
inRange(float rate)
Determine whether or not a particular value is within the range of supported rates. |
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
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.Method Detail |
public float setCurrentRate(float rate)
rate
- The new rate.public float getCurrentRate()
public float getMinimumRate()
public float getMaximumRate()
public boolean inRange(float rate)
The
- rate to test.true
if the specified rate is supported.public boolean isExact()
true
if the source will maintain a constant speed at this rate.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |