Effect subclasses that
delegate their operations to a tree of other Effect
implementations.
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public ImageData | filter(FilterContext
the fctx, BaseTransform FilterContext that determines the
environment (e.g. the graphics device or code path) on which
the filter operation will be performedan optional transform under which the filter and
its inputs will be viewed transform, Rectangle the device space (pixel) bounds of the output
image or window or clip into which the result of the Effect will
be rendered, or null if the output dimensions are not known. outputClip, Object an object which might be used to render
the results of the effect directly. renderHelper, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null input.Implements abstract com. Applies this filter effect to the series of images represented by
the input |
| public Effect. | getAccelType(FilterContext fctx)
Implements abstract com. Returns one of the |
| public BaseBounds | getBounds(BaseTransform
the transform the effect will be viewed under transform, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputImplements abstract com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified |
| protected abstract Effect | Returns: theEffect object to delegate to.Returns the |
| public DirtyRegionContainer | getDirtyRegions(Effect
the default input defaultInput, DirtyRegionPool Effect to be used in
all cases where a filter has a null inputthe pool of dirty regions regionPool)Overrides com. Returns the dirty region container containing dirty regions affected by this filter operation. |
| public boolean | reducesOpaquePixels()
Implements abstract com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. |
| public Point2D | transform(Point2D
the point in the coordinate space of the primary content
input to be transformed p, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputOverrides com. Transform the specified point |
| public Point2D | untransform(Point2D
the point in the coordinate space of the result output
to be transformed p, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputOverrides com. Transform the specified point |
| DelegateEffect | back to summary |
|---|---|
| protected DelegateEffect(Effect input) | |
| DelegateEffect | back to summary |
|---|---|
| protected DelegateEffect(Effect input1, Effect input2) | |
| filter | back to summary |
|---|---|
| public ImageData filter(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput) Implements abstract com. Doc from com. Applies this filter effect to the series of images represented by
the input
The filter might be able to use the
Note that the
boolean valid;
do {
ImageData res = filter(fctx, transform, clip, renderer, defaultInput);
if (res == null) {
break;
}
if (valid = res.validate(fctx)) {
// Render res.getImage() to the appropriate destination
// or use it as an input to another chain of effects.
}
res.unref();
} while (!valid);
| |
| getAccelType | back to summary |
|---|---|
| public Effect. Implements abstract com. Doc from com. Returns one of the | |
| getBounds | back to summary |
|---|---|
| public BaseBounds getBounds(BaseTransform transform, Effect defaultInput) Implements abstract com. Doc from com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified
| |
| getDelegate | back to summary |
|---|---|
| protected abstract Effect getDelegate() Returns the
| |
| getDirtyRegions | back to summary |
|---|---|
| public DirtyRegionContainer getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool) Overrides com. Doc from com. Returns the dirty region container containing dirty regions affected by this filter operation.
| |
| reducesOpaquePixels | back to summary |
|---|---|
| public boolean reducesOpaquePixels() Implements abstract com. Doc from com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. It is always safe to return true from this method, though the consequences may be that the caller chooses to not utilize a planned optimization.
| |
| transform | back to summary |
|---|---|
| public Point2D transform(Point2D p, Effect defaultInput) Overrides com. Doc from com. Transform the specified point
The definition of which input represents the primary content input
and how the coordinate space of that input compares to the coordinate
space of the result varies from effect to effect.
Note that some effects may have a reasonable definition of how to
map source coordinates to destination coordinates, but not the
reverse.
In particular, effects which map source coordinates discontiguously
into the result may have several output coordinates that are affected
by a given input coordinate and may choose to return one of many
equally valid answers, or an undefined result such as | |
| untransform | back to summary |
|---|---|
| public Point2D untransform(Point2D p, Effect defaultInput) Overrides com. Doc from com. Transform the specified point
The definition of which input represents the primary content input
and how the coordinate space of that input compares to the coordinate
space of the result varies from effect to effect.
Note that some effects may have a reasonable definition of how to
map destination coordinates back to source coordinates, but not the
reverse.
In particular, effects which produce entirely synthetic results not
based on any content input may not be able to give a meaningful
result to this query and may return undefined coordinates such as
| |