APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf.nimbus

pack-priv Class InnerShadowEffect

extends ShadowEffect
Class Inheritance
Known Direct Subclasses
javax.swing.plaf.nimbus.InnerGlowEffect
Imports
java.awt.image.BufferedImage, .Raster, .WritableRaster, java.util.Arrays

InnerShadowEffect - This effect currently only works with ARGB type buffered images.
Author
Created by Jasper Potts (Jun 18, 2007)

Field Summary

Inherited from javax.swing.plaf.nimbus.ShadowEffect:
anglecolordistanceopacitysizespread

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv BufferedImage

Returns:

Image with the result of the effect
applyEffect
(BufferedImage
The source image for applying the effect to
src
,
BufferedImage
The destination image to paint effect result into. If this is null then a new image will be created
dst
,
int
The width of the src image to apply effect to, this allow the src and dst buffers to be bigger than the area the need effect applied to it
w
,
int
The height of the src image to apply effect to, this allow the src and dst buffers to be bigger than the area the need effect applied to it
h
)

Implements abstract javax.swing.plaf.nimbus.Effect.applyEffect.

Apply the effect to the src image generating the result .

pack-priv Effect.EffectType
getEffectType()

Implements abstract javax.swing.plaf.nimbus.Effect.getEffectType.

Get the type of this effect, one of UNDER, BLENDED, OVER.

Inherited from javax.swing.plaf.nimbus.ShadowEffect:
getAnglegetColorgetDistancegetOpacitygetSizegetSpreadsetAnglesetColorsetDistancesetOpacitysetSizesetSpread

Constructor Detail

InnerShadowEffectback to summary
pack-priv InnerShadowEffect()

Method Detail

applyEffectback to summary
pack-priv BufferedImage applyEffect(BufferedImage src, BufferedImage dst, int w, int h)

Implements abstract javax.swing.plaf.nimbus.Effect.applyEffect.

Apply the effect to the src image generating the result . The result image may or may not contain the source image depending on what the effect type is.

Parameters
src:BufferedImage

The source image for applying the effect to

dst:BufferedImage

The destination image to paint effect result into. If this is null then a new image will be created

w:int

The width of the src image to apply effect to, this allow the src and dst buffers to be bigger than the area the need effect applied to it

h:int

The height of the src image to apply effect to, this allow the src and dst buffers to be bigger than the area the need effect applied to it

Returns:BufferedImage

Image with the result of the effect

getEffectTypeback to summary
pack-priv Effect.EffectType getEffectType()

Implements abstract javax.swing.plaf.nimbus.Effect.getEffectType.

Doc from javax.swing.plaf.nimbus.Effect.getEffectType.

Get the type of this effect, one of UNDER, BLENDED, OVER.

  • UNDER means the result of applying the effect should be painted under the src image.
  • BLENDED means the result of applying the effect contains a modified src image, so it should just be painted.
  • OVER means the result of applying the effect should be painted over the src image.