| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static Boolean | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| protected int | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final SurfaceType | |
| pack-priv X11GraphicsConfig | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| private static X11SurfaceData. | |
| pack-priv X11ComponentPeer | |
| private RenderLoops | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| private Region | |
| private boolean | |
| private int | |
| private XORComposite | |
| protected X11Renderer | |
| protected static TextPipe | |
| protected PixelToShapeConverter | |
| private long | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract boolean | Returns: true if there is any chance that an XCopyArea from the given source coordinates could produce any X11 Exposure events.Returns a boolean indicating whether or not a copyArea from the given rectangle source coordinates might be incomplete and result in X11 GraphicsExposure events being generated from XCopyArea. |
| public boolean | copyArea(SunGraphics2D sg2d, int x, int y, int w, int h, int dx, int dy)
Overrides sun. Performs a copyarea within this surface. |
| public static X11SurfaceData. | |
| public static X11SurfaceData. | createData(X11GraphicsConfig gc, int width, int height, ColorModel cm, Image image, long drawable, int transparency, boolean isTexture)
Method for instantiating a Pixmap SurfaceData (offscreen) |
| public final long | |
| public GraphicsConfiguration | getDeviceConfiguration()
Implements abstract sun. Return the GraphicsConfiguration object that describes this destination surface. |
| public static X11GraphicsConfig | |
| pack-priv final long | |
| public Raster | getRaster(int x, int y, int w, int h)
Implements abstract sun. Return a readable Raster which contains the pixels for the specified rectangular region of the destination surface. |
| public final long | |
| public RenderLoops | getRenderLoops(SunGraphics2D sg2d)
Overrides sun. Return a RenderLoops object containing all of the basic GraphicsPrimitive objects for rendering to the destination surface with the current attributes of the given SunGraphics2D. |
| public static SurfaceType | |
| public static SurfaceType | |
| private static native void | |
| protected native void | |
| public void | invalidate()
Overrides sun. Sets this SurfaceData object to the invalid state. |
| public static boolean | |
| private static native boolean | |
| public synchronized void | |
| public SurfaceDataProxy | makeProxyFor(SurfaceData srcData)
Overrides sun. This method is called on a destination SurfaceData to choose a proper SurfaceDataProxy subclass for a source SurfaceData to use to control when and with what surface to override a given image operation. |
| public void | |
| private static native void | XSetCopyMode(long xgc)
The following methods and variables are used to keep the Java-level context state in sync with the native X11 GC associated with this X11SurfaceData object. |
| private static native void | |
| private static native void |
| accelerationEnabled | back to summary |
|---|---|
| private static Boolean accelerationEnabled | |
| ByteGrayX11 | back to summary |
|---|---|
| public static final SurfaceType ByteGrayX11 | |
| ByteGrayX11_BM | back to summary |
|---|---|
| public static final SurfaceType ByteGrayX11_BM | |
| ByteIndexedOpaqueX11 | back to summary |
|---|---|
| public static final SurfaceType ByteIndexedOpaqueX11 | |
| ByteIndexedX11_BM | back to summary |
|---|---|
| public static final SurfaceType ByteIndexedX11_BM | |
| depth | back to summary |
|---|---|
| protected int depth | |
| DESC_3BYTE_BGR_X11 | back to summary |
|---|---|
| public static final String DESC_3BYTE_BGR_X11 | |
| DESC_3BYTE_BGR_X11_BM | back to summary |
|---|---|
| public static final String DESC_3BYTE_BGR_X11_BM | |
| DESC_3BYTE_RGB_X11 | back to summary |
|---|---|
| public static final String DESC_3BYTE_RGB_X11 | |
| DESC_3BYTE_RGB_X11_BM | back to summary |
|---|---|
| public static final String DESC_3BYTE_RGB_X11_BM | |
| DESC_4BYTE_ABGR_PRE_X11 | back to summary |
|---|---|
| public static final String DESC_4BYTE_ABGR_PRE_X11 | |
| DESC_BYTE_GRAY_X11 | back to summary |
|---|---|
| public static final String DESC_BYTE_GRAY_X11 | |
| DESC_BYTE_GRAY_X11_BM | back to summary |
|---|---|
| public static final String DESC_BYTE_GRAY_X11_BM | |
| DESC_BYTE_IND_OPQ_X11 | back to summary |
|---|---|
| public static final String DESC_BYTE_IND_OPQ_X11 | |
| DESC_BYTE_IND_X11_BM | back to summary |
|---|---|
| public static final String DESC_BYTE_IND_X11_BM | |
| DESC_INDEX8_GRAY_X11 | back to summary |
|---|---|
| public static final String DESC_INDEX8_GRAY_X11 | |
| DESC_INDEX8_GRAY_X11_BM | back to summary |
|---|---|
| public static final String DESC_INDEX8_GRAY_X11_BM | |
| DESC_INT_ARGB_PRE_X11 | back to summary |
|---|---|
| public static final String DESC_INT_ARGB_PRE_X11 | |
| DESC_INT_BGR_X11 | back to summary |
|---|---|
| public static final String DESC_INT_BGR_X11 | |
| DESC_INT_BGR_X11_BM | back to summary |
|---|---|
| public static final String DESC_INT_BGR_X11_BM | |
| DESC_INT_RGB_X11 | back to summary |
|---|---|
| public static final String DESC_INT_RGB_X11 | |
| DESC_INT_RGB_X11_BM | back to summary |
|---|---|
| public static final String DESC_INT_RGB_X11_BM | |
| DESC_USHORT_555_RGB_X11 | back to summary |
|---|---|
| public static final String DESC_USHORT_555_RGB_X11 | |
| DESC_USHORT_555_RGB_X11_BM | back to summary |
|---|---|
| public static final String DESC_USHORT_555_RGB_X11_BM | |
| DESC_USHORT_565_RGB_X11 | back to summary |
|---|---|
| public static final String DESC_USHORT_565_RGB_X11 | |
| DESC_USHORT_565_RGB_X11_BM | back to summary |
|---|---|
| public static final String DESC_USHORT_565_RGB_X11_BM | |
| DESC_USHORT_INDEXED_X11 | back to summary |
|---|---|
| public static final String DESC_USHORT_INDEXED_X11 | |
| DESC_USHORT_INDEXED_X11_BM | back to summary |
|---|---|
| public static final String DESC_USHORT_INDEXED_X11_BM | |
| FourByteAbgrPreX11 | back to summary |
|---|---|
| public static final SurfaceType FourByteAbgrPreX11 | |
| graphicsConfig | back to summary |
|---|---|
| pack-priv X11GraphicsConfig graphicsConfig | |
| Index8GrayX11 | back to summary |
|---|---|
| public static final SurfaceType Index8GrayX11 | |
| Index8GrayX11_BM | back to summary |
|---|---|
| public static final SurfaceType Index8GrayX11_BM | |
| IntArgbPreX11 | back to summary |
|---|---|
| public static final SurfaceType IntArgbPreX11 | |
| IntBgrX11 | back to summary |
|---|---|
| public static final SurfaceType IntBgrX11 | |
| IntBgrX11_BM | back to summary |
|---|---|
| public static final SurfaceType IntBgrX11_BM | |
| IntRgbX11 | back to summary |
|---|---|
| public static final SurfaceType IntRgbX11 | |
| IntRgbX11_BM | back to summary |
|---|---|
| public static final SurfaceType IntRgbX11_BM | |
| lazypipe | back to summary |
|---|---|
| private static X11SurfaceData. | |
| peer | back to summary |
|---|---|
| pack-priv X11ComponentPeer peer | |
| solidloops | back to summary |
|---|---|
| private RenderLoops solidloops | |
| ThreeByteBgrX11 | back to summary |
|---|---|
| public static final SurfaceType ThreeByteBgrX11 | |
| ThreeByteBgrX11_BM | back to summary |
|---|---|
| public static final SurfaceType ThreeByteBgrX11_BM | |
| ThreeByteRgbX11 | back to summary |
|---|---|
| public static final SurfaceType ThreeByteRgbX11 | |
| ThreeByteRgbX11_BM | back to summary |
|---|---|
| public static final SurfaceType ThreeByteRgbX11_BM | |
| UShort555RgbX11 | back to summary |
|---|---|
| public static final SurfaceType UShort555RgbX11 | |
| UShort555RgbX11_BM | back to summary |
|---|---|
| public static final SurfaceType UShort555RgbX11_BM | |
| UShort565RgbX11 | back to summary |
|---|---|
| public static final SurfaceType UShort565RgbX11 | |
| UShort565RgbX11_BM | back to summary |
|---|---|
| public static final SurfaceType UShort565RgbX11_BM | |
| UShortIndexedX11 | back to summary |
|---|---|
| public static final SurfaceType UShortIndexedX11 | |
| UShortIndexedX11_BM | back to summary |
|---|---|
| public static final SurfaceType UShortIndexedX11_BM | |
| validatedClip | back to summary |
|---|---|
| private Region validatedClip | |
| validatedExposures | back to summary |
|---|---|
| private boolean validatedExposures | |
| validatedPixel | back to summary |
|---|---|
| private int validatedPixel | |
| validatedXorComp | back to summary |
|---|---|
| private XORComposite validatedXorComp | |
| x11pipe | back to summary |
|---|---|
| protected X11Renderer x11pipe | |
| x11textpipe | back to summary |
|---|---|
| protected static TextPipe x11textpipe | |
| x11txpipe | back to summary |
|---|---|
| protected PixelToShapeConverter x11txpipe | |
| xgc | back to summary |
|---|---|
| private long xgc | |
| xorpixelmod | back to summary |
|---|---|
| private int xorpixelmod | |
| X11SurfaceData | back to summary |
|---|---|
| protected X11SurfaceData(X11ComponentPeer peer, X11GraphicsConfig gc, SurfaceType sType, ColorModel cm) | |
| canSourceSendExposures | back to summary |
|---|---|
| public abstract boolean canSourceSendExposures(int x, int y, int w, int h) Returns a boolean indicating whether or not a copyArea from the given rectangle source coordinates might be incomplete and result in X11 GraphicsExposure events being generated from XCopyArea. This method allows the SurfaceData copyArea method to determine if it needs to set the GraphicsExposures attribute of the X11 GC to True or False to receive or avoid the events.
| |
| copyArea | back to summary |
|---|---|
| public boolean copyArea(SunGraphics2D sg2d, int x, int y, int w, int h, int dx, int dy) Overrides sun. Doc from sun. Performs a copyarea within this surface. Returns false if there is no algorithm to perform the copyarea given the current settings of the SunGraphics2D.
| |
| createData | back to summary |
|---|---|
| public static X11SurfaceData. Method for instantiating a Window SurfaceData | |
| createData | back to summary |
|---|---|
| public static X11SurfaceData. Method for instantiating a Pixmap SurfaceData (offscreen) | |
| getBlitGC | back to summary |
|---|---|
| public final long getBlitGC(Region clip, boolean needExposures) | |
| getDeviceConfiguration | back to summary |
|---|---|
| public GraphicsConfiguration getDeviceConfiguration() Implements abstract sun. Doc from sun. Return the GraphicsConfiguration object that describes this destination surface.
| |
| getGC | back to summary |
|---|---|
| public static X11GraphicsConfig getGC(X11ComponentPeer peer) | |
| getGC | back to summary |
|---|---|
| pack-priv final long getGC(Region clip, int compState, Composite comp, int pixel, boolean needExposures) | |
| getRaster | back to summary |
|---|---|
| public Raster getRaster(int x, int y, int w, int h) Implements abstract sun. Doc from sun. Return a readable Raster which contains the pixels for the specified rectangular region of the destination surface. The coordinate origin of the returned Raster is the same as the device space origin of the destination surface. In some cases the returned Raster might also be writeable. In most cases, the returned Raster might contain more pixels than requested.
| |
| getRenderGC | back to summary |
|---|---|
| public final long getRenderGC(Region clip, int compState, Composite comp, int pixel) | |
| getRenderLoops | back to summary |
|---|---|
| public RenderLoops getRenderLoops(SunGraphics2D sg2d) Overrides sun. Doc from sun. Return a RenderLoops object containing all of the basic GraphicsPrimitive objects for rendering to the destination surface with the current attributes of the given SunGraphics2D.
| |
| getSurfaceType | back to summary |
|---|---|
| public static SurfaceType getSurfaceType(X11GraphicsConfig gc, int transparency) | |
| getSurfaceType | back to summary |
|---|---|
public static SurfaceType getSurfaceType(X11GraphicsConfig gc, int transparency, boolean pixmapSurface)
| |
| initIDs | back to summary |
|---|---|
| private static native void initIDs(Class<?> xorComp) | |
| initSurface | back to summary |
|---|---|
| protected native void initSurface(int depth, int width, int height, long drawable) | |
| invalidate | back to summary |
|---|---|
| public void invalidate() Overrides sun. Doc from sun. Sets this SurfaceData object to the invalid state. All Graphics objects must get a new SurfaceData object via the refresh method and revalidate their pipelines before continuing.
| |
| isAccelerationEnabled | back to summary |
|---|---|
| public static boolean isAccelerationEnabled() | |
| isShmPMAvailable | back to summary |
|---|---|
| private static native boolean isShmPMAvailable() Returns true if shared memory pixmaps are available | |
| makePipes | back to summary |
|---|---|
| public synchronized void makePipes() | |
| makeProxyFor | back to summary |
|---|---|
| public SurfaceDataProxy makeProxyFor(SurfaceData srcData) Overrides sun. Doc from sun. This method is called on a destination SurfaceData to choose a proper SurfaceDataProxy subclass for a source SurfaceData to use to control when and with what surface to override a given image operation. The argument is the default SurfaceData for the source Image. The type of the return object is chosen based on the acceleration capabilities of this SurfaceData and the type of the given source SurfaceData object. In some cases the original SurfaceData will always be the best choice to use to blit to this SurfaceData. This can happen if the source image is a hardware surface of the same type as this one and so acceleration will happen without any caching. It may also be the case that the source image can never be accelerated on this SurfaceData - for example because it is translucent and there are no accelerated translucent image ops for this surface. In those cases there is a special SurfaceDataProxy.UNCACHED instance that represents a NOP for caching purposes - it always returns the original sourceSD object as the replacement copy so no caching is ever performed.
| |
| validatePipe | back to summary |
|---|---|
| public void validatePipe(SunGraphics2D sg2d) Overrides sun.
| |
| XSetCopyMode | back to summary |
|---|---|
| private static native void XSetCopyMode(long xgc) The following methods and variables are used to keep the Java-level context state in sync with the native X11 GC associated with this X11SurfaceData object. | |
| XSetForeground | back to summary |
|---|---|
| private static native void XSetForeground(long xgc, int pixel) | |
| XSetXorMode | back to summary |
|---|---|
| private static native void XSetXorMode(long xgc) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| LazyPipe | back to summary |
|---|---|
| public LazyPipe() | |
| validate | back to summary |
|---|---|
| public boolean validate(SunGraphics2D sg2d) Overrides sun.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Image | |
| private final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | X11PixmapSurfaceData(X11GraphicsConfig gc, int width, int height, Image image, SurfaceType sType, ColorModel cm, long drawable, int transparency, boolean isTexture)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canSourceSendExposures(int x, int y, int w, int h)
Implements abstract sun. Returns a boolean indicating whether or not a copyArea from the given rectangle source coordinates might be incomplete and result in X11 GraphicsExposure events being generated from XCopyArea. |
| public void | flush()
Overrides sun. Synchronously releases resources associated with this surface. |
| public Rectangle | getBounds()
Implements abstract sun. Returns the bounds of the destination surface. |
| public double | getDefaultScaleX()
Overrides sun. Returns default horizontal scale factor of the destination surface. |
| public double | getDefaultScaleY()
Overrides sun. Returns default vertical scale factor of the destination surface. |
| public Object | getDestination()
Implements abstract sun. Returns destination Image associated with this SurfaceData. |
| public SurfaceData | getReplacement()
Implements abstract sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. |
| public int | getTransparency()
Overrides sun. Implements java. Need this since the surface data is created with the color model of the target GC, which is always opaque. |
| height | back to summary |
|---|---|
| private final int height | |
| offscreenImage | back to summary |
|---|---|
| private final Image offscreenImage | |
| scale | back to summary |
|---|---|
| private final int scale | |
| transparency | back to summary |
|---|---|
| private final int transparency | |
| width | back to summary |
|---|---|
| private final int width | |
| X11PixmapSurfaceData | back to summary |
|---|---|
| public X11PixmapSurfaceData(X11GraphicsConfig gc, int width, int height, Image image, SurfaceType sType, ColorModel cm, long drawable, int transparency, boolean isTexture) | |
| canSourceSendExposures | back to summary |
|---|---|
| public boolean canSourceSendExposures(int x, int y, int w, int h) Implements abstract sun. Doc from sun. Returns a boolean indicating whether or not a copyArea from the given rectangle source coordinates might be incomplete and result in X11 GraphicsExposure events being generated from XCopyArea. This method allows the SurfaceData copyArea method to determine if it needs to set the GraphicsExposures attribute of the X11 GC to True or False to receive or avoid the events.
| |
| flush | back to summary |
|---|---|
| public void flush() Overrides sun. Doc from sun. Synchronously releases resources associated with this surface.
| |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Implements abstract sun. Doc from sun. Returns the bounds of the destination surface.
| |
| getDefaultScaleX | back to summary |
|---|---|
| public double getDefaultScaleX() Overrides sun. Doc from sun. Returns default horizontal scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDefaultScaleY | back to summary |
|---|---|
| public double getDefaultScaleY() Overrides sun. Doc from sun. Returns default vertical scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDestination | back to summary |
|---|---|
| public Object getDestination() Implements abstract sun. Returns destination Image associated with this SurfaceData.
| |
| getReplacement | back to summary |
|---|---|
| public SurfaceData getReplacement() Implements abstract sun. Doc from sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. These changes include size, ColorModel, or SurfaceType. Existing Graphics objects which are directed at such surfaces, however, must continue to render to them even after the change occurs underneath the covers. The getReplacement() method is called from SunGraphics2D.revalidateAll() when the associated SurfaceData is found to be invalid so that a Graphics object can continue to render to the surface in its new configuration. Such changes only tend to happen to window based surfaces since most image based surfaces never change size or pixel format. Even VolatileImage objects never change size and they only change their pixel format when manually validated against a new GraphicsConfiguration, at which point old Graphics objects are no longer expected to render to them after the validation step. Thus, only window based surfaces really need to deal with this form of replacement.
| |
| getTransparency | back to summary |
|---|---|
| public int getTransparency() Overrides sun. Implements java. Need this since the surface data is created with the color model of the target GC, which is always opaque. But in SunGraphics2D.blitSD we choose loops based on the transparency on the source SD, so it could choose wrong loop (blit instead of blitbg, for example).
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canSourceSendExposures(int x, int y, int w, int h)
Implements abstract sun. Returns a boolean indicating whether or not a copyArea from the given rectangle source coordinates might be incomplete and result in X11 GraphicsExposure events being generated from XCopyArea. |
| public Rectangle | getBounds()
Implements abstract sun. Returns the bounds of the destination surface. |
| public double | getDefaultScaleX()
Overrides sun. Returns default horizontal scale factor of the destination surface. |
| public double | getDefaultScaleY()
Overrides sun. Returns default vertical scale factor of the destination surface. |
| public Object | getDestination()
Implements abstract sun. Returns destination Component associated with this SurfaceData. |
| public SurfaceData | getReplacement()
Implements abstract sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. |
| scale | back to summary |
|---|---|
| private final int scale | |
| X11WindowSurfaceData | back to summary |
|---|---|
| public X11WindowSurfaceData(X11ComponentPeer peer, X11GraphicsConfig gc, SurfaceType sType) | |
| canSourceSendExposures | back to summary |
|---|---|
| public boolean canSourceSendExposures(int x, int y, int w, int h) Implements abstract sun. Doc from sun. Returns a boolean indicating whether or not a copyArea from the given rectangle source coordinates might be incomplete and result in X11 GraphicsExposure events being generated from XCopyArea. This method allows the SurfaceData copyArea method to determine if it needs to set the GraphicsExposures attribute of the X11 GC to True or False to receive or avoid the events.
| |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Implements abstract sun. Doc from sun. Returns the bounds of the destination surface.
| |
| getDefaultScaleX | back to summary |
|---|---|
| public double getDefaultScaleX() Overrides sun. Doc from sun. Returns default horizontal scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDefaultScaleY | back to summary |
|---|---|
| public double getDefaultScaleY() Overrides sun. Doc from sun. Returns default vertical scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDestination | back to summary |
|---|---|
| public Object getDestination() Implements abstract sun. Returns destination Component associated with this SurfaceData.
| |
| getReplacement | back to summary |
|---|---|
| public SurfaceData getReplacement() Implements abstract sun. Doc from sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. These changes include size, ColorModel, or SurfaceType. Existing Graphics objects which are directed at such surfaces, however, must continue to render to them even after the change occurs underneath the covers. The getReplacement() method is called from SunGraphics2D.revalidateAll() when the associated SurfaceData is found to be invalid so that a Graphics object can continue to render to the surface in its new configuration. Such changes only tend to happen to window based surfaces since most image based surfaces never change size or pixel format. Even VolatileImage objects never change size and they only change their pixel format when manually validated against a new GraphicsConfiguration, at which point old Graphics objects are no longer expected to render to them after the validation step. Thus, only window based surfaces really need to deal with this form of replacement.
| |