org.formaria.swing.util
Class GraphicsUtils
java.lang.Object
org.formaria.swing.util.GraphicsUtils
public class GraphicsUtils
- extends java.lang.Object
Some graphics utilities
Copyright: Formaria Ltd. (c) 2003-2008
License: see license.txt
|
Method Summary |
void |
applyBlur(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst,
int shadowSize)
|
void |
applyShadow(java.awt.image.BufferedImage dst,
int shadowSize)
|
java.awt.image.BufferedImage |
createDropShadow(java.awt.image.BufferedImage image)
|
java.awt.image.BufferedImage |
createShadow(java.awt.image.BufferedImage original,
int shadowSize)
|
java.awt.image.BufferedImage |
createShadowMask(java.awt.image.BufferedImage image)
|
java.awt.image.ConvolveOp |
getBlurOp(int size)
|
static void |
vibrate(javax.swing.JComponent comp)
Briefly vibrate the component by changing it's position |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shadowSize
protected int shadowSize
shadowOpacity
protected float shadowOpacity
shadowColor
protected java.awt.Color shadowColor
GraphicsUtils
public GraphicsUtils()
createShadow
public java.awt.image.BufferedImage createShadow(java.awt.image.BufferedImage original,
int shadowSize)
applyShadow
public void applyShadow(java.awt.image.BufferedImage dst,
int shadowSize)
createDropShadow
public java.awt.image.BufferedImage createDropShadow(java.awt.image.BufferedImage image)
applyBlur
public void applyBlur(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst,
int shadowSize)
createShadowMask
public java.awt.image.BufferedImage createShadowMask(java.awt.image.BufferedImage image)
getBlurOp
public java.awt.image.ConvolveOp getBlurOp(int size)
vibrate
public static void vibrate(javax.swing.JComponent comp)
- Briefly vibrate the component by changing it's position
- Parameters:
comp - the component to move.