APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.scenario.effect.impl.state

public Class GaussianShadowState

extends GaussianBlurState
Class Inheritance
Imports
com.sun.scenario.effect.Color4f

The helper class for defining a 1 dimensional linear convolution shadow kernel for the Gaussian Shadow shader. This class leverages the GaussianBlurState class for defining the kernel and simply stores additional shadowColor and spread properties for the associated support methods for the shadow version of the shader.

Field Summary

Modifier and TypeField and Description
private Color4f
private float

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public Color4f
public float
public boolean
isNop()

Overrides com.sun.scenario.effect.impl.state.GaussianBlurState.isNop.

Returns true if the entire operation of this linear convolution would have no effect on the source data.

public boolean
isShadow()

Overrides com.sun.scenario.effect.impl.state.LinearConvolveKernel.isShadow.

Returns true if this is a LinearConvolveShadow operation, or false if the operation is a regular LinearConvolve.

public void
setShadowColor(Color4f shadowColor)

public void
setSpread(float spread)

Inherited from com.sun.scenario.effect.impl.state.GaussianBlurState:
getHRadiusgetKernelSizegetPadgetRadiusgetRadiusgetRenderStategetVRadiussetHRadiussetRadiussetVRadius

Field Detail

shadowColorback to summary
private Color4f shadowColor
spreadback to summary
private float spread

Constructor Detail

GaussianShadowStateback to summary
public GaussianShadowState()

Method Detail

checkRadiusback to summary
pack-priv void checkRadius(float radius)

Overrides com.sun.scenario.effect.impl.state.GaussianBlurState.checkRadius.

Annotations
@Override
getShadowColorback to summary
public Color4f getShadowColor()

Overrides com.sun.scenario.effect.impl.state.GaussianBlurState.getShadowColor.

Annotations
@Override
getSpreadback to summary
public float getSpread()

Overrides com.sun.scenario.effect.impl.state.GaussianBlurState.getSpread.

Annotations
@Override
isNopback to summary
public boolean isNop()

Overrides com.sun.scenario.effect.impl.state.GaussianBlurState.isNop.

Doc from com.sun.scenario.effect.impl.state.LinearConvolveKernel.isNop.

Returns true if the entire operation of this linear convolution would have no effect on the source data.

Annotations
@Override
isShadowback to summary
public boolean isShadow()

Overrides com.sun.scenario.effect.impl.state.LinearConvolveKernel.isShadow.

Doc from com.sun.scenario.effect.impl.state.LinearConvolveKernel.isShadow.

Returns true if this is a LinearConvolveShadow operation, or false if the operation is a regular LinearConvolve.

Annotations
@Override
setShadowColorback to summary
public void setShadowColor(Color4f shadowColor)
setSpreadback to summary
public void setSpread(float spread)