Java Code Examples for sun.java2d.loops.SurfaceType#OpaqueLinearGradientPaint
The following examples show how to use
sun.java2d.loops.SurfaceType#OpaqueLinearGradientPaint .
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: SurfaceData.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 2
Source File: SurfaceData.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 3
Source File: SurfaceData.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 4
Source File: SurfaceData.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 5
Source File: SurfaceData.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 6
Source File: SurfaceData.java From Bytecoder with Apache License 2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 7
Source File: SurfaceData.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 8
Source File: SurfaceData.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 9
Source File: SurfaceData.java From hottub with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 10
Source File: SurfaceData.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 11
Source File: SurfaceData.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 12
Source File: SurfaceData.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 13
Source File: SurfaceData.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }
Example 14
Source File: SurfaceData.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) { switch (sg2d.paintState) { case SunGraphics2D.PAINT_OPAQUECOLOR: return SurfaceType.OpaqueColor; case SunGraphics2D.PAINT_ALPHACOLOR: return SurfaceType.AnyColor; case SunGraphics2D.PAINT_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueGradientPaint; } else { return SurfaceType.GradientPaint; } case SunGraphics2D.PAINT_LIN_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueLinearGradientPaint; } else { return SurfaceType.LinearGradientPaint; } case SunGraphics2D.PAINT_RAD_GRADIENT: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueRadialGradientPaint; } else { return SurfaceType.RadialGradientPaint; } case SunGraphics2D.PAINT_TEXTURE: if (sg2d.paint.getTransparency() == OPAQUE) { return SurfaceType.OpaqueTexturePaint; } else { return SurfaceType.TexturePaint; } default: case SunGraphics2D.PAINT_CUSTOM: return SurfaceType.AnyPaint; } }