com.miginfocom.util.gfx
Class IconPainter

java.lang.Object
  extended by com.miginfocom.util.gfx.ScaleableImage
      extended by com.miginfocom.util.gfx.IconPainter
All Implemented Interfaces:
java.awt.Transparency, javax.swing.Icon
Direct Known Subclasses:
ArrowPainter, DualArrowPainter

public abstract class IconPainter
extends ScaleableImage

A painter interface that has an inherent size that it will paint through the Icon interface but it should also adhere to painting that in any size as provided by the ScaleableImage interface.


Field Summary
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
protected IconPainter()
           
protected IconPainter(int prefWidth, int prefHeight)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 int getTransparency()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 
Methods inherited from class com.miginfocom.util.gfx.ScaleableImage
drawImage, drawImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconPainter

protected IconPainter()

IconPainter

protected IconPainter(int prefWidth,
                      int prefHeight)
Method Detail

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)

getIconHeight

public int getIconHeight()

getIconWidth

public int getIconWidth()

getTransparency

public int getTransparency()


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.