public class ImageData
extends java.lang.Object
Image
and the valid source
region thereof. Instances of ImageData
can be used as the input
or output from an EffectPeer
.
Instances of this class must be validated against the FilterContext
it intended to be used with using
validate(com.sun.scenario.effect.FilterContext)
method.Modifier and Type | Field and Description |
---|---|
private static java.util.HashSet<ImageData> |
alldatas |
private Rectangle |
bounds |
private FilterContext |
fctx |
private java.lang.Throwable |
fromwhere |
private Filterable |
image |
private int |
refcount |
private boolean |
reusable |
private ImageData |
sharedOwner |
private BaseTransform |
transform |
Modifier | Constructor and Description |
---|---|
|
ImageData(FilterContext fctx,
Filterable image,
Rectangle bounds) |
|
ImageData(FilterContext fctx,
Filterable image,
Rectangle bounds,
BaseTransform transform) |
private |
ImageData(ImageData original,
BaseTransform transform,
Rectangle bounds) |
Modifier and Type | Method and Description |
---|---|
boolean |
addref() |
FilterContext |
getFilterContext() |
int |
getReferenceCount() |
BaseTransform |
getTransform() |
Rectangle |
getTransformedBounds(Rectangle clip) |
Filterable |
getTransformedImage(Rectangle clip) |
Rectangle |
getUntransformedBounds() |
Filterable |
getUntransformedImage() |
void |
releaseTransformedImage(Filterable tximage) |
void |
setReusable(boolean reusable) |
java.lang.String |
toString() |
ImageData |
transform(BaseTransform concattx) |
void |
unref() |
boolean |
validate(FilterContext fctx)
Validates this image data for the use with the passed
FilterContext . |
private static java.util.HashSet<ImageData> alldatas
private ImageData sharedOwner
private FilterContext fctx
private int refcount
private Filterable image
private final Rectangle bounds
private BaseTransform transform
private java.lang.Throwable fromwhere
private boolean reusable
public ImageData(FilterContext fctx, Filterable image, Rectangle bounds)
public ImageData(FilterContext fctx, Filterable image, Rectangle bounds, BaseTransform transform)
private ImageData(ImageData original, BaseTransform transform, Rectangle bounds)
public ImageData transform(BaseTransform concattx)
public void setReusable(boolean reusable)
public FilterContext getFilterContext()
public Filterable getUntransformedImage()
public Rectangle getUntransformedBounds()
public BaseTransform getTransform()
public Filterable getTransformedImage(Rectangle clip)
public void releaseTransformedImage(Filterable tximage)
public int getReferenceCount()
public boolean addref()
public void unref()
public boolean validate(FilterContext fctx)
FilterContext
.fctx
- context to validate againsttrue
if this object is valid and compatible with
the passed FilterContext
, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object