gnu.javax.swing.text.html

Class ImageViewIconFactory.LoadingImageIcon

Enclosing Class:
ImageViewIconFactory
Implemented Interfaces:
Icon, Serializable

public static class ImageViewIconFactory.LoadingImageIcon
extends Object
implements Icon, Serializable

This icon reflects the general concept (sheet of paper with image), but is currently not pixel to pixel identical with the Sun's implementation.
See Also:
Serialized Form

Constructor Summary

LoadingImageIcon()
Creates a new icon.

Method Summary

int
getIconHeight()
Returns the height of the icon, in pixels.
int
getIconWidth()
Returns the width of the icon, in pixels.
void
paintIcon(Component c, Graphics g, int x, int y)
Paints the icon using colors from the MetalLookAndFeel.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

LoadingImageIcon

public LoadingImageIcon()
Creates a new icon.

Method Details

getIconHeight

public int getIconHeight()
Returns the height of the icon, in pixels.
Specified by:
getIconHeight in interface Icon
Returns:
The height of the icon.

getIconWidth

public int getIconWidth()
Returns the width of the icon, in pixels.
Specified by:
getIconWidth in interface Icon
Returns:
The width of the icon.

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Paints the icon using colors from the MetalLookAndFeel.
Specified by:
paintIcon in interface Icon
Parameters:
c - the component (ignored).
g - the graphics device.
x - the x-coordinate for the top-left of the icon.
y - the y-coordinate for the top-left of the icon.