public abstract class HEmulatedGraphicsDevice extends HGraphicsDevice
HEmulatedGraphicsDevice is a "virtual" graphics device
that has the capability to be configured to perform one (of many)
possible emulations. For example, in the DVB context a 4:3
television might have an HEmulatedGraphicsDevice that had an HEmulatedGraphicsConfiguration that emulated a virtual 14:9
display. The 14:9 HEmulatedGraphicsConfiguration would be used for rendering into
from AWT, whilst being displayed on the "true" 4:3
physical display. The relationship between the emulation and
implementation is encapsulated within the HEmulatedGraphicsConfiguration.
An HEmulatedGraphicsDevice transforms both AWT pixel-oriented drawing
operations and AWT user-input event coordinates, this is performed
outside of the Java application (typically in hardware).
An HEmulatedGraphicsDevice may (of necessity) modify coordinates for
Components and/or events to the nearest physical / virtual pixel
--- authors should not depend on single pixel accuracy.
There is no difference to a Java application between an HGraphicsDevice and an HEmulatedGraphicsDevice,
except for the implication of possible rounding errors in integer
pixel positions, e.g. Component placement and/or resolution of
events.
Java2D mechanisms should behave as per their normal semantics, with respect to display on-screen.
| Modifier | Constructor and Description |
|---|---|
protected |
HEmulatedGraphicsDevice()
It is not intended that applications should directly construct
HEmulatedGraphicsDevice objects. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
setGraphicsConfiguration(HEmulatedGraphicsConfiguration hegc)
Set the graphics configuration for the device.
|
getBestConfiguration, getBestConfiguration, getConfigurations, getCurrentConfiguration, getDefaultConfiguration, setGraphicsConfigurationaddResourceStatusEventListener, addScreenConfigurationListener, addScreenConfigurationListener, getClient, getIDstring, getScreenAspectRatio, releaseDevice, removeResourceStatusEventListener, removeScreenConfigurationListener, reserveDeviceprotected HEmulatedGraphicsDevice()
HEmulatedGraphicsDevice objects.
Creates an HEmulatedGraphicsDevice object. See the class description for
details of constructor parameters and default values.
public boolean setGraphicsConfiguration(HEmulatedGraphicsConfiguration hegc) throws SecurityException, HPermissionDeniedException, HConfigurationException
hegc - the HEmulatedGraphicsConfiguration to which this device should be
set.SecurityException - if the application does not have
sufficient rights to set the configuration for this device.HPermissionDeniedException - (HPermissionDeniedException) if the application does not
currently have the right to set the configuration for this
device.HConfigurationException - (HConfigurationException)
if the specified configuration is not valid for this device.Copyright © 2012 code4tv.com. All Rights Reserved.