|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.dtv.ui.Capabilities
public class Capabilities
Describes the capabilities of a plane. Every plane object (i.e. an instance
of a class subclassing the Plane
class) has an associated
instance of this class. This instance can be retrieved using the Plane.getCapabilities()
method.
Method Summary | |
---|---|
int |
getBitsPerPixel()
Indicates how many bits are used for coding of the pixels if images are rendered on the plane associated with this instance of Capabilities . |
int |
getColorCodingModel()
Indicate the color coding model used by the plane associated with this instance of Capabilities . |
Dimension[] |
getSupportedPixelAspectRatios()
Provide all pixel aspect ratios supported by the plane associated with this instance of Capabilities . |
Dimension[] |
getSupportedPlaneAspectRatios()
Provide all plane aspect ratios supported by the plane associated with this instance of Capabilities . |
Dimension[] |
getSupportedScreenResolutions()
Provide all screen sizes supported by the plane associated with this instance of Capabilities . |
boolean |
isAlphaBlendingSupported()
Indicate whether alpha blending is supported by the plane associated with this instance of Capabilities . |
boolean |
isGIFRenderingSupported()
Indicate whether the rendering of GIF images is supported for the plane associated with this instance of Capabilities . |
boolean |
isGraphicsRenderingSupported()
Indicate whether graphics rendering is supported by the plane associated with this instance of Capabilities . |
boolean |
isImageRenderingSupported()
Indicate whether the rendering of images is supported for the plane associated with this instance of Capabilities . |
boolean |
isJPEGRenderingSupported()
Indicate whether the rendering of JPEG images is supported for the plane associated with this instance of Capabilities . |
boolean |
isPNGRenderingSupported()
Indicate whether the rendering of PNG images is supported for the plane associated with this instance of Capabilities . |
boolean |
isRealAlphaBlendingSupported()
Indicate whether real alpha blending is supported by the plane associated with this instance of Capabilities . |
boolean |
isVideoRenderingSupported()
Indicate whether the rendering of videos is supported for the plane associated with this instance of Capabilities . |
boolean |
isWidgetRenderingSupported()
Indicate whether widget rendering is supported by the plane associated with this instance of Capabilities . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Dimension[] getSupportedScreenResolutions()
Capabilities
.
public Dimension[] getSupportedPlaneAspectRatios()
Capabilities
.
public Dimension[] getSupportedPixelAspectRatios()
Capabilities
.
public boolean isAlphaBlendingSupported()
Capabilities
.
The return value is also true if the setup does not support real
(hardware supported) alpha blending, but uses a so-called switching
plane. This switching plane, offered by some implementations in order
to spare hardware-supported alpha blending for video planes, is an
additional plane with one bit per pixel, just indicating for every
pixel whether this plane or the underlying plane should be visible.
To indicate whether real (hardware supported) alpha blending is
available, the isRealAlphaBlendingSupported()
method has to be called.
isRealAlphaBlendingSupported()
public boolean isRealAlphaBlendingSupported()
Capabilities
.
The return value is only true if the plane supports real
(hardware supported) alpha blending. If alpha blending is just
simulated by use of a so-called switching plane, the return value is
false.
isAlphaBlendingSupported()
public boolean isImageRenderingSupported()
Capabilities
.
The return value could be true
for setups suitable for
graphics or video still planes, but false
for a setup
suitable for a subtitle plane.
true
if image rendering is supported,
false
otherwisepublic boolean isJPEGRenderingSupported()
Capabilities
.
The return value can only be true
if the return value of
isImageRenderingSupported()
, called
for the same object, is also true
.
true
if JPEG image rendering is supported,
false
otherwisepublic boolean isPNGRenderingSupported()
Capabilities
.
The return value can only be true
if the return value of
isImageRenderingSupported()
, called
for the same object, is also true
.
true
if PNG image rendering is supported,
false
otherwisepublic boolean isGIFRenderingSupported()
Capabilities
.
The return value can only be true
if the return value of
isImageRenderingSupported()
, called
for the same object, is also true
.
true
if GIF image rendering is supported,
false
otherwisepublic boolean isVideoRenderingSupported()
Capabilities
.
The return value could be true
for setups suitable for
video planes, but false
for a setup suitable for a background
plane.
true
if video rendering is supported,
false
otherwisepublic int getBitsPerPixel() throws SetupException
Capabilities
.
The call to this method makes only sense if image rendering is supported
by this kind of plane, i.e. if the return value of isImageRenderingSupported()
is
true
for this Capabilities
object,
otherwise an exception is thrown.
SetupException
- if this method is called for an
Capabilities
object for which isImageRenderingSupported()
returns
false
public int getColorCodingModel() throws SetupException
Capabilities
. The return value is
implementation dependent. Implementations are advised to define an
enumeration containing values for all possible supported color coding
models (e.g. YUV444, YUV422, YUV420, ARGB888 etc.)
The call to this method makes only sense if at least one of the following
methods, called for the same Capabilities
object,
returns true
:
.
Otherwise an exception is thrown.
SetupException
- if this method is called for a
Capabilities
object, for which all methods
mentioned above return false
public boolean isWidgetRenderingSupported()
Capabilities
. A plane,
for which a DTVContainer
will be requested by
calling one of the DTVContainer.getDTVContainer(com.sun.dtv.ui.Plane)
methods, must be associated with a Capabilities
object for which this or the isGraphicsRenderingSupported()
method returns
true
.
true
if widget rendering is supported,
false
otherwisepublic boolean isGraphicsRenderingSupported()
Capabilities
. A plane,
for which a DTVContainer
will be requested by
calling one of the DTVContainer.getDTVContainer(com.sun.dtv.ui.Plane)
methods, must be associated with a Capabilities
object for which this or the isWidgetRenderingSupported()
method returns
true
.
true
if graphics rendering is supported,
false
otherwise
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |