public abstract class Effect
extends java.lang.Object
Node
by setting
the Node.effect
attribute.
Some effects change the color properties of the source pixels
(such as ColorAdjust
),
others combine multiple images together (such as Blend
),
while still others warp or move the pixels of the source image around
(such as DisplacementMap
or PerspectiveTransform
).
All effects have at least one input defined and the input can be set
to another effect to chain the effects together and combine their
results, or it can be left unspecified in which case the effect will
operate on a graphical rendering of the node it is attached to.
Note: this is a conditional feature. See
ConditionalFeature.EFFECT
for more information.
Modifier and Type | Class and Description |
---|---|
(package private) class |
Effect.EffectInputChangeListener |
(package private) class |
Effect.EffectInputProperty |
Modifier and Type | Field and Description |
---|---|
private IntegerProperty |
effectDirty |
private com.sun.scenario.effect.Effect |
peer |
Modifier | Constructor and Description |
---|---|
protected |
Effect()
Creates a new Effect.
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract boolean |
checkChainContains(Effect e) |
private void |
clearEffectDirty(EffectDirtyBits dirtyBit)
Clear the specified dirty bit
|
(package private) boolean |
containsCycles(Effect value) |
(package private) abstract Effect |
copy() |
(package private) abstract com.sun.scenario.effect.Effect |
createPeer() |
(package private) void |
effectBoundsChanged() |
private IntegerProperty |
effectDirtyProperty() |
(package private) abstract BaseBounds |
getBounds(BaseBounds bounds,
BaseTransform tx,
Node node,
BoundsAccessor boundsAccessor)
Returns bounds of given node with applied effect.
|
(package private) static BaseBounds |
getInputBounds(BaseBounds bounds,
BaseTransform tx,
Node node,
BoundsAccessor boundsAccessor,
Effect input) |
(package private) static int |
getKernelSize(float fsize,
int iterations) |
(package private) com.sun.scenario.effect.Effect |
getPeer() |
(package private) static BaseBounds |
getShadowBounds(BaseBounds bounds,
BaseTransform tx,
float width,
float height,
BlurType blurType) |
private boolean |
isEffectDirty() |
private boolean |
isEffectDirty(EffectDirtyBits dirtyBit)
Test the specified dirty bit
|
(package private) void |
markDirty(EffectDirtyBits dirtyBit)
Set the specified dirty bit
|
private void |
setEffectDirty(int value) |
(package private) void |
sync() |
private void |
toggleDirty(EffectDirtyBits dirtyBit)
Toggle the specified dirty bit
|
(package private) static BaseBounds |
transformBounds(BaseTransform tx,
BaseBounds r) |
(package private) abstract void |
update() |
private com.sun.scenario.effect.Effect peer
private IntegerProperty effectDirty
void effectBoundsChanged()
abstract com.sun.scenario.effect.Effect createPeer()
com.sun.scenario.effect.Effect getPeer()
private void setEffectDirty(int value)
private final IntegerProperty effectDirtyProperty()
private final boolean isEffectDirty()
final void markDirty(EffectDirtyBits dirtyBit)
private void toggleDirty(EffectDirtyBits dirtyBit)
private boolean isEffectDirty(EffectDirtyBits dirtyBit)
private void clearEffectDirty(EffectDirtyBits dirtyBit)
final void sync()
abstract void update()
abstract boolean checkChainContains(Effect e)
boolean containsCycles(Effect value)
abstract BaseBounds getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
abstract Effect copy()
static BaseBounds transformBounds(BaseTransform tx, BaseBounds r)
static int getKernelSize(float fsize, int iterations)
static BaseBounds getShadowBounds(BaseBounds bounds, BaseTransform tx, float width, float height, BlurType blurType)
static BaseBounds getInputBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor, Effect input)