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

public abstract Class AbstractShadow

extends LinearConvolveCoreEffect
Class Inheritance
Known Direct Subclasses
com.sun.scenario.effect.BoxShadow, com.sun.scenario.effect.GaussianShadow

An implementation supertype for both Gaussian and Box filter based shadows to facilitate their conditional usage inside the various composite shadow effects like DropShadow and InnerShadow. The radius, width and height parameters all refer to the corresponding dimension that a "Gaussian" blur filter would use - other shadow implementations will have to use whatever parameters produce a similar effect. The width and height parameters should relate to the radius parameter by the equation w,h = 2 * r + 1 and if the width and height are set to something different then the radius parameter will be an average of the corresponding individual dimensional radius values.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract Color4f
public abstract float
public abstract float
public abstract float
public abstract Effect
public abstract AbstractShadow.ShadowMode
public abstract float
public abstract AbstractShadow
public abstract void
public abstract void
public abstract void
public abstract void
public abstract void
public abstract void
setSpread(float spread)

Inherited from com.sun.scenario.effect.LinearConvolveCoreEffect:
filterImageDatasgetRenderStategetState

Constructor Detail

AbstractShadowback to summary
public AbstractShadow(Effect input)

Method Detail

getColorback to summary
public abstract Color4f getColor()
getGaussianHeightback to summary
public abstract float getGaussianHeight()
getGaussianRadiusback to summary
public abstract float getGaussianRadius()
getGaussianWidthback to summary
public abstract float getGaussianWidth()
getInputback to summary
public abstract Effect getInput()
getModeback to summary
public abstract AbstractShadow.ShadowMode getMode()
getSpreadback to summary
public abstract float getSpread()
implForback to summary
public abstract AbstractShadow implFor(AbstractShadow.ShadowMode m)
setColorback to summary
public abstract void setColor(Color4f c)
setGaussianHeightback to summary
public abstract void setGaussianHeight(float h)
setGaussianRadiusback to summary
public abstract void setGaussianRadius(float r)
setGaussianWidthback to summary
public abstract void setGaussianWidth(float w)
setInputback to summary
public abstract void setInput(Effect input)
setSpreadback to summary
public abstract void setSpread(float spread)
com.sun.scenario.effect back to summary

public final Enum AbstractShadow.ShadowMode

extends Enum<AbstractShadow.ShadowMode>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final AbstractShadow.ShadowMode
public static final AbstractShadow.ShadowMode
public static final AbstractShadow.ShadowMode
public static final AbstractShadow.ShadowMode

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

GAUSSIANback to summary
public static final AbstractShadow.ShadowMode GAUSSIAN
ONE_PASS_BOXback to summary
public static final AbstractShadow.ShadowMode ONE_PASS_BOX
THREE_PASS_BOXback to summary
public static final AbstractShadow.ShadowMode THREE_PASS_BOX
TWO_PASS_BOXback to summary
public static final AbstractShadow.ShadowMode TWO_PASS_BOX

Constructor Detail

ShadowModeback to summary
private ShadowMode()

Method Detail

valueOfback to summary
public static AbstractShadow.ShadowMode valueOf(String name)
valuesback to summary
public static AbstractShadow.ShadowMode[] values()