|
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.DTVContainerPattern
public class DTVContainerPattern
The DTVContainerPattern
is a means
to describe the characteristics of a valid DTVContainer
. After instantiation of this class an application can set all
attributes as desired, while setting the DTV_CONTAINER_LOCATION
and DTV_CONTAINER_DIMENSION
is mandatory. The created DTVContainerPattern
object can then be
used as an argument to the DTVContainer.getBestDTVContainer(com.sun.dtv.ui.DTVContainerPattern)
method in order to create a DTVContainer
object that meets or exceeds what was requested in the DTVContainerPattern
.
Field Summary | |
---|---|
static int |
DTV_CONTAINER_DIMENSION
A preference value for use in the setPreference , getPreferenceValue
and getPriority
methods in the DTVContainerPattern . |
static int |
DTV_CONTAINER_LOCATION
A preference value for use in the setPreference , getPreferenceValue
and getPriority
methods in the DTVContainerPattern . |
static int |
DTV_CONTAINER_PLANE_SETUP
A preference value for use in the setPreference , getPreferenceValue
and getPriority
methods in the DTVContainerPattern . |
Constructor Summary | |
---|---|
DTVContainerPattern()
|
Method Summary | |
---|---|
Object |
getPreferenceValue(int preference)
Returns the preference value for the specified preference. |
int |
getPriority(int preference)
Returns the preference priority for the specified preference. |
void |
setPreference(int preference,
Object value,
int priority)
Sets the indicated preference to have the specified value with the specified priority. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DTV_CONTAINER_PLANE_SETUP
setPreference
, getPreferenceValue
and getPriority
methods in the DTVContainerPattern
. It indicates that the DTVContainer has to be created
using the specified PlaneSetup
.
public static final int DTV_CONTAINER_DIMENSION
setPreference
, getPreferenceValue
and getPriority
methods in the DTVContainerPattern
. It indicates that the DTVContainer has the preferred
dimension in pixels as specified in the provided Dimension object.
Setting this preference field in an existing DTVContainerPattern
is mandatory.
public static final int DTV_CONTAINER_LOCATION
setPreference
, getPreferenceValue
and getPriority
methods in the DTVContainerPattern
. It indicates that the DTVContainer has the preferred
location in pixels as specified in the provided Point object.
Setting this preference field in an existing DTVContainerPattern
is mandatory.
Constructor Detail |
---|
public DTVContainerPattern()
Method Detail |
---|
public void setPreference(int preference, Object value, int priority) throws IllegalArgumentException
preference
- the preference to to be indicated. Valid values are
DTV_CONTAINER_GRAPHICS_SETUP
, DTV_CONTAINER_DIMENSION
, and DTV_CONTAINER_LOCATION
.value
- the value to be set for the indicated preferencepriority
- the priority of the indicated preference. Valid values are:
REQUIRED
, PREFERRED
, and DONT_CARE
IllegalArgumentException
- if any of the parameters has an
unappropriate valuepublic Object getPreferenceValue(int preference) throws IllegalArgumentException
preference
- the preference for which the value should be retrieved.
Valid values are
DTV_CONTAINER_PLANE_SETUP
, DTV_CONTAINER_DIMENSION
, and DTV_CONTAINER_LOCATION
.
PlaneSetup
object for DTV_CONTAINER_PLANE_SETUP
, and a Dimension
for DTV_CONTAINER_DIMENSION
or DTV_CONTAINER_LOCATION
IllegalArgumentException
- if the paramter has an unappropriate
valuepublic int getPriority(int preference) throws IllegalArgumentException
preference
- the preference for which the value should be retrieved.
Valid values are
DTV_CONTAINER_GRAPHICS_SETUP
, DTV_CONTAINER_DIMENSION
, and DTV_CONTAINER_LOCATION
.
REQUIRED
, PREFERRED
, and DONT_CARE
IllegalArgumentException
- if the paramter has an unappropriate
value
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |