APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.java2d.opengl

pack-priv abstract Class OGLPaints

extends Object
Class Inheritance
Known Direct Subclasses
sun.java2d.opengl.OGLPaints.Gradient, sun.java2d.opengl.OGLPaints.Texture, sun.java2d.opengl.OGLPaints.MultiGradient
Imports
java.awt.GradientPaint, .LinearGradientPaint, .MultipleGradientPaint, .MultipleGradientPaint.ColorSpaceType, .MultipleGradientPaint.CycleMethod, .RadialGradientPaint, .TexturePaint, java.awt.image.BufferedImage, java.util.HashMap, .Map, sun.java2d.SunGraphics2D, .SurfaceData, sun.java2d.loops.CompositeType

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
OGLPaints.Gradient

GradientPaint support

private static class
OGLPaints.LinearGradient

LinearGradientPaint support

private abstract static class
OGLPaints.MultiGradient

Shared MultipleGradientPaint support

private static class
OGLPaints.RadialGradient

RadialGradientPaint support

private static class
OGLPaints.Texture

TexturePaint support

Field Summary

Modifier and TypeField and Description
private static Map<Integer, OGLPaints>
impls

Holds all registered implementations, using the corresponding SunGraphics2D.PAINT_* constant as the hash key.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod 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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

implsback to summary
private static Map<Integer, OGLPaints> impls

Holds all registered implementations, using the corresponding SunGraphics2D.PAINT_* constant as the hash key.

Constructor Detail

OGLPaintsback to summary
pack-priv OGLPaints()

Method Detail

isPaintValidback 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.

isValidback 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.

sun.java2d.opengl back to summary

private Class OGLPaints.Gradient

extends OGLPaints
Class Inheritance

GradientPaint support

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
isPaintValid(SunGraphics2D sg2d)

Implements abstract sun.java2d.opengl.OGLPaints.isPaintValid.

There are no restrictions for accelerating GradientPaint, so this method always returns true.

Inherited from sun.java2d.opengl.OGLPaints:
isValid

Constructor Detail

Gradientback to summary
private Gradient()

Method Detail

isPaintValidback to summary
pack-priv boolean isPaintValid(SunGraphics2D sg2d)

Implements abstract sun.java2d.opengl.OGLPaints.isPaintValid.

There are no restrictions for accelerating GradientPaint, so this method always returns true.

Annotations
@Override
sun.java2d.opengl back to summary

private Class OGLPaints.LinearGradient

extends MultiGradient
Class Inheritance

LinearGradientPaint support

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
isPaintValid(SunGraphics2D sg2d)

Overrides sun.java2d.opengl.OGLPaints.MultiGradient.isPaintValid.

Returns true if the given MultipleGradientPaint instance can be used by the accelerated OGLPaints.MultiGradient implementation.

Constructor Detail

LinearGradientback to summary
private LinearGradient()

Method Detail

isPaintValidback to summary
pack-priv boolean isPaintValid(SunGraphics2D sg2d)

Overrides sun.java2d.opengl.OGLPaints.MultiGradient.isPaintValid.

Doc from sun.java2d.opengl.OGLPaints.MultiGradient.isPaintValid.

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

Annotations
@Override
sun.java2d.opengl back to summary

private abstract Class OGLPaints.MultiGradient

extends OGLPaints
Class Inheritance
Known Direct Subclasses
sun.java2d.opengl.OGLPaints.LinearGradient, sun.java2d.opengl.OGLPaints.RadialGradient

Shared MultipleGradientPaint support

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
isPaintValid(SunGraphics2D sg2d)

Implements abstract sun.java2d.opengl.OGLPaints.isPaintValid.

Returns true if the given MultipleGradientPaint instance can be used by the accelerated OGLPaints.MultiGradient implementation.

Inherited from sun.java2d.opengl.OGLPaints:
isValid

Constructor Detail

MultiGradientback to summary
protected MultiGradient()

Method Detail

isPaintValidback to summary
pack-priv boolean isPaintValid(SunGraphics2D sg2d)

Implements abstract sun.java2d.opengl.OGLPaints.isPaintValid.

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

Annotations
@Override
sun.java2d.opengl back to summary

private Class OGLPaints.RadialGradient

extends MultiGradient
Class Inheritance

RadialGradientPaint support

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from sun.java2d.opengl.OGLPaints.MultiGradient:
isPaintValid

Constructor Detail

RadialGradientback to summary
private RadialGradient()
sun.java2d.opengl back to summary

private Class OGLPaints.Texture

extends OGLPaints
Class Inheritance

TexturePaint support

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
isPaintValid(SunGraphics2D sg2d)

Implements abstract sun.java2d.opengl.OGLPaints.isPaintValid.

Returns true if the given TexturePaint instance can be used by the accelerated OGLPaints.Texture implementation.

Inherited from sun.java2d.opengl.OGLPaints:
isValid

Constructor Detail

Textureback to summary
private Texture()

Method Detail

isPaintValidback to summary
pack-priv boolean isPaintValid(SunGraphics2D sg2d)

Implements abstract sun.java2d.opengl.OGLPaints.isPaintValid.

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

Annotations
@Override