|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.swing.plaf.sky.SkyUtil
public class SkyUtil
Some usefull methods for shadow and 3D effects.
| Field Summary | |
|---|---|
static int |
DEFAULTSHADOWDEPTH
The default shadow depth in the Sky LookAndFeel package |
static int |
MAXSHADOWDEPTH
Max. shadow depth in the Sky LookAndFeel package |
static int |
RADIUS
The default radius in the Sky LookAndFeel package |
| Constructor Summary | |
|---|---|
SkyUtil()
|
|
| Method Summary | |
|---|---|
static javax.swing.Icon |
createGrayIcon(javax.swing.Icon icon)
Creates a 'disabled' version of an icon. |
static void |
paint3DRectEffect(java.awt.Graphics graphics,
int x,
int y,
int width,
int height)
Paint a 3D effect to a Rectangle |
static void |
paint3DRectEffect(java.awt.Graphics graphics,
int x,
int y,
int width,
int height,
int depth)
Paint a 3D effect to a Rectangle. |
static void |
paint3DRoundRectEffect(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int radius)
Paint a 3D effect to a RoundRect. |
static void |
paint3DRoundRectEffect(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int radius,
int depth)
Paint a 3D effect to a RoundRect. |
static void |
paintRectShadow(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draw a shadow shaped as a Rectangle with smooth edges with a depth of 5 if possible. |
static void |
paintRectShadow(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int shadowsteps)
Draw a shadow shaped as a Rectangle with smooth edges and a depth of shadowsteps if possible. |
static void |
paintRoundRectShadow(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int radius)
Draw a shadow shaped as a RoundRect with smooth edges and a depth of 5. |
static void |
paintRoundRectShadow(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int radius,
int shadowsteps)
Draw a shadow shaped as a RoundRect with smooth edges. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RADIUS
public static final int MAXSHADOWDEPTH
public static final int DEFAULTSHADOWDEPTH
| Constructor Detail |
|---|
public SkyUtil()
| Method Detail |
|---|
public static void paintRoundRectShadow(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int radius)
g - a Graphics valueradius - an int value
public static void paintRoundRectShadow(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int radius,
int shadowsteps)
g - a Graphics valueradius - an int valueshadowsteps - an int value
public static void paintRectShadow(java.awt.Graphics g,
int x,
int y,
int width,
int height)
g - a Graphics value
public static void paintRectShadow(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int shadowsteps)
g - a Graphics valueshadowsteps - an int value
public static void paint3DRoundRectEffect(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int radius)
radius - an int value
public static void paint3DRoundRectEffect(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int radius,
int depth)
radius - an int valuedepth - an int value
public static void paint3DRectEffect(java.awt.Graphics graphics,
int x,
int y,
int width,
int height)
graphics - a Graphics value
public static void paint3DRectEffect(java.awt.Graphics graphics,
int x,
int y,
int width,
int height,
int depth)
graphics - a Graphics valuedepth - an int valuepublic static javax.swing.Icon createGrayIcon(javax.swing.Icon icon)
icon - Icon to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||