ch.randelshofer.gui
Class LazyImageIcon
java.lang.Object
javax.swing.ImageIcon
ch.randelshofer.gui.LazyImageIcon
- All Implemented Interfaces:
- java.io.Serializable, javax.accessibility.Accessible, javax.swing.Icon
public class LazyImageIcon
- extends javax.swing.ImageIcon
LazyImageIcon.
- Version:
- 1.0 January 12, 2007 Created.
- Author:
- Werner Randelshofer
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class javax.swing.ImageIcon |
javax.swing.ImageIcon.AccessibleImageIcon |
| Fields inherited from class javax.swing.ImageIcon |
component, tracker |
|
Constructor Summary |
LazyImageIcon(java.awt.Image image,
int width,
int height)
Creates a new instance. |
LazyImageIcon(java.net.URL image,
int width,
int height)
|
| Methods inherited from class javax.swing.ImageIcon |
getAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LazyImageIcon
public LazyImageIcon(java.awt.Image image,
int width,
int height)
- Creates a new instance.
LazyImageIcon
public LazyImageIcon(java.net.URL image,
int width,
int height)
getImage
public java.awt.Image getImage()
- Overrides:
getImage in class javax.swing.ImageIcon
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface javax.swing.Icon- Overrides:
paintIcon in class javax.swing.ImageIcon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface javax.swing.Icon- Overrides:
getIconWidth in class javax.swing.ImageIcon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface javax.swing.Icon- Overrides:
getIconHeight in class javax.swing.ImageIcon