cage.graphics
Class Image

java.lang.Object
  extended by cage.graphics.Image
All Implemented Interfaces:
VisualItem

public class Image
extends java.lang.Object
implements VisualItem

Image is a wrapper class for the image datatype used by the Cage backend. All Cage classes should use this as their Image data type since it automatically registers itself with the ResourceEngine when created and allows a separation of Cage code and the underlying engine framework.

Author:
Seth Marinello

Constructor Summary
Image(java.lang.String name, java.lang.String fileName)
          Instantiates a new image.
 
Method Summary
 int getHeight()
          Gets the height.
 org.minueto.image.MinuetoImage getImage()
          Gets the image.
 java.lang.String getName()
          Gets the name.
 int getWidth()
          Gets the width.
 void scale(double xScale, double yScale)
          Scale.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image(java.lang.String name,
             java.lang.String fileName)
Instantiates a new image.

Parameters:
name - the name
fileName - the file name
Method Detail

scale

public void scale(double xScale,
                  double yScale)
Description copied from interface: VisualItem
Scale.

Specified by:
scale in interface VisualItem
Parameters:
xScale - the x scale
yScale - the y scale

getName

public java.lang.String getName()
Description copied from interface: VisualItem
Gets the name.

Specified by:
getName in interface VisualItem
Returns:
the name

getImage

public org.minueto.image.MinuetoImage getImage()
Description copied from interface: VisualItem
Gets the image.

Specified by:
getImage in interface VisualItem
Returns:
the image

getWidth

public int getWidth()
Description copied from interface: VisualItem
Gets the width.

Specified by:
getWidth in interface VisualItem
Returns:
the width

getHeight

public int getHeight()
Description copied from interface: VisualItem
Gets the height.

Specified by:
getHeight in interface VisualItem
Returns:
the height

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object