| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private Color | |
| public static final float[][] | GAUSSIAN_BLUR_KERNELS
The blur kernels applied across the effect |
| public static final int | NUM_KERNELS
The numberof kernels to apply |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | draw(BufferedImage image, Graphics2D g, UnicodeFont unicodeFont, Glyph glyph)
Implements com. Called to draw the effect. |
| private static float[][] | Returns: The kernels generatedThe number of kernels to generate level)Generate the blur kernels which will be repeatedly applied when blurring images |
| private static float[][] | Returns: The Pascal's triangle kernelThe level of the triangle to generate level)Generate Pascal's triangle |
| public int | |
| public int | |
| public Color | |
| public float | |
| public List | getValues()
Implements com. Returns the list of |
| public float | |
| public float | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setValues(List<E> values)
Implements com. Sets the list of |
| public void | |
| public void | |
| public String |
| blurKernelSize | back to summary |
|---|---|
| private int blurKernelSize | |
| blurPasses | back to summary |
|---|---|
| private int blurPasses | |
| color | back to summary |
|---|---|
| private Color color | |
| GAUSSIAN_BLUR_KERNELS | back to summary |
|---|---|
| public static final float[][] GAUSSIAN_BLUR_KERNELS The blur kernels applied across the effect | |
| NUM_KERNELS | back to summary |
|---|---|
| public static final int NUM_KERNELS The numberof kernels to apply | |
| opacity | back to summary |
|---|---|
| private float opacity | |
| xDistance | back to summary |
|---|---|
| private float xDistance | |
| yDistance | back to summary |
|---|---|
| private float yDistance | |
| ShadowEffect | back to summary |
|---|---|
| public ShadowEffect() | |
| ShadowEffect | back to summary |
|---|---|
| public ShadowEffect(Color color, int xDistance, int yDistance, float opacity) | |
| blur | back to summary |
|---|---|
| private void blur(BufferedImage image) | |
| draw | back to summary |
|---|---|
| public void draw(BufferedImage image, Graphics2D g, UnicodeFont unicodeFont, Glyph glyph) Implements com. Doc from com. Called to draw the effect. | |
| generateGaussianBlurKernels | back to summary |
|---|---|
| private static float[][] generateGaussianBlurKernels(int level) Generate the blur kernels which will be repeatedly applied when blurring images
| |
| generatePascalsTriangle | back to summary |
|---|---|
| private static float[][] generatePascalsTriangle(int level) Generate Pascal's triangle
| |
| getBlurKernelSize | back to summary |
|---|---|
| public int getBlurKernelSize() | |
| getBlurPasses | back to summary |
|---|---|
| public int getBlurPasses() | |
| getColor | back to summary |
|---|---|
| public Color getColor() | |
| getOpacity | back to summary |
|---|---|
| public float getOpacity() | |
| getValues | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns the list of | |
| getXDistance | back to summary |
|---|---|
| public float getXDistance() | |
| getYDistance | back to summary |
|---|---|
| public float getYDistance() | |
| setBlurKernelSize | back to summary |
|---|---|
| public void setBlurKernelSize(int blurKernelSize) Sets how many neighboring pixels are used to blur the shadow. Set to 0 for no blur. | |
| setBlurPasses | back to summary |
|---|---|
| public void setBlurPasses(int blurPasses) Sets the number of times to apply a blur to the shadow. Set to 0 for no blur. | |
| setColor | back to summary |
|---|---|
| public void setColor(Color color) | |
| setOpacity | back to summary |
|---|---|
| public void setOpacity(float opacity) | |
| setValues | back to summary |
|---|---|
| public void setValues(List<E> values) Implements com. Doc from com. Sets the list of | |
| setXDistance | back to summary |
|---|---|
| public void setXDistance(float distance) Sets the pixels to offset the shadow on the x axis. The glyphs will need padding so the shadow doesn't get clipped. | |
| setYDistance | back to summary |
|---|---|
| public void setYDistance(float distance) Sets the pixels to offset the shadow on the y axis. The glyphs will need padding so the shadow doesn't get clipped. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |