java.awt.GraphicsEnvironment , GraphicsDevice
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| protected int | |
| private BufferCapabilities | |
| pack-priv int | |
| pack-priv ColorModel | |
| pack-priv int | |
| private final X11GraphicsDevice | |
| private Object | |
| pack-priv boolean | |
| private static ImageCapabilities | |
| public RenderLoops | |
| protected SurfaceType | |
| protected int |
| Access | Constructor and Description |
|---|---|
| protected | X11GraphicsConfig(X11GraphicsDevice device, int visualnum, int depth, int colormap, boolean doubleBuffer)
|
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentColorModel | |
| public Image | createAcceleratedImage(Component target, int width, int height)
Creates a new hidden-acceleration image of the given width and height that is associated with the target Component. |
| private native long | createBackBuffer(long window, int swapAction)
The following methods correspond to the multibuffering methods in X11ComponentPeer.java... |
| public long | createBackBuffer(X11ComponentPeer peer, int numBuffers, BufferCapabilities caps)
Attempts to create an XDBE-based backbuffer for the given peer. |
| public VolatileImage | createBackBufferImage(Component target, long backBuffer)
Creates a VolatileImage that essentially wraps the target Component's backbuffer, using the provided backbuffer handle. |
| public static DirectColorModel | |
| public SurfaceData | createSurfaceData(X11ComponentPeer peer)
Creates a new SurfaceData that will be associated with the given X11ComponentPeer. |
| public VolatileSurfaceManager | createVolatileManager(SunVolatileImage image, Object context)
Implements sun. Creates a new instance of a VolatileSurfaceManager given a compatible SunVolatileImage. |
| public native void | destroyBackBuffer(long backBuffer)
Destroys the backbuffer object represented by the given handle value. |
| private static native void | |
| public void | flip(X11ComponentPeer peer, Component target, VolatileImage xBackBuffer, int x1, int y1, int x2, int y2, BufferCapabilities.
Performs the native XDBE flip operation for the given target Component. |
| public long | |
| public int | |
| public final Rectangle | getBounds()
Implements abstract java. Returns the bounds of the |
| public BufferCapabilities | getBufferCapabilities()
Overrides java. Returns the buffering capabilities of this
|
| public int | |
| public synchronized ColorModel | getColorModel()
Implements abstract java. Returns the color model associated with this configuration. |
| public ColorModel | getColorModel(int transparency)
Implements abstract java. Returns the color model associated with this configuration that supports the specified transparency. |
| public static X11GraphicsConfig | |
| public static X11GraphicsConfig | |
| public AffineTransform | getDefaultTransform()
Implements abstract java. Returns the default Transform for this configuration. |
| public int | |
| public X11GraphicsDevice | getDevice()
Implements abstract java. Return the graphics device associated with this configuration. |
| public ImageCapabilities | getImageCapabilities()
Overrides java. Returns the image capabilities of this
|
| public AffineTransform | getNormalizingTransform()
Implements abstract java. Returns a Transform that can be composed with the default Transform of a Graphics2D so that 72 units in user space will equal 1 inch in device space. |
| private native int | |
| public int | |
| public synchronized RenderLoops | getSolidLoops(SurfaceType stype)
Return the RenderLoops this type of destination uses for solid fills and strokes. |
| public SurfaceManager. | getSurfaceDataProxyCache()
Implements sun. Return the cache that destination surfaces created on the given GraphicsConfiguration use to store SurfaceDataProxy objects for their cached copies. |
| public synchronized SurfaceType | |
| private static int | getSwapAction(BufferCapabilities.
Maps the given FlipContents constant to the associated XDBE swap action constant. |
| public int | |
| private native double | |
| private native double | |
| private native void | |
| private static native void | |
| public boolean | |
| public boolean | isTranslucencyCapable()
Overrides java. Returns whether this |
| private native boolean | |
| private native ColorModel | |
| public int | |
| public int | |
| private native void | |
| public String |
| aData | back to summary |
|---|---|
| pack-priv long aData | |
| bitsPerPixel | back to summary |
|---|---|
| protected int bitsPerPixel | |
| bufferCaps | back to summary |
|---|---|
| private BufferCapabilities bufferCaps | |
| colormap | back to summary |
|---|---|
| pack-priv int colormap | |
| colorModel | back to summary |
|---|---|
| pack-priv ColorModel colorModel | |
| depth | back to summary |
|---|---|
| pack-priv int depth | |
| device | back to summary |
|---|---|
| private final X11GraphicsDevice device | |
| disposerReferent | back to summary |
|---|---|
| private Object disposerReferent | |
| doubleBuffer | back to summary |
|---|---|
| pack-priv boolean doubleBuffer | |
| imageCaps | back to summary |
|---|---|
| private static ImageCapabilities imageCaps | |
| solidloops | back to summary |
|---|---|
| public RenderLoops solidloops | |
| surfaceType | back to summary |
|---|---|
| protected SurfaceType surfaceType | |
| visual | back to summary |
|---|---|
| protected int visual | |
| X11GraphicsConfig | back to summary |
|---|---|
| protected X11GraphicsConfig(X11GraphicsDevice device, int visualnum, int depth, int colormap, boolean doubleBuffer) | |
| createABGRCCM | back to summary |
|---|---|
| public static ComponentColorModel createABGRCCM() | |
| createAcceleratedImage | back to summary |
|---|---|
| public Image createAcceleratedImage(Component target, int width, int height) Creates a new hidden-acceleration image of the given width and height that is associated with the target Component. | |
| createBackBuffer | back to summary |
|---|---|
| private native long createBackBuffer(long window, int swapAction) The following methods correspond to the multibuffering methods in X11ComponentPeer.java... | |
| createBackBuffer | back to summary |
|---|---|
| public long createBackBuffer(X11ComponentPeer peer, int numBuffers, BufferCapabilities caps) throws AWTException Attempts to create an XDBE-based backbuffer for the given peer. If the requested configuration is not natively supported, an AWTException is thrown. Otherwise, if the backbuffer creation is successful, a handle to the native backbuffer is returned. | |
| createBackBufferImage | back to summary |
|---|---|
| public VolatileImage createBackBufferImage(Component target, long backBuffer) Creates a VolatileImage that essentially wraps the target Component's backbuffer, using the provided backbuffer handle. | |
| createDCM32 | back to summary |
|---|---|
| public static DirectColorModel createDCM32(int rMask, int gMask, int bMask, int aMask, boolean aPre) | |
| createSurfaceData | back to summary |
|---|---|
| public SurfaceData createSurfaceData(X11ComponentPeer peer) Creates a new SurfaceData that will be associated with the given X11ComponentPeer. | |
| createVolatileManager | back to summary |
|---|---|
| public VolatileSurfaceManager createVolatileManager(SunVolatileImage image, Object context) Implements sun. Doc from sun. Creates a new instance of a VolatileSurfaceManager given a compatible SunVolatileImage. An optional context Object can be supplied as a way for the caller to pass pipeline-specific context data to the VolatileSurfaceManager (such as a backbuffer handle, for example).
| |
| destroyBackBuffer | back to summary |
|---|---|
| public native void destroyBackBuffer(long backBuffer) Destroys the backbuffer object represented by the given handle value. | |
| dispose | back to summary |
|---|---|
| private static native void dispose(long x11ConfigData) | |
| flip | back to summary |
|---|---|
| public void flip(X11ComponentPeer peer, Component target, VolatileImage xBackBuffer, int x1, int y1, int x2, int y2, BufferCapabilities. Performs the native XDBE flip operation for the given target Component. | |
| getAData | back to summary |
|---|---|
| public long getAData() | |
| getBitsPerPixel | back to summary |
|---|---|
| public int getBitsPerPixel() Returns a number of bits allocated per pixel (might be different from depth) | |
| getBounds | back to summary |
|---|---|
| public final Rectangle getBounds() Implements abstract java. Doc from java. Returns the bounds of the
| |
| getBufferCapabilities | back to summary |
|---|---|
| public BufferCapabilities getBufferCapabilities() Overrides java. Doc from java. Returns the buffering capabilities of this
| |
| getColormap | back to summary |
|---|---|
| public int getColormap() Returns the colormap associated with this configuration. | |
| getColorModel | back to summary |
|---|---|
| public synchronized ColorModel getColorModel() Implements abstract java. Returns the color model associated with this configuration.
| |
| getColorModel | back to summary |
|---|---|
| public ColorModel getColorModel(int transparency) Implements abstract java. Returns the color model associated with this configuration that supports the specified transparency.
| |
| getConfig | back to summary |
|---|---|
| public static X11GraphicsConfig getConfig(X11GraphicsDevice device, int visualnum, int depth, int colormap, boolean doubleBuffer) | |
| getConfig | back to summary |
|---|---|
| public static X11GraphicsConfig getConfig(X11GraphicsDevice device, int visualnum, int depth, int colormap, int type) | |
| getDefaultTransform | back to summary |
|---|---|
| public AffineTransform getDefaultTransform() Implements abstract java. Returns the default Transform for this configuration. This Transform is typically the Identity transform for most normal screens. Device coordinates for screen and printer devices will have the origin in the upper left-hand corner of the target region of the device, with X coordinates increasing to the right and Y coordinates increasing downwards. For image buffers, this Transform will be the Identity transform.
| |
| getDepth | back to summary |
|---|---|
| public int getDepth() Returns the depth associated with this configuration. | |
| getDevice | back to summary |
|---|---|
| public X11GraphicsDevice getDevice() Implements abstract java. Return the graphics device associated with this configuration.
| |
| getImageCapabilities | back to summary |
|---|---|
| public ImageCapabilities getImageCapabilities() Overrides java. Doc from java. Returns the image capabilities of this
| |
| getNormalizingTransform | back to summary |
|---|---|
| public AffineTransform getNormalizingTransform() Implements abstract java. Returns a Transform that can be composed with the default Transform of a Graphics2D so that 72 units in user space will equal 1 inch in device space. Given a Graphics2D, g, one can reset the transformation to create such a mapping by using the following pseudocode:
GraphicsConfiguration gc = g.getGraphicsConfiguration();
g.setTransform(gc.getDefaultTransform());
g.transform(gc.getNormalizingTransform());
Note that sometimes this Transform will be identity (e.g. for
printers or metafile output) and that this Transform is only
as accurate as the information supplied by the underlying system.
For image buffers, this Transform will be the Identity transform,
since there is no valid distance measurement.
| |
| getNumColors | back to summary |
|---|---|
| private native int getNumColors() | |
| getScale | back to summary |
|---|---|
| public int getScale() | |
| getSolidLoops | back to summary |
|---|---|
| public synchronized RenderLoops getSolidLoops(SurfaceType stype) Return the RenderLoops this type of destination uses for solid fills and strokes. | |
| getSurfaceDataProxyCache | back to summary |
|---|---|
| public SurfaceManager. Implements sun. Doc from sun. Return the cache that destination surfaces created on the given GraphicsConfiguration use to store SurfaceDataProxy objects for their cached copies.
| |
| getSurfaceType | back to summary |
|---|---|
| public synchronized SurfaceType getSurfaceType() | |
| getSwapAction | back to summary |
|---|---|
| private static int getSwapAction(BufferCapabilities. Maps the given FlipContents constant to the associated XDBE swap action constant. | |
| getVisual | back to summary |
|---|---|
| public int getVisual() Returns the visual id associated with this configuration. | |
| getXResolution | back to summary |
|---|---|
| private native double getXResolution(int screen) | |
| getYResolution | back to summary |
|---|---|
| private native double getYResolution(int screen) | |
| init | back to summary |
|---|---|
| private native void init(int visualNum, int screen) | |
| initIDs | back to summary |
|---|---|
| private static native void initIDs() | |
| isDoubleBuffered | back to summary |
|---|---|
| public boolean isDoubleBuffered() | |
| isTranslucencyCapable | back to summary |
|---|---|
| public boolean isTranslucencyCapable() Overrides java. Doc from java. Returns whether this
| |
| isTranslucencyCapable | back to summary |
|---|---|
| private native boolean isTranslucencyCapable(long x11ConfigData) | |
| makeColorModel | back to summary |
|---|---|
| private native ColorModel makeColorModel() | |
| scaleDown | back to summary |
|---|---|
| public int scaleDown(int x) | |
| scaleUp | back to summary |
|---|---|
| public int scaleUp(int x) | |
| swapBuffers | back to summary |
|---|---|
| private native void swapBuffers(long window, int swapAction) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void |
| x11ConfigData | back to summary |
|---|---|
| private long x11ConfigData | |
| X11GCDisposerRecord | back to summary |
|---|---|
| public X11GCDisposerRecord(long x11CfgData) | |
| dispose | back to summary |
|---|---|
| public synchronized void dispose() Implements sun.
| |
| Access | Constructor and Description |
|---|---|
| public |
| XDBECapabilities | back to summary |
|---|---|
| public XDBECapabilities() | |