public class HBackgroundConfiguration extends HScreenConfiguration
HBackgroundConfiguration
class describes the characteristics
(settings) of an HBackgroundDevice.
There can be many HBackgroundConfiguration
objects associated with a single HBackgroundDevice . The basic background configuration supports backgrounds of a single color. More sophisticated backgrounds can be supported by defining new classes inheriting from this class. Where a device has a single non- changeable background color, this class will provide applications the ability to read that color however all attempts to reserve control of the background will fail.
| Parameter | Description | Default value | Set method | Get method |
|---|---|---|---|---|
| None. | ||||
| Description | Default value | Set method | Get method |
|---|---|---|---|
| None. | |||
HBackgroundDevice| Modifier | Constructor and Description |
|---|---|
protected |
HBackgroundConfiguration()
An interoperable application shall not subclass the
HBackgroundConfiguration class.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor()
Obtain the current color of this background.
|
HBackgroundConfigTemplate |
getConfigTemplate()
Returns an
HBackgroundConfigTemplate
object that describes and uniquely
identifies this HBackgroundConfiguration. |
HBackgroundDevice |
getDevice()
Returns the
HBackgroundDevice
associated with this HBackgroundConfiguration. |
void |
setColor(Color color)
Set the current color of this background.
|
convertTo, getFlickerFilter, getInterlaced, getOffset, getPixelAspectRatio, getPixelResolution, getScreenAreaprotected HBackgroundConfiguration()
Creates an HBackgroundConfiguration
object. See the class description for
details of constructor parameters and default values.
public HBackgroundDevice getDevice()
HBackgroundDevice
associated with this HBackgroundConfiguration.HBackgroundDevice object that is associated with this HBackgroundConfiguration.public HBackgroundConfigTemplate getConfigTemplate()
HBackgroundConfigTemplate
object that describes and uniquely
identifies this HBackgroundConfiguration.
Hence, the following sequence
should return the original HBackgroundConfiguration
HBackgroundDevice.getBestMatch(HBackgroundConfiguration.getConfigTemplate())
Features that are implemented in the HBackgroundConfiguration
will return HScreenConfigTemplate.REQUIRED
priority. Features that are not implemented in the HBackgroundConfiguration
will return HScreenConfigTemplate.REQUIRED_NOT
priority. Preferences that are not filled in by
the platform will return HScreenConfigTemplate.DONT_CARE priority.
HBackgroundConfigTemplate
object which both describes and
uniquely identifies this HBackgroundConfiguration.public Color getColor()
setColor(java.awt.Color)
since platforms may offer a reduced color space for
backgrounds and the actual value used will be returned.public void setColor(Color color) throws HPermissionDeniedException, HConfigurationException
getColor() method
will return the actual value used.color - the color to be used for the backgroundHPermissionDeniedException - if the application has
not currently reserved the HBackgroundDevice associated with
this configuration or this configuration is not the current
configuration of that HBackgroundDevice.HConfigurationException - if the color specified is illegal
for this platform.Copyright © 2012 code4tv.com. All Rights Reserved.