| Modifier and Type | Field and Description |
|---|---|
| private final BoxShadowState |
| Access | Constructor and Description |
|---|---|
| public | BoxShadow()
Constructs a new |
| public | BoxShadow(int
the horizontal size of the BoxShadow kernel hsize, int the vertical size of the BoxShadow kernel vsize)Constructs a new |
| public | BoxShadow(int
the horizontal size of the BoxShadow kernel hsize, int the vertical size of the BoxShadow kernel vsize, int the number of blur passes to execute passes)Constructs a new |
| public | BoxShadow(int
the horizontal size of the BoxShadow kernel hsize, int the vertical size of the BoxShadow kernel vsize, int the number of blur passes to execute passes, Effect the single input input)EffectConstructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public Effect. | getAccelType(FilterContext fctx)
Overrides com. Returns one of the |
| public BaseBounds | getBounds(BaseTransform
the transform the effect will be viewed under transform, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputOverrides com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified |
| public Color4f | Returns: the shadow colorImplements abstract com. Returns the shadow color. |
| public DirtyRegionContainer | getDirtyRegions(Effect
the default input defaultInput, DirtyRegionPool Effect to be used in
all cases where a filter has a null inputthe pool of dirty regions regionPool)Overrides com. Returns the dirty region container containing dirty regions affected by this filter operation. |
| public float | |
| public float | |
| public float | |
| public int | Returns: the horizontal size of the effect kernelReturns the horizontal size of the effect kernel. |
| public final Effect | Returns: the input for thisEffectImplements abstract com. Returns the input for this |
| public AbstractShadow. | |
| public int | Returns: the number of passes of the effect kernelReturns the number of passes of the effect kernel to control the quality of the blur. |
| public Rectangle | getResultBounds(BaseTransform transform, Rectangle outputClip, ImageData... inputDatas)
Overrides com.
|
| public float | Returns: the spread of the shadow effectImplements abstract com. Gets the spread of the shadow effect. |
| pack-priv LinearConvolveKernel | getState()
Implements abstract com. Returns state object that is associated with this effect instance. |
| public int | Returns: the vertical size of the effect kernelReturns the vertical size of the effect kernel. |
| public AbstractShadow | implFor(AbstractShadow.
Implements abstract com.
|
| public boolean | reducesOpaquePixels()
Implements abstract com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. |
| public final void | setColor(Color4f
the shadow color color)Implements abstract com. Sets the shadow color. |
| public void | setGaussianHeight(float h)
Implements abstract com.
|
| public void | setGaussianRadius(float r)
Implements abstract com.
|
| public void | setGaussianWidth(float w)
Implements abstract com.
|
| public final void | setHorizontalSize(int
the horizontal size of the effect kernel hsize)Sets the horizontal size of the effect kernel. |
| public void | setInput(Effect
the input for this input)EffectImplements abstract com. Sets the input for this |
| public final void | setPasses(int passes)
Sets the number of passes of the effect kernel to control the quality of the blur. |
| public final void | setSpread(float
the spread of the shadow effect spread)Implements abstract com. Sets the spread of the shadow effect. |
| public final void | setVerticalSize(int
the vertical size of the effect kernel vsize)Sets the vertical size of the effect kernel. |
| state | back to summary |
|---|---|
| private final BoxShadowState state | |
| BoxShadow | back to summary |
|---|---|
| public BoxShadow() Constructs a new
new BoxShadow(1, 1, 1, DefaultInput)
| |
| BoxShadow | back to summary |
|---|---|
| public BoxShadow(int hsize, int vsize) Constructs a new
new BoxShadow(hsize, vsize, 1, DefaultInput)
| |
| BoxShadow | back to summary |
|---|---|
| public BoxShadow(int hsize, int vsize, int passes) Constructs a new
new BoxShadow(hsize, vsize, passes, DefaultInput)
| |
| BoxShadow | back to summary |
|---|---|
| public BoxShadow(int hsize, int vsize, int passes, Effect input) Constructs a new
| |
| getAccelType | back to summary |
|---|---|
| public Effect. Overrides com. Doc from com. Returns one of the | |
| getBounds | back to summary |
|---|---|
| public BaseBounds getBounds(BaseTransform transform, Effect defaultInput) Overrides com. Doc from com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified
| |
| getColor | back to summary |
|---|---|
| public Color4f getColor() Implements abstract com. Returns the shadow color. | |
| getDirtyRegions | back to summary |
|---|---|
| public DirtyRegionContainer getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool) Overrides com. Doc from com. Returns the dirty region container containing dirty regions affected by this filter operation.
| |
| getGaussianHeight | back to summary |
|---|---|
| public float getGaussianHeight() Implements abstract com.
| |
| getGaussianRadius | back to summary |
|---|---|
| public float getGaussianRadius() Implements abstract com.
| |
| getGaussianWidth | back to summary |
|---|---|
| public float getGaussianWidth() Implements abstract com.
| |
| getHorizontalSize | back to summary |
|---|---|
| public int getHorizontalSize() Returns the horizontal size of the effect kernel.
| |
| getInput | back to summary |
|---|---|
| public final Effect getInput() Implements abstract com. Returns the input for this | |
| getMode | back to summary |
|---|---|
| public AbstractShadow. Implements abstract com.
| |
| getPasses | back to summary |
|---|---|
| public int getPasses() Returns the number of passes of the effect kernel to control the quality of the blur.
| |
| getResultBounds | back to summary |
|---|---|
| public Rectangle getResultBounds(BaseTransform transform, Rectangle outputClip, ImageData... inputDatas) Overrides com.
| |
| getSpread | back to summary |
|---|---|
| public float getSpread() Implements abstract com. Gets the spread of the shadow effect.
| |
| getState | back to summary |
|---|---|
| pack-priv LinearConvolveKernel getState() Implements abstract com. Doc from com. Returns state object that is associated with this effect instance. Subclasses may override this method to return some sort of state object that contains implementation details that are hidden from the public API. Classes outside this package can use the AccessHelper class to get access to this package-private method.
| |
| getVerticalSize | back to summary |
|---|---|
| public int getVerticalSize() Returns the vertical size of the effect kernel.
| |
| implFor | back to summary |
|---|---|
| public AbstractShadow implFor(AbstractShadow. Implements abstract com.
| |
| reducesOpaquePixels | back to summary |
|---|---|
| public boolean reducesOpaquePixels() Implements abstract com. Doc from com. 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.
| |
| setColor | back to summary |
|---|---|
| public final void setColor(Color4f color) Implements abstract com. Sets the shadow color.
Min: n/a
Max: n/a
Default: Color4f.BLACK
Identity: n/a
| |
| setGaussianHeight | back to summary |
|---|---|
| public void setGaussianHeight(float h) Implements abstract com.
| |
| setGaussianRadius | back to summary |
|---|---|
| public void setGaussianRadius(float r) Implements abstract com.
| |
| setGaussianWidth | back to summary |
|---|---|
| public void setGaussianWidth(float w) Implements abstract com.
| |
| setHorizontalSize | back to summary |
|---|---|
| public final void setHorizontalSize(int hsize) Sets the horizontal size of the effect kernel.
Min: 0
Max: 255
Default: 1
Identity: 0
| |
| setInput | back to summary |
|---|---|
| public void setInput(Effect input) Implements abstract com. Sets the input for this | |
| setPasses | back to summary |
|---|---|
| public final void setPasses(int passes) Sets the number of passes of the effect kernel to control the quality of the blur.
Min: 0
Max: 3
Default: 1
Identity: 0
A setting of 1 creates a low quality blur. A setting of 3 creates
a blur that is very close to a Gaussian blur.
| |
| setSpread | back to summary |
|---|---|
| public final void setSpread(float spread) Implements abstract com. Sets the spread of the shadow effect.
The spread is the portion of the radius where the contribution of
the source material will be 100%.
The remaining portion of the radius will have a contribution
controlled by the Blur kernel.
A spread of
Min: 0.0
Max: 1.0
Default: 0.0
Identity: 0.0
| |
| setVerticalSize | back to summary |
|---|---|
| public final void setVerticalSize(int vsize) Sets the vertical size of the effect kernel.
Min: 0
Max: 255
Default: 1
Identity: 0
| |