Java Code Examples for java.awt.GraphicsConfiguration#getDevice()

The following examples show how to use java.awt.GraphicsConfiguration#getDevice() . 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: Win32GraphicsEnvironment.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isFlipStrategyPreferred(ComponentPeer peer) {
    GraphicsConfiguration gc;
    if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
        GraphicsDevice gd = gc.getDevice();
        if (gd instanceof D3DGraphicsDevice) {
            return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
        }
    }
    return false;
}
 
Example 2
Source File: Win32GraphicsEnvironment.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isFlipStrategyPreferred(ComponentPeer peer) {
    GraphicsConfiguration gc;
    if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
        GraphicsDevice gd = gc.getDevice();
        if (gd instanceof D3DGraphicsDevice) {
            return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
        }
    }
    return false;
}
 
Example 3
Source File: Win32GraphicsEnvironment.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isFlipStrategyPreferred(ComponentPeer peer) {
    GraphicsConfiguration gc;
    if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
        GraphicsDevice gd = gc.getDevice();
        if (gd instanceof D3DGraphicsDevice) {
            return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
        }
    }
    return false;
}
 
Example 4
Source File: Win32GraphicsEnvironment.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isFlipStrategyPreferred(ComponentPeer peer) {
    GraphicsConfiguration gc;
    if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
        GraphicsDevice gd = gc.getDevice();
        if (gd instanceof D3DGraphicsDevice) {
            return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
        }
    }
    return false;
}
 
Example 5
Source File: Win32GraphicsEnvironment.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isFlipStrategyPreferred(ComponentPeer peer) {
    GraphicsConfiguration gc;
    if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
        GraphicsDevice gd = gc.getDevice();
        if (gd instanceof D3DGraphicsDevice) {
            return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
        }
    }
    return false;
}
 
Example 6
Source File: Win32GraphicsEnvironment.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isFlipStrategyPreferred(ComponentPeer peer) {
    GraphicsConfiguration gc;
    if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
        GraphicsDevice gd = gc.getDevice();
        if (gd instanceof D3DGraphicsDevice) {
            return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
        }
    }
    return false;
}
 
Example 7
Source File: Win32GraphicsEnvironment.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isFlipStrategyPreferred(ComponentPeer peer) {
    GraphicsConfiguration gc;
    if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
        GraphicsDevice gd = gc.getDevice();
        if (gd instanceof D3DGraphicsDevice) {
            return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
        }
    }
    return false;
}
 
Example 8
Source File: Win32GraphicsEnvironment.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isFlipStrategyPreferred(ComponentPeer peer) {
    GraphicsConfiguration gc;
    if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
        GraphicsDevice gd = gc.getDevice();
        if (gd instanceof D3DGraphicsDevice) {
            return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
        }
    }
    return false;
}
 
Example 9
Source File: Win32GraphicsEnvironment.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isFlipStrategyPreferred(ComponentPeer peer) {
    GraphicsConfiguration gc;
    if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
        GraphicsDevice gd = gc.getDevice();
        if (gd instanceof D3DGraphicsDevice) {
            return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
        }
    }
    return false;
}
 
Example 10
Source File: VolatileSurfaceManager.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 11
Source File: VolatileSurfaceManager.java    From dragonwell8_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 12
Source File: VolatileSurfaceManager.java    From jdk8u_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 13
Source File: VolatileSurfaceManager.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 14
Source File: VolatileSurfaceManager.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 15
Source File: VolatileSurfaceManager.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 16
Source File: VolatileSurfaceManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 17
Source File: VolatileSurfaceManager.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 18
Source File: VolatileSurfaceManager.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 19
Source File: VolatileSurfaceManager.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}
 
Example 20
Source File: VolatileSurfaceManager.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Called by validate() to see whether the GC passed in is ok for
 * rendering to.  This generic implementation checks to see
 * whether the GC is either null or is from the same
 * device as the one that this image was created on.  Platform-
 * specific implementations may perform other checks as
 * appropriate.
 */
protected boolean isConfigValid(GraphicsConfiguration gc) {
    return ((gc == null) ||
            (gc.getDevice() == vImg.getGraphicsConfig().getDevice()));
}