com.croftsoft.core.animation.icon
Class StretchImageIcon

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by com.croftsoft.core.animation.icon.StretchImageIcon
All Implemented Interfaces:
Serializable, Accessible, Icon

public final class StretchImageIcon
extends ImageIcon

ImageIcon that stretches its painting across the entire Component.

Since:
2002-02-17
Version:
2002-03-16
See Also:
Serialized Form
Author:
David Wallace Croft

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
 
Field Summary
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Constructor Summary
StretchImageIcon(Image image)
           
StretchImageIcon(URL location)
           
 
Method Summary
 void paintIcon(Component component, Graphics graphics, int x, int y)
           
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StretchImageIcon

public StretchImageIcon(Image image)

StretchImageIcon

public StretchImageIcon(URL location)
Method Detail

paintIcon

public void paintIcon(Component component,
                      Graphics graphics,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon
Overrides:
paintIcon in class ImageIcon

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)