com.vlsolutions.swing.toolbars
Class RolloverIcon

java.lang.Object
  extended by 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.


Constructor Summary
RolloverIcon(Icon icon)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolloverIcon

public RolloverIcon(Icon icon)
Method Detail

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-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications