|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The FormatControl
interfaces is implemented by objects which
supports format setting.
Method Summary | |
Format |
getFormat()
Obtain the format that this object is set to. |
Format[] |
getSupportedFormats()
Lists the possible input formats supported by this plug-in. |
boolean |
isEnabled()
Return the state of the track. |
void |
setEnabled(boolean enabled)
Enable or disable the track. |
Format |
setFormat(Format format)
Sets the data format. |
Methods inherited from interface javax.media.Control |
getControlComponent |
Method Detail |
public Format getFormat()
public Format setFormat(Format format)
However in some situations, returning a non-null format does not necessarily mean that the format is supported since determining the supported formats may be state dependent or simply too costly. In such cases, the setFormat call will succeed but the object may fail in another state-transition operation such as when the object is being initialized.
Alternatively, the getSupportedFormats method can be used to query for the list of supported formats. The resulting list can be used to screen for the valid formats before setting that on the object.
public Format[] getSupportedFormats()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true if the track is to be enabled.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |