net.xoetrope.swing.util
Class XGraphicsUtils

java.lang.Object
  extended by net.xoetrope.swing.util.XGraphicsUtils

public class XGraphicsUtils
extends java.lang.Object


Field Summary
protected  java.awt.Color shadowColor
           
protected  float shadowOpacity
           
protected  int shadowSize
           
 
Constructor Summary
XGraphicsUtils()
           
 
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
 

Field Detail

shadowSize

protected int shadowSize

shadowOpacity

protected float shadowOpacity

shadowColor

protected java.awt.Color shadowColor
Constructor Detail

XGraphicsUtils

public XGraphicsUtils()
Method Detail

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.