org.argouml.swingext
Class DecoratedIcon

java.lang.Object
  |
  +--javax.swing.ImageIcon
        |
        +--org.argouml.swingext.DecoratedIcon
All Implemented Interfaces:
javax.accessibility.Accessible, javax.swing.Icon, java.io.Serializable
Direct Known Subclasses:
DropDownIcon

public abstract class DecoratedIcon
extends javax.swing.ImageIcon

See Also:
Serialized Form

Inner classes inherited from class javax.swing.ImageIcon
javax.swing.ImageIcon.AccessibleImageIcon
 
Field Summary
protected  int[][] _buffer
           
protected  int _popupIconHeight
           
protected  int _popupIconWidth
           
static int ROLLOVER
           
static int STANDARD
           
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Method Summary
protected  void init(int[][] buffer)
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Paints the icon.
 
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
 

Field Detail

ROLLOVER

public static final int ROLLOVER

STANDARD

public static final int STANDARD

_buffer

protected int[][] _buffer

_popupIconWidth

protected int _popupIconWidth

_popupIconHeight

protected int _popupIconHeight
Method Detail

init

protected void init(int[][] buffer)

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Paints the icon. The top-left corner of the icon is drawn at the point (x, y) in the coordinate space of the graphics context g. If this icon has no image observer, this method uses the c component as the observer.
Overrides:
paintIcon in class javax.swing.ImageIcon
Parameters:
c - the component to be used as the observer if this icon has no image observer
g - the graphics context
x - the X coordinate of the icon's top-left corner
y - the Y coordinate of the icon's top-left corner


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook