|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.ui.TranslucentIcon
public final class TranslucentIcon
An Icon
that paints another icon with alpha so that it is translucent (partially transparent).
Constructor Summary | |
---|---|
TranslucentIcon(javax.swing.Icon baseIcon) Creates a translucent icon that paints the specified base icon. |
Method Summary | |
---|---|
float |
getAlpha() Returns the alpha transparency of this icon. |
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y) |
void |
setAlpha(float alpha) Sets the alpha transparency to paint with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TranslucentIcon(javax.swing.Icon baseIcon)
baseIcon
- a base icon to paint. Must not be null.Method Detail |
---|
public void setAlpha(float alpha)
alpha
- the alpha transparency. Must be between 0.0 and 1.0.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
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |