Java Code Examples for sun.awt.X11ComponentPeer#getColorModel()

The following examples show how to use sun.awt.X11ComponentPeer#getColorModel() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GLXSurfaceData.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a SurfaceData object representing the back buffer of a
 * double-buffered on-screen Window.
 */
public static GLXOffScreenSurfaceData createData(X11ComponentPeer peer,
                                                 Image image,
                                                 int type)
{
    GLXGraphicsConfig gc = getGC(peer);
    Rectangle r = peer.getBounds();
    if (type == FLIP_BACKBUFFER) {
        return new GLXOffScreenSurfaceData(peer, gc, r.width, r.height,
                                           image, peer.getColorModel(),
                                           FLIP_BACKBUFFER);
    } else {
        return new GLXVSyncOffScreenSurfaceData(peer, gc, r.width, r.height,
                                                image, peer.getColorModel(),
                                                type);
    }
}
 
Example 2
Source File: GLXSurfaceData.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a SurfaceData object representing the back buffer of a
 * double-buffered on-screen Window.
 */
public static GLXOffScreenSurfaceData createData(X11ComponentPeer peer,
                                                 Image image,
                                                 int type)
{
    GLXGraphicsConfig gc = getGC(peer);
    Rectangle r = peer.getBounds();
    if (type == FLIP_BACKBUFFER) {
        return new GLXOffScreenSurfaceData(peer, gc, r.width, r.height,
                                           image, peer.getColorModel(),
                                           FLIP_BACKBUFFER);
    } else {
        return new GLXVSyncOffScreenSurfaceData(peer, gc, r.width, r.height,
                                                image, peer.getColorModel(),
                                                type);
    }
}
 
Example 3
Source File: GLXSurfaceData.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a SurfaceData object representing the back buffer of a
 * double-buffered on-screen Window.
 */
public static GLXOffScreenSurfaceData createData(X11ComponentPeer peer,
                                                 Image image,
                                                 int type)
{
    GLXGraphicsConfig gc = getGC(peer);
    Rectangle r = peer.getBounds();
    if (type == FLIP_BACKBUFFER) {
        return new GLXOffScreenSurfaceData(peer, gc, r.width, r.height,
                                           image, peer.getColorModel(),
                                           FLIP_BACKBUFFER);
    } else {
        return new GLXVSyncOffScreenSurfaceData(peer, gc, r.width, r.height,
                                                image, peer.getColorModel(),
                                                type);
    }
}
 
Example 4
Source File: GLXSurfaceData.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a SurfaceData object representing the back buffer of a
 * double-buffered on-screen Window.
 */
public static GLXOffScreenSurfaceData createData(X11ComponentPeer peer,
                                                 Image image,
                                                 int type)
{
    GLXGraphicsConfig gc = getGC(peer);
    Rectangle r = peer.getBounds();
    if (type == FLIP_BACKBUFFER) {
        return new GLXOffScreenSurfaceData(peer, gc, r.width, r.height,
                                           image, peer.getColorModel(),
                                           FLIP_BACKBUFFER);
    } else {
        return new GLXVSyncOffScreenSurfaceData(peer, gc, r.width, r.height,
                                                image, peer.getColorModel(),
                                                type);
    }
}
 
Example 5
Source File: GLXSurfaceData.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a SurfaceData object representing the back buffer of a
 * double-buffered on-screen Window.
 */
public static GLXOffScreenSurfaceData createData(X11ComponentPeer peer,
                                                 Image image,
                                                 int type)
{
    GLXGraphicsConfig gc = getGC(peer);
    Rectangle r = peer.getBounds();
    if (type == FLIP_BACKBUFFER) {
        return new GLXOffScreenSurfaceData(peer, gc, r.width, r.height,
                                           image, peer.getColorModel(),
                                           FLIP_BACKBUFFER);
    } else {
        return new GLXVSyncOffScreenSurfaceData(peer, gc, r.width, r.height,
                                                image, peer.getColorModel(),
                                                type);
    }
}
 
Example 6
Source File: GLXSurfaceData.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a SurfaceData object representing the back buffer of a
 * double-buffered on-screen Window.
 */
public static GLXOffScreenSurfaceData createData(X11ComponentPeer peer,
                                                 Image image,
                                                 int type)
{
    GLXGraphicsConfig gc = getGC(peer);
    Rectangle r = peer.getBounds();
    if (type == FLIP_BACKBUFFER) {
        return new GLXOffScreenSurfaceData(peer, gc, r.width, r.height,
                                           image, peer.getColorModel(),
                                           FLIP_BACKBUFFER);
    } else {
        return new GLXVSyncOffScreenSurfaceData(peer, gc, r.width, r.height,
                                                image, peer.getColorModel(),
                                                type);
    }
}
 
Example 7
Source File: GLXSurfaceData.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a SurfaceData object representing the back buffer of a
 * double-buffered on-screen Window.
 */
public static GLXOffScreenSurfaceData createData(X11ComponentPeer peer,
                                                 Image image,
                                                 int type)
{
    GLXGraphicsConfig gc = getGC(peer);
    Rectangle r = peer.getBounds();
    if (type == FLIP_BACKBUFFER) {
        return new GLXOffScreenSurfaceData(peer, gc, r.width, r.height,
                                           image, peer.getColorModel(),
                                           FLIP_BACKBUFFER);
    } else {
        return new GLXVSyncOffScreenSurfaceData(peer, gc, r.width, r.height,
                                                image, peer.getColorModel(),
                                                type);
    }
}
 
Example 8
Source File: X11SurfaceData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public X11WindowSurfaceData(X11ComponentPeer peer,
                            X11GraphicsConfig gc,
                            SurfaceType sType) {
    super(peer, gc, sType, peer.getColorModel());
    if (isDrawableValid()) {
        makePipes();
    }
}
 
Example 9
Source File: X11SurfaceData.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public X11WindowSurfaceData(X11ComponentPeer peer,
                            X11GraphicsConfig gc,
                            SurfaceType sType) {
    super(peer, gc, sType, peer.getColorModel());
    if (isDrawableValid()) {
        makePipes();
    }
}
 
Example 10
Source File: X11SurfaceData.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public X11WindowSurfaceData(X11ComponentPeer peer,
                            X11GraphicsConfig gc,
                            SurfaceType sType) {
    super(peer, gc, sType, peer.getColorModel());
    if (isDrawableValid()) {
        makePipes();
    }
}
 
Example 11
Source File: X11SurfaceData.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public X11WindowSurfaceData(X11ComponentPeer peer,
                            X11GraphicsConfig gc,
                            SurfaceType sType) {
    super(peer, gc, sType, peer.getColorModel());
    if (isDrawableValid()) {
        makePipes();
    }
}
 
Example 12
Source File: X11SurfaceData.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public X11WindowSurfaceData(X11ComponentPeer peer,
                            X11GraphicsConfig gc,
                            SurfaceType sType) {
    super(peer, gc, sType, peer.getColorModel());
    if (isDrawableValid()) {
        makePipes();
    }
}
 
Example 13
Source File: X11SurfaceData.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public X11WindowSurfaceData(X11ComponentPeer peer,
                            X11GraphicsConfig gc,
                            SurfaceType sType) {
    super(peer, gc, sType, peer.getColorModel());
    if (isDrawableValid()) {
        makePipes();
    }
}
 
Example 14
Source File: GLXSurfaceData.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public GLXWindowSurfaceData(X11ComponentPeer peer,
                            GLXGraphicsConfig gc)
{
    super(peer, gc, peer.getColorModel(), WINDOW);
}
 
Example 15
Source File: GLXSurfaceData.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public GLXWindowSurfaceData(X11ComponentPeer peer,
                            GLXGraphicsConfig gc)
{
    super(peer, gc, peer.getColorModel(), WINDOW);
}
 
Example 16
Source File: GLXSurfaceData.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public GLXWindowSurfaceData(X11ComponentPeer peer,
                            GLXGraphicsConfig gc)
{
    super(peer, gc, peer.getColorModel(), WINDOW);
}
 
Example 17
Source File: GLXSurfaceData.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public GLXWindowSurfaceData(X11ComponentPeer peer,
                            GLXGraphicsConfig gc)
{
    super(peer, gc, peer.getColorModel(), WINDOW);
}
 
Example 18
Source File: GLXSurfaceData.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public GLXWindowSurfaceData(X11ComponentPeer peer,
                            GLXGraphicsConfig gc)
{
    super(peer, gc, peer.getColorModel(), WINDOW);
    scale = gc.getScale();
}
 
Example 19
Source File: GLXSurfaceData.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public GLXWindowSurfaceData(X11ComponentPeer peer,
                            GLXGraphicsConfig gc)
{
    super(peer, gc, peer.getColorModel(), WINDOW);
}
 
Example 20
Source File: GLXSurfaceData.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public GLXWindowSurfaceData(X11ComponentPeer peer,
                            GLXGraphicsConfig gc)
{
    super(peer, gc, peer.getColorModel(), WINDOW);
}