com.vlsolutions.swing.toolbars
Class RolloverIcon
java.lang.Object
com.vlsolutions.swing.toolbars.RolloverIcon
- All Implemented Interfaces:
- javax.swing.Icon
public class RolloverIcon
- extends java.lang.Object
- implements javax.swing.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(javax.swing.Icon icon)
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface javax.swing.Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface javax.swing.Icon
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface javax.swing.Icon
© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications