| Modifier and Type | Class and Description |
|---|---|
| private static class | OGLPaints.
GradientPaint support |
| private static class | OGLPaints.
LinearGradientPaint support |
| private abstract static class | OGLPaints.
Shared MultipleGradientPaint support |
| private static class | OGLPaints.
RadialGradientPaint support |
| private static class | OGLPaints.
TexturePaint support |
| Modifier and Type | Field and Description |
|---|---|
| private static Map | impls
Holds all registered implementations, using the corresponding SunGraphics2D.PAINT_* constant as the hash key. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract boolean | isPaintValid(SunGraphics2D sg2d)
Returns true if this implementation is able to accelerate the Paint object associated with, and under the conditions of, the provided SunGraphics2D instance; otherwise returns false. |
| pack-priv static boolean | isValid(SunGraphics2D sg2d)
Attempts to locate an implementation corresponding to the paint state of the provided SunGraphics2D object. |
| impls | back to summary |
|---|---|
| private static Map<Integer, OGLPaints> impls Holds all registered implementations, using the corresponding SunGraphics2D.PAINT_* constant as the hash key. | |
| OGLPaints | back to summary |
|---|---|
| pack-priv OGLPaints() | |
| isPaintValid | back to summary |
|---|---|
| pack-priv abstract boolean isPaintValid(SunGraphics2D sg2d) Returns true if this implementation is able to accelerate the Paint object associated with, and under the conditions of, the provided SunGraphics2D instance; otherwise returns false. | |
| isValid | back to summary |
|---|---|
| pack-priv static boolean isValid(SunGraphics2D sg2d) Attempts to locate an implementation corresponding to the paint state of the provided SunGraphics2D object. If no implementation can be found, or if the paint cannot be accelerated under the conditions of the SunGraphics2D, this method returns false; otherwise, returns true. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | isPaintValid(SunGraphics2D sg2d)
Implements abstract sun. There are no restrictions for accelerating GradientPaint, so this method always returns true. |
| Gradient | back to summary |
|---|---|
| private Gradient() | |
| isPaintValid | back to summary |
|---|---|
| pack-priv boolean isPaintValid(SunGraphics2D sg2d) Implements abstract sun. There are no restrictions for accelerating GradientPaint, so this method always returns true.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | isPaintValid(SunGraphics2D sg2d)
Overrides sun. Returns true if the given MultipleGradientPaint instance can be used by the accelerated OGLPaints.MultiGradient implementation. |
| LinearGradient | back to summary |
|---|---|
| private LinearGradient() | |
| isPaintValid | back to summary |
|---|---|
| pack-priv boolean isPaintValid(SunGraphics2D sg2d) Overrides sun. Doc from sun. Returns true if the given MultipleGradientPaint instance can be used by the accelerated OGLPaints.MultiGradient implementation. A MultipleGradientPaint is considered valid if the following conditions are met: - the number of gradient "stops" is <= MAX_FRACTIONS - the destination has support for fragment shaders
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | isPaintValid(SunGraphics2D sg2d)
Implements abstract sun. Returns true if the given MultipleGradientPaint instance can be used by the accelerated OGLPaints.MultiGradient implementation. |
| MultiGradient | back to summary |
|---|---|
| protected MultiGradient() | |
| isPaintValid | back to summary |
|---|---|
| pack-priv boolean isPaintValid(SunGraphics2D sg2d) Implements abstract sun. Returns true if the given MultipleGradientPaint instance can be used by the accelerated OGLPaints.MultiGradient implementation. A MultipleGradientPaint is considered valid if the following conditions are met: - the number of gradient "stops" is <= MAX_FRACTIONS - the destination has support for fragment shaders
| |
| Access | Constructor and Description |
|---|---|
| private |
| RadialGradient | back to summary |
|---|---|
| private RadialGradient() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | isPaintValid(SunGraphics2D sg2d)
Implements abstract sun. Returns true if the given TexturePaint instance can be used by the accelerated OGLPaints.Texture implementation. |
| Texture | back to summary |
|---|---|
| private Texture() | |
| isPaintValid | back to summary |
|---|---|
| pack-priv boolean isPaintValid(SunGraphics2D sg2d) Implements abstract sun. Returns true if the given TexturePaint instance can be used by the accelerated OGLPaints.Texture implementation. A TexturePaint is considered valid if the following conditions are met: - the texture image dimensions are power-of-two (or the GL_ARB_texture_non_power_of_two extension is present) - the texture image can be (or is already) cached in an OpenGL texture object
| |