Top Fields Constructors Methods
com.sun.javafx.sg.prism

pack-priv Class EffectUtil

extends Object
Class Inheritance
Imports
com.sun.prism.Graphics, .Image, .Texture, com.sun.prism.paint.Color, com.sun.scenario.effect.Color4f, .DropShadow, .Effect, .InnerShadow

Field Summary

Modifier and TypeField and Description
private static Texture
private static Texture
private static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
drawClippedTexture(Graphics g, Texture tex, float cx1, float cy1, float cx2, float cy2, float ox1, float oy1, float ox2, float oy2, float tx1, float ty1, float tx2, float ty2)

private static void
fillGaussian(byte[] pixels, int dim, float r, float spread, boolean inner)

pack-priv static boolean
renderEffectForRectangularNode(NGNode node, Graphics g, Effect effect, float alpha, boolean aa, float rx, float ry, float rw, float rh)

If possible, uses an optimized codepath to render the an effect (InnerShadow or DropShadow) on the given rectangular node (NGRectangle, NGImageView, etc).

pack-priv static void
renderRectDropShadow(Graphics g, DropShadow shadow, float alpha, float rx, float ry, float rw, float rh)

pack-priv static void
renderRectInnerShadow(Graphics g, InnerShadow shadow, float alpha, float rx, float ry, float rw, float rh)

private static Color
toPrismColor(Color4f decoraColor, float alpha)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dtexback to summary
private static Texture dtex
itexback to summary
private static Texture itex
TEX_SIZEback to summary
private static final int TEX_SIZE

Constructor Detail

EffectUtilback to summary
private EffectUtil()

Method Detail

drawClippedTextureback to summary
pack-priv static void drawClippedTexture(Graphics g, Texture tex, float cx1, float cy1, float cx2, float cy2, float ox1, float oy1, float ox2, float oy2, float tx1, float ty1, float tx2, float ty2)
fillGaussianback to summary
private static void fillGaussian(byte[] pixels, int dim, float r, float spread, boolean inner)
renderEffectForRectangularNodeback to summary
pack-priv static boolean renderEffectForRectangularNode(NGNode node, Graphics g, Effect effect, float alpha, boolean aa, float rx, float ry, float rw, float rh)

If possible, uses an optimized codepath to render the an effect (InnerShadow or DropShadow) on the given rectangular node (NGRectangle, NGImageView, etc). If successful, returns true; otherwise returns false to indicate that the caller should fall back on existing methods to render the effect.

renderRectDropShadowback to summary
pack-priv static void renderRectDropShadow(Graphics g, DropShadow shadow, float alpha, float rx, float ry, float rw, float rh)
renderRectInnerShadowback to summary
pack-priv static void renderRectInnerShadow(Graphics g, InnerShadow shadow, float alpha, float rx, float ry, float rw, float rh)
toPrismColorback to summary
private static Color toPrismColor(Color4f decoraColor, float alpha)