com.vlsolutions.swing.toolbars

Class RolloverIcon

Implemented Interfaces:
Icon

public class RolloverIcon
extends java.lang.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)

Constructor Details

RolloverIcon

public RolloverIcon(Icon icon)

Method Details

getIconHeight

public int getIconHeight()

getIconWidth

public int getIconWidth()

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)

© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications