APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.javafx.sg.prism

public final Class NodeEffectInput

extends Effect
Class Inheritance
Imports
com.sun.javafx.geom.BaseBounds, .DirtyRegionContainer, .DirtyRegionPool, .RectBounds, .Rectangle, com.sun.javafx.geom.transform.BaseTransform, com.sun.prism.Graphics, com.sun.scenario.effect.Effect, .FilterContext, .ImageData, com.sun.scenario.effect.impl.prism.PrDrawable, .PrRenderInfo

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private ImageData
private BaseTransform
private ImageData
private NGNode
private NodeEffectInput.RenderType
private BaseBounds
Inherited from com.sun.scenario.effect.Effect:
DefaultInput

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static boolean
contains(ImageData cachedImage, Rectangle imgbounds)

public ImageData
filter(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput)

Implements abstract com.sun.scenario.effect.Effect.filter.

Applies this filter effect to the series of images represented by the input Effects and/or the given defaultInput viewed under the given transform.

public void
public void
public void
public Effect.AccelType
getAccelType(FilterContext fctx)

Implements abstract com.sun.scenario.effect.Effect.getAccelType.

Returns one of the AccelType values, indicating whether this Effect is accelerated in hardware for the given FilterContext.

public BaseBounds
getBounds(BaseTransform transform, Effect defaultInput)

Implements abstract com.sun.scenario.effect.Effect.getBounds.

Returns the bounding box that will be affected by this filter operation when viewed under the specified transform, given its list of input Effects and the specified defaultInput effect.

public DirtyRegionContainer
getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool)

Overrides com.sun.scenario.effect.Effect.getDirtyRegions.

Returns the dirty region container containing dirty regions affected by this filter operation.

pack-priv static Rectangle
private static ImageData
getImageDataForBoundedNode(FilterContext fctx, NGNode node, NodeEffectInput.RenderType renderType, BaseTransform transform, Rectangle bounds)

bounds parameter must be a non-static unshared object which can be saved in the returned ImageData object.

pack-priv static ImageData
getImageDataForNode(FilterContext fctx, NGNode node, boolean contentOnly, BaseTransform transform, Rectangle clip)

public NGNode
public boolean
reducesOpaquePixels()

Implements abstract com.sun.scenario.effect.Effect.reducesOpaquePixels.

Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input.

public void
public void
Inherited from com.sun.scenario.effect.Effect:
combineBoundscombineBoundscreateCompatibleImageensureTransformgetCompatibleImagegetInputsgetNumInputsgetResultBoundsreleaseCompatibleImagesetInputtransformtransformBoundsuntransform

Field Detail

cachedIdentityImageDataback to summary
private ImageData cachedIdentityImageData
cachedTransformback to summary
private BaseTransform cachedTransform
cachedTransformedImageDataback to summary
private ImageData cachedTransformedImageData
nodeback to summary
private NGNode node
renderTypeback to summary
private NodeEffectInput.RenderType renderType
tempBoundsback to summary
private BaseBounds tempBounds

Constructor Detail

NodeEffectInputback to summary
public NodeEffectInput(NGNode node)
NodeEffectInputback to summary
public NodeEffectInput(NGNode node, NodeEffectInput.RenderType renderType)

Method Detail

containsback to summary
pack-priv static boolean contains(ImageData cachedImage, Rectangle imgbounds)
filterback to summary
public ImageData filter(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput)

Implements abstract com.sun.scenario.effect.Effect.filter.

Doc from com.sun.scenario.effect.Effect.filter.

Applies this filter effect to the series of images represented by the input Effects and/or the given defaultInput viewed under the given transform. The filter does not need to create pixel data for any pixels that fall outside of the destination device-space (pixel) bounds specified by the outputClip Rectangle.

The filter might be able to use the renderHelper object to render the results directly on its own if the object is not null and implements an interface, such as ImageHelper, that the filter recognizes. If the effect renders itself then it will return a null for the ImageData result.

Note that the ImageData object returned by this method must be validated prior to use with ImageData#validate(com.sun.scenario.effect.FilterContext) method.

      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);
      

Annotations
@Override
flushback to summary
public void flush()
flushIdentityImageback to summary
public void flushIdentityImage()
flushTransformedImageback to summary
public void flushTransformedImage()
getAccelTypeback to summary
public Effect.AccelType getAccelType(FilterContext fctx)

Implements abstract com.sun.scenario.effect.Effect.getAccelType.

Doc from com.sun.scenario.effect.Effect.getAccelType.

Returns one of the AccelType values, indicating whether this Effect is accelerated in hardware for the given FilterContext.

Annotations
@Override
getBoundsback to summary
public BaseBounds getBounds(BaseTransform transform, Effect defaultInput)

Implements abstract com.sun.scenario.effect.Effect.getBounds.

Doc from com.sun.scenario.effect.Effect.getBounds.

Returns the bounding box that will be affected by this filter operation when viewed under the specified transform, given its list of input Effects and the specified defaultInput effect. Note that the returned bounds can be smaller or larger than one or more of the inputs.

Annotations
@Override
getDirtyRegionsback to summary
public DirtyRegionContainer getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool)

Overrides com.sun.scenario.effect.Effect.getDirtyRegions.

Doc from com.sun.scenario.effect.Effect.getDirtyRegions.

Returns the dirty region container containing dirty regions affected by this filter operation.

Annotations
@Override
getImageBoundsForNodeback to summary
pack-priv static Rectangle getImageBoundsForNode(NGNode node, NodeEffectInput.RenderType type, BaseTransform transform, Rectangle clip)
getImageDataForBoundedNodeback to summary
private static ImageData getImageDataForBoundedNode(FilterContext fctx, NGNode node, NodeEffectInput.RenderType renderType, BaseTransform transform, Rectangle bounds)

bounds parameter must be a non-static unshared object which can be saved in the returned ImageData object.

getImageDataForNodeback to summary
pack-priv static ImageData getImageDataForNode(FilterContext fctx, NGNode node, boolean contentOnly, BaseTransform transform, Rectangle clip)
getNodeback to summary
public NGNode getNode()
reducesOpaquePixelsback to summary
public boolean reducesOpaquePixels()

Implements abstract com.sun.scenario.effect.Effect.reducesOpaquePixels.

Doc from com.sun.scenario.effect.Effect.reducesOpaquePixels.

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.

Annotations
@Override
renderback to summary
public void render(Graphics g, BaseTransform transform)
setNodeback to summary
public void setNode(NGNode node)
com.sun.javafx.sg.prism back to summary

public final Enum NodeEffectInput.RenderType

extends Enum<NodeEffectInput.RenderType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final NodeEffectInput.RenderType
public static final NodeEffectInput.RenderType
public static final NodeEffectInput.RenderType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NodeEffectInput.RenderType
public static NodeEffectInput.RenderType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLIPPED_CONTENTback to summary
public static final NodeEffectInput.RenderType CLIPPED_CONTENT
EFFECT_CONTENTback to summary
public static final NodeEffectInput.RenderType EFFECT_CONTENT
FULL_CONTENTback to summary
public static final NodeEffectInput.RenderType FULL_CONTENT

Constructor Detail

RenderTypeback to summary
private RenderType()

Method Detail

valueOfback to summary
public static NodeEffectInput.RenderType valueOf(String name)
valuesback to summary
public static NodeEffectInput.RenderType[] values()