com.vlsolutions.swing.toolbars

Class RolloverIcon

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
intgetIconHeight()
intgetIconWidth()
voidpaintIcon(Component c, Graphics g, int x, int y)

Constructor Detail

RolloverIcon

public RolloverIcon(Icon icon)

Method Detail

getIconHeight

public int getIconHeight()

getIconWidth

public int getIconWidth()

paintIcon

public void paintIcon(Component c, Graphics g, int x, int y)
© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications