|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.lafwidget.animation.effects.GhostPaintingUtils
public class GhostPaintingUtils
Utility class that implements the ghost effects.
Field Summary | |
---|---|
static float |
DECAY_FACTOR
Global decay factor. |
static float |
MAX_ICON_GHOSTING_ALPHA
Maximal starting opacity for icon ghosting. |
static float |
MAX_PRESS_GHOSTING_ALPHA
Maximal starting opacity for press ghosting. |
static float |
MIN_ICON_GHOSTING_ALPHA
Minimal starting opacity for icon ghosting. |
static float |
MIN_PRESS_GHOSTING_ALPHA
Minimal starting opacity for press ghosting. |
Constructor Summary | |
---|---|
GhostPaintingUtils()
|
Method Summary | |
---|---|
protected static java.awt.image.BufferedImage |
getComponentGhostImage(java.awt.Component comp,
double scaleFactor)
Returns a scaled ghost image of the specified component. |
protected static java.awt.image.BufferedImage |
getIconGhostImage(java.awt.Component comp,
javax.swing.Icon icon,
double scaleFactor)
Returns a scaled ghost image of the specified icon. |
static void |
paintGhostIcon(java.awt.Graphics2D graphics,
javax.swing.AbstractButton b,
javax.swing.Icon icon)
Paints the ghost icon inside the bounds of the specified button. |
static void |
paintGhostIcon(java.awt.Graphics2D graphics,
javax.swing.AbstractButton b,
java.awt.Rectangle iconRectangle)
Paints the ghost icon inside the bounds of the specified button. |
static void |
paintGhostIcon(java.awt.Graphics2D graphics,
java.awt.Component b,
javax.swing.Icon icon,
java.awt.Rectangle iconRectangle)
Paints the ghost icon inside the bounds of the specified button. |
static void |
paintGhostImages(java.awt.Component mainComponent,
java.awt.Graphics g)
Paints ghost images on the specified component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static float MIN_ICON_GHOSTING_ALPHA
public static float MAX_ICON_GHOSTING_ALPHA
public static float MIN_PRESS_GHOSTING_ALPHA
public static float MAX_PRESS_GHOSTING_ALPHA
public static float DECAY_FACTOR
Constructor Detail |
---|
public GhostPaintingUtils()
Method Detail |
---|
protected static java.awt.image.BufferedImage getComponentGhostImage(java.awt.Component comp, double scaleFactor)
comp
- Component.scaleFactor
- Scale factor.
protected static java.awt.image.BufferedImage getIconGhostImage(java.awt.Component comp, javax.swing.Icon icon, double scaleFactor)
comp
- Component.icon
- Icon.scaleFactor
- Scale factor.
public static void paintGhostImages(java.awt.Component mainComponent, java.awt.Graphics g)
mainComponent
- Component.g
- Graphics context.public static void paintGhostIcon(java.awt.Graphics2D graphics, javax.swing.AbstractButton b, javax.swing.Icon icon)
graphics
- Graphics context.b
- Button.icon
- Icon to paint.public static void paintGhostIcon(java.awt.Graphics2D graphics, javax.swing.AbstractButton b, java.awt.Rectangle iconRectangle)
graphics
- Graphics context.b
- Button.iconRectangle
- Rectangle of the button icon.public static void paintGhostIcon(java.awt.Graphics2D graphics, java.awt.Component b, javax.swing.Icon icon, java.awt.Rectangle iconRectangle)
graphics
- Graphics context.b
- Button.icon
- Icon to paint.iconRectangle
- Rectangle of the button icon.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |