com.vlsolutions.swing.toolbars
Class RolloverIcon
java.lang.Object
com.vlsolutions.swing.toolbars.RolloverIcon
- All Implemented Interfaces:
- Icon
public class RolloverIcon
- extends Object
- implements Icon
A custom Icon to have a nice rollover effect for toolbar icons.
This icon uses a gray version of the provided image and paints it under the original one.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RolloverIcon
public RolloverIcon(Icon icon)
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface Icon
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface Icon
© Copyright 2004-2005 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications