| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| 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 |
| 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 final Effect | |
| pack-priv static BaseTransform | |
| public int | Returns: the offset in the x direction, in pixels.Returns the offset in the x direction, in pixels. |
| public int | Returns: the offset in the y direction, in pixels.Returns the offset in the y direction, in pixels. |
| public boolean | reducesOpaquePixels()
Implements abstract com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. |
| public void | |
| public void | setX(int
the offset in the x direction, in pixels xoff)Sets the offset in the x direction, in pixels. |
| public void | setY(int
the offset in the y direction, in pixels yoff)Sets the offset in the y direction, in pixels. |
| 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 |
| Offset | back to summary |
|---|---|
| public Offset(int xoff, int yoff, Effect input) Constructs a new
| |
| 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
| |
| 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.
| |
| getInput | back to summary |
|---|---|
| public final Effect getInput() Returns the input for this
| |
| getOffsetTransform | back to summary |
|---|---|
| pack-priv static BaseTransform getOffsetTransform(BaseTransform transform, double xoff, double yoff) | |
| getX | back to summary |
|---|---|
| public int getX() Returns the offset in the x direction, in pixels.
| |
| getY | back to summary |
|---|---|
| public int getY() Returns the offset in the y direction, in pixels.
| |
| 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.
| |
| setInput | back to summary |
|---|---|
| public void setInput(Effect input) Sets the input for this
| |
| setX | back to summary |
|---|---|
| public void setX(int xoff) Sets the offset in the x direction, in pixels.
Min: Integer.MIN_VALUE
Max: Integer.MAX_VALUE
Default: 0
Identity: 0
| |
| setY | back to summary |
|---|---|
| public void setY(int yoff) Sets the offset in the y direction, in pixels.
Min: Integer.MIN_VALUE
Max: Integer.MAX_VALUE
Default: 0
Identity: 0
| |
| 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
| |