com.sshtools.ui.swing
Class OverlayIcon
java.lang.Object
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverlayIcon
public OverlayIcon(javax.swing.Icon overlayIcon,
javax.swing.Icon icon,
int position)
- Constructor for the OverlayIcon object
- Parameters:
overlayIcon - Description of the Parametericon - Description of the Parameterposition - Description of the Parameter
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.