|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcage.graphics.Image
public class Image
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.
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 |
---|
public Image(java.lang.String name, java.lang.String fileName)
name
- the namefileName
- the file nameMethod Detail |
---|
public void scale(double xScale, double yScale)
VisualItem
scale
in interface VisualItem
xScale
- the x scaleyScale
- the y scalepublic java.lang.String getName()
VisualItem
getName
in interface VisualItem
public org.minueto.image.MinuetoImage getImage()
VisualItem
getImage
in interface VisualItem
public int getWidth()
VisualItem
getWidth
in interface VisualItem
public int getHeight()
VisualItem
getHeight
in interface VisualItem
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |