pivot.wtk.media
Class Picture

java.lang.Object
  extended by pivot.wtk.media.Image
      extended by pivot.wtk.media.Picture
All Implemented Interfaces:
Visual

public class Picture
extends Image

Image representing a bitmapped picture.

Author:
gbrown

Nested Class Summary
 
Nested classes/interfaces inherited from class pivot.wtk.media.Image
Image.LoadTask
 
Constructor Summary
Picture(java.awt.image.BufferedImage bufferedImage)
           
 
Method Summary
 java.awt.image.BufferedImage getBufferedImage()
           
 int getHeight()
          Returns the visual's height.
 int getWidth()
          Returns the visual's width.
 void paint(java.awt.Graphics2D graphics)
          Paints the visual.
 
Methods inherited from class pivot.wtk.media.Image
getSize, load, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Picture

public Picture(java.awt.image.BufferedImage bufferedImage)
Method Detail

getWidth

public int getWidth()
Description copied from interface: Visual
Returns the visual's width.


getHeight

public int getHeight()
Description copied from interface: Visual
Returns the visual's height.


paint

public void paint(java.awt.Graphics2D graphics)
Description copied from interface: Visual
Paints the visual.

Parameters:
graphics - The graphics context in which to paint the visual.

getBufferedImage

public java.awt.image.BufferedImage getBufferedImage()