modules/graphics/src/main/java/com/sun/scenario/effect/ImageData.java

Print this page




 200             fctx = null;
 201             image = null;
 202             if (alldatas != null) {
 203                 alldatas.remove(this);
 204             }
 205         }
 206     }
 207 
 208     /**
 209      * Validates this image data for the use with the passed
 210      * {@link FilterContext}.
 211      *
 212      * @param fctx context to validate against
 213      * @return {@code true} if this object is valid and compatible with
 214      * the passed {@code FilterContext}, {@code false} otherwise.
 215      */
 216     public boolean validate(FilterContext fctx) {
 217         return image != null &&
 218                Renderer.getRenderer(fctx).isImageDataCompatible(this);
 219     }












 220 }


 200             fctx = null;
 201             image = null;
 202             if (alldatas != null) {
 203                 alldatas.remove(this);
 204             }
 205         }
 206     }
 207 
 208     /**
 209      * Validates this image data for the use with the passed
 210      * {@link FilterContext}.
 211      *
 212      * @param fctx context to validate against
 213      * @return {@code true} if this object is valid and compatible with
 214      * the passed {@code FilterContext}, {@code false} otherwise.
 215      */
 216     public boolean validate(FilterContext fctx) {
 217         return image != null &&
 218                Renderer.getRenderer(fctx).isImageDataCompatible(this);
 219     }
 220 
 221     @Override
 222     public String toString() {
 223         return "ImageData{" +
 224                 "sharedOwner=" + sharedOwner +
 225                 ", fctx=" + fctx +
 226                 ", refcount=" + refcount +
 227                 ", image=" + image +
 228                 ", bounds=" + bounds +
 229                 ", transform=" + transform +
 230                 ", reusable=" + reusable + '}';
 231     }
 232 }