com.sshtools.ui.swing
Class OverlayIcon

java.lang.Object
  extended by com.sshtools.ui.swing.OverlayIcon
All Implemented Interfaces:
javax.swing.Icon

public class OverlayIcon
extends java.lang.Object
implements javax.swing.Icon

Create a Icon from an existing Icon by overlaying another Icon.

The overlaid icon may be placed at any compass point.

Author:
Brett Smith <brett@3sp.com>
See Also:
SwingConstants

Constructor Summary
OverlayIcon(javax.swing.Icon overlayIcon, javax.swing.Icon icon, int position)
          Constructor for the OverlayIcon object
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 javax.swing.Icon getOverlayIcon()
          Get the overlay icon
 void paintIcon(java.awt.Component c, java.awt.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

OverlayIcon

public OverlayIcon(javax.swing.Icon overlayIcon,
                   javax.swing.Icon icon,
                   int position)
Constructor for the OverlayIcon object

Parameters:
overlayIcon - Description of the Parameter
icon - Description of the Parameter
position - Description of the Parameter
Method Detail

getOverlayIcon

public javax.swing.Icon getOverlayIcon()
Get the overlay icon

Returns:
overlay 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 © 2003-2009 SSHTOOLS LTD. All Rights Reserved.