class EffectUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Texture |
dtex |
private static Texture |
itex |
private static int |
TEX_SIZE |
Modifier | Constructor and Description |
---|---|
private |
EffectUtil() |
Modifier and Type | Method and Description |
---|---|
(package private) 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) |
(package private) 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).
|
(package private) static void |
renderRectDropShadow(Graphics g,
DropShadow shadow,
float alpha,
float rx,
float ry,
float rw,
float rh) |
(package private) 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) |
private static final int TEX_SIZE
private static Texture itex
private static Texture dtex
static boolean renderEffectForRectangularNode(NGNode node, Graphics g, Effect effect, float alpha, boolean aa, float rx, float ry, float rw, float rh)
static void renderRectInnerShadow(Graphics g, InnerShadow shadow, float alpha, float rx, float ry, float rw, float rh)
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)
static void renderRectDropShadow(Graphics g, DropShadow shadow, float alpha, float rx, float ry, float rw, float rh)
private static void fillGaussian(byte[] pixels, int dim, float r, float spread, boolean inner)