Package com.nomagic.ui
Class AlphaCompositeIcon
java.lang.Object
com.nomagic.ui.AlphaCompositeIcon
- All Implemented Interfaces:
ResizableIcon
,Cloneable
,Icon
Paints wrapped icon with alpha composite.
-
Constructor Summary
ConstructorDescriptionAlphaCompositeIcon
(Icon icon) AlphaCompositeIcon
(Icon icon, Composite composite) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns cloned instance of this icon.int
int
void
void
Draw the icon in the given bounds.
-
Constructor Details
-
AlphaCompositeIcon
-
AlphaCompositeIcon
-
-
Method Details
-
paintIcon
-
paintIcon
Description copied from interface:ResizableIcon
Draw the icon in the given bounds. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.- Specified by:
paintIcon
in interfaceResizableIcon
- Parameters:
c
- the given component.g
- the graphics to paint on.x
- x coordinate.y
- y coordinate.w
- width to paint.h
- height to paint.
-
clone
Description copied from interface:ResizableIcon
Returns cloned instance of this icon.- Specified by:
clone
in interfaceResizableIcon
- Overrides:
clone
in classObject
- Returns:
- cloned instance.
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-