|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.util.LocatedImage
public class LocatedImage
An image along with state information that allows it to be drawn without specifing the state in which to render.
| Constructor Summary | |
|---|---|
LocatedImage(Image image,
int x,
int y)
Create a new located image |
|
| Method Summary | |
|---|---|
void |
draw()
Draw the image based on the current configured state |
Color |
getColor()
Get the colour filter being applied |
float |
getHeight()
Get the height the image will be drawn at |
float |
getWidth()
Get the width the image will be drawn at |
int |
getX()
Get the x position at which the image will be drawn |
int |
getY()
Get the y position at which the image will be drawn |
void |
setColor(Color c)
Set the colour filter to apply to the image |
void |
setHeight(float height)
Set the height the image should be drawn at |
void |
setWidth(float width)
Set the width the image should be drawn at |
void |
setX(int x)
Set the x position at which the image should be drawn |
void |
setY(int y)
Set the y position at which the image should be drawn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocatedImage(Image image,
int x,
int y)
image - The image to be drawnx - The x location at which the image should be drawny - The y location at which the image should be drawn| Method Detail |
|---|
public float getHeight()
public float getWidth()
public void setHeight(float height)
height - The height the image should be drawn atpublic void setWidth(float width)
width - The width the image should be drawn atpublic void setColor(Color c)
c - The color filter to apply to the imagepublic Color getColor()
public void setX(int x)
x - The x coordinate of the positionpublic void setY(int y)
y - The y coordinate of the positionpublic int getX()
public int getY()
public void draw()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||