com.twelvemonkeys.image
Class BufferedImageIcon

java.lang.Object
  extended by com.twelvemonkeys.image.BufferedImageIcon
All Implemented Interfaces:
Icon

public class BufferedImageIcon
extends Object
implements Icon

An Icon implementation backed by a BufferedImage.

Version:
$Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/image/BufferedImageIcon.java#2 $
Author:
Harald Kuhr

Constructor Summary
BufferedImageIcon(BufferedImage pImage)
           
BufferedImageIcon(BufferedImage pImage, int pWidth, int pHeight)
           
BufferedImageIcon(BufferedImage pImage, int pWidth, int pHeight, boolean useFastRendering)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedImageIcon

public BufferedImageIcon(BufferedImage pImage)

BufferedImageIcon

public BufferedImageIcon(BufferedImage pImage,
                         int pWidth,
                         int pHeight)

BufferedImageIcon

public BufferedImageIcon(BufferedImage pImage,
                         int pWidth,
                         int pHeight,
                         boolean useFastRendering)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon


Copyright © 2015. All Rights Reserved.