br.usp.iterador.gui
Class SimpleImageView

java.lang.Object
  extended by br.usp.iterador.gui.SimpleImageView
All Implemented Interfaces:
ImageView

 class SimpleImageView
extends java.lang.Object
implements ImageView


Constructor Summary
SimpleImageView()
           
 
Method Summary
 java.awt.image.BufferedImage getBuffer()
          Returns the buffer itself
 java.awt.Graphics2D getGraphics()
          Returns the buffered graphics
 boolean isStillValid(Application app)
           
 void paintOn(java.awt.Graphics2D g, int w, int h)
           
 void setSize(Application app, int w, int h)
          Changes the image buffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleImageView

SimpleImageView()
Method Detail

paintOn

public void paintOn(java.awt.Graphics2D g,
                    int w,
                    int h)
Specified by:
paintOn in interface ImageView

setSize

public void setSize(Application app,
                    int w,
                    int h)
Description copied from interface: ImageView
Changes the image buffer

Specified by:
setSize in interface ImageView
w - width
h - height

getGraphics

public java.awt.Graphics2D getGraphics()
Description copied from interface: ImageView
Returns the buffered graphics

Specified by:
getGraphics in interface ImageView
Returns:
the graphics

isStillValid

public boolean isStillValid(Application app)
Specified by:
isStillValid in interface ImageView

getBuffer

public java.awt.image.BufferedImage getBuffer()
Description copied from interface: ImageView
Returns the buffer itself

Specified by:
getBuffer in interface ImageView
Returns:
itself


Copyright 2004-2004-2006 IME - USP. All Rights Reserved.