|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.controls.WashedIcon
public class WashedIcon
An implementation of the Icon
interface that can render another
icon in a faded, or washed-out, state. The level of fading can be
controlled by specifying the alpha level to be used for rendering; if no
level of fading is specified, a default level is used.
Field Summary | |
---|---|
protected static float |
DEFAULT_ALPHA
The default alpha level to use for rendering. |
Constructor Summary | |
---|---|
WashedIcon(javax.swing.Icon icon)
Creates a washed-out icon from another icon, using a default level of fading. |
|
WashedIcon(javax.swing.Icon icon,
float alpha)
Creates a washed-out icon from another icon, using the specified level of fading. |
Method Summary | |
---|---|
float |
getAlpha()
Gets the alpha level to use for rendering. |
protected java.awt.AlphaComposite |
getComposite()
Gets the AlphaComposite to use for rendering. |
javax.swing.Icon |
getIcon()
Gets the original source Icon to use for rendering. |
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final float DEFAULT_ALPHA
Constructor Detail |
---|
public WashedIcon(javax.swing.Icon icon)
icon
- the icon image to displaypublic WashedIcon(javax.swing.Icon icon, float alpha)
icon
- the icon image to displayalpha
- the alpha value to use for rendering, in the range of
[0.0, 1.0]. An alpha of 1.0 is completely opaque, and an
alpha of 0.0 is completely transparent.Method Detail |
---|
public javax.swing.Icon getIcon()
Icon
to use for rendering.
public float getAlpha()
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
protected java.awt.AlphaComposite getComposite()
AlphaComposite
to use for rendering.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |