oracle.ide.controls
Class OverlayIcon
java.lang.Object
oracle.ide.controls.OverlayIcon
- All Implemented Interfaces:
- javax.swing.Icon
- public class OverlayIcon
- extends java.lang.Object
- implements javax.swing.Icon
An icon that consists of multiple source icons, painted on top of each other. The result image will be the size of the biggest source icon, and all images will match their top left co-ordinates. You generally use this with transparent icons.
Constructor Summary |
OverlayIcon(java.util.Collection icons)
Construct a multiple image icon that consists of multiple images. |
OverlayIcon(javax.swing.Icon[] icons)
Construct a multiple image icon that consists of multiple images. |
OverlayIcon(javax.swing.Icon lower, javax.swing.Icon upper)
A simple multiple image icon that consists of just two images. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverlayIcon
public OverlayIcon(javax.swing.Icon lower,
javax.swing.Icon upper)
- A simple multiple image icon that consists of just two images.
OverlayIcon
public OverlayIcon(java.util.Collection icons)
- Construct a multiple image icon that consists of multiple images. Each item in the collection should implement Icon.
OverlayIcon
public OverlayIcon(javax.swing.Icon[] icons)
- Construct a multiple image icon that consists of multiple images.
addIcon
public void addIcon(javax.swing.Icon icon)
removeIcon
public void removeIcon(javax.swing.Icon icon)
setIcons
public void setIcons(java.util.Collection icons)
getIcons
public java.util.Collection getIcons()
getIconWidth
public int getIconWidth()
-
- Specified by:
getIconWidth
in interface javax.swing.Icon
getIconHeight
public int getIconHeight()
-
- Specified by:
getIconHeight
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 © 1997, 2004, Oracle. All rights reserved.