Java Code Examples for sun.java2d.SunGraphics2D#PAINT_OPAQUECOLOR

The following examples show how to use sun.java2d.SunGraphics2D#PAINT_OPAQUECOLOR . 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: D3DSurfaceData.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 2
Source File: D3DSurfaceData.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 3
Source File: D3DSurfaceData.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 4
Source File: D3DSurfaceData.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 5
Source File: D3DSurfaceData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 6
Source File: D3DSurfaceData.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 7
Source File: D3DSurfaceData.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 8
Source File: D3DSurfaceData.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 9
Source File: D3DSurfaceData.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 10
Source File: D3DSurfaceData.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 11
Source File: D3DSurfaceData.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 12
Source File: OGLSurfaceData.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 13
Source File: OGLSurfaceData.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - the source color is opaque, and
 *   - blending is SrcOverNoEa or disabled
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        (sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY ||
         (sg2d.compositeState <= SunGraphics2D.COMP_ALPHA && canHandleComposite(sg2d.composite)));
}
 
Example 14
Source File: OGLSurfaceData.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 15
Source File: OGLSurfaceData.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 16
Source File: OGLSurfaceData.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - the source color is opaque, and
 *   - blending is SrcOverNoEa or disabled
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        (sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY ||
         (sg2d.compositeState <= SunGraphics2D.COMP_ALPHA && canHandleComposite(sg2d.composite)));
}
 
Example 17
Source File: OGLSurfaceData.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - the source color is opaque, and
 *   - blending is SrcOverNoEa or disabled
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        (sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY ||
         (sg2d.compositeState <= SunGraphics2D.COMP_ALPHA && canHandleComposite(sg2d.composite)));
}
 
Example 18
Source File: OGLSurfaceData.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - the source color is opaque, and
 *   - blending is SrcOverNoEa or disabled
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        (sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY ||
         (sg2d.compositeState <= SunGraphics2D.COMP_ALPHA && canHandleComposite(sg2d.composite)));
}
 
Example 19
Source File: OGLSurfaceData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
Example 20
Source File: OGLSurfaceData.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - the source color is opaque, and
 *   - blending is SrcOverNoEa or disabled
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        (sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY ||
         (sg2d.compositeState <= SunGraphics2D.COMP_ALPHA && canHandleComposite(sg2d.composite)));
}