net.sf.jame.core.util
Class Surface

java.lang.Object
  extended by net.sf.jame.core.util.Surface

public class Surface
extends java.lang.Object

Author:
Andrea Medeghini

Field Summary
static int DEFAULT_TYPE
           
 
Constructor Summary
Surface(java.awt.image.BufferedImage image)
           
Surface(int width, int height)
           
 
Method Summary
 void dispose()
           
 void disposeGraphics()
           
 java.awt.Graphics2D getGraphics2D()
           
 int getHeight()
           
 java.awt.image.BufferedImage getImage()
           
 int getWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TYPE

public static int DEFAULT_TYPE
Constructor Detail

Surface

public Surface(int width,
               int height)
Parameters:
width -
height -

Surface

public Surface(java.awt.image.BufferedImage image)
Parameters:
image -
Method Detail

getHeight

public int getHeight()
Returns:

getWidth

public int getWidth()
Returns:

getImage

public java.awt.image.BufferedImage getImage()
Returns:
the image

getGraphics2D

public java.awt.Graphics2D getGraphics2D()
Returns:
the graphics

dispose

public void dispose()

disposeGraphics

public void disposeGraphics()