Top Description Fields Constructors Methods
com.sun.scenario.effect

pack-priv abstract Class CoreEffect<T extends RenderState>

extends FilterEffect<T extends RenderState>
Class Inheritance
Known Direct Subclasses
com.sun.scenario.effect.Crop, com.sun.scenario.effect.DisplacementMap, com.sun.scenario.effect.Flood, com.sun.scenario.effect.InvertMask, com.sun.scenario.effect.LinearConvolveCoreEffect, com.sun.scenario.effect.Merge, com.sun.scenario.effect.PerspectiveTransform, com.sun.scenario.effect.PhongLighting, com.sun.scenario.effect.Reflection, com.sun.scenario.effect.SepiaTone, com.sun.scenario.effect.ZoomRadialBlur, com.sun.scenario.effect.Blend, com.sun.scenario.effect.Brightpass, com.sun.scenario.effect.ColorAdjust
Imports
com.sun.scenario.effect.impl.EffectPeer, .Renderer, com.sun.javafx.geom.Rectangle, com.sun.javafx.geom.transform.BaseTransform, com.sun.scenario.effect.impl.state.RenderState

Package-private base class for built-in effects, i.e., those that are backed by an EffectPeer implementation.

Field Summary

Modifier and TypeField and Description
private int
private String

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
pack-priv
CoreEffect(Effect input1, Effect input2)

Method Summary

Modifier and TypeMethod and Description
public ImageData
filterImageDatas(FilterContext fctx, BaseTransform transform, Rectangle outputClip, T rstate, ImageData... inputs)

Implements abstract com.sun.scenario.effect.FilterEffect.filterImageDatas.

Convenience method that sends the given input data through the current peer, and then attempts to release the input image data.

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.

private EffectPeer<T extends RenderState>
getPeer(FilterContext fctx, int approxW, int approxH)

pack-priv final EffectPeer<T extends RenderState>
getPeer(FilterContext fctx, ImageData[] inputs)

Returns an EffectPeer that is most optimal for the size of the operation, which is inferred from the given inputs.

pack-priv final void
pack-priv final void
updatePeerKey(String key, int unrollCount)

Inherited from com.sun.scenario.effect.FilterEffect:
filtergetBoundsgetRenderStatetransformuntransformuntransformClip

Field Detail

peerCountback to summary
private int peerCount
peerKeyback to summary
private String peerKey

Constructor Detail

CoreEffectback to summary
pack-priv CoreEffect()
CoreEffectback to summary
pack-priv CoreEffect(Effect input)
CoreEffectback to summary
pack-priv CoreEffect(Effect input1, Effect input2)

Method Detail

filterImageDatasback to summary
public ImageData filterImageDatas(FilterContext fctx, BaseTransform transform, Rectangle outputClip, T rstate, ImageData... inputs)

Implements abstract com.sun.scenario.effect.FilterEffect.filterImageDatas.

Convenience method that sends the given input data through the current peer, and then attempts to release the input image data.

Annotations
@Override
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
getPeerback to summary
private EffectPeer<T extends RenderState> getPeer(FilterContext fctx, int approxW, int approxH)
getPeerback to summary
pack-priv final EffectPeer<T extends RenderState> getPeer(FilterContext fctx, ImageData[] inputs)

Returns an EffectPeer that is most optimal for the size of the operation, which is inferred from the given inputs. For example, smaller operations may run faster in software (by avoiding high overhead of shader-based operations) so here we choose an appropriate Renderer/EffectPeer combination based on the dimensions of the first input.

updatePeerKeyback to summary
pack-priv final void updatePeerKey(String key)
updatePeerKeyback to summary
pack-priv final void updatePeerKey(String key, int unrollCount)