|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Renderer
A Renderer
contains API specific drawing routines.
Field Summary | |
---|---|
static int |
DRAW_LEFT_SIDE_ONLY
When drawing an image this value specifies that only the left hand side of the image should be drawn (used in Pillar Rising Mode). |
static int |
DRAW_RIGHT_SIDE_ONLY
When drawing an image this value specifies that only the right hand side of the image should be drawn (used in Pillar Rising Mode). |
static int |
NONE
When drawing an image this value specifies that no modifications should be applied. |
Method Summary | |
---|---|
void |
drawImage(java.lang.Object objGFX,
int imageIndex,
int dstPixX,
int dstPixY,
boolean transparency,
int modification)
Draws an image as given by imageIndex at the given coordinates. |
void |
restoreClip(java.lang.Object objGFX)
This is called after a Layer is drawn to restore the
clipping region to what it used to be. |
void |
setClip(java.lang.Object objGFX,
int x,
int y,
int width,
int height)
This is called just before a Layer is drawn to allow the
Renderer to set the desired clipping region. |
Field Detail |
---|
static final int NONE
0
.
drawImage(Object, int, int, int, boolean, int)
,
Constant Field Valuesstatic final int DRAW_LEFT_SIDE_ONLY
1
.
drawImage(Object, int, int, int, boolean, int)
,
Constant Field Valuesstatic final int DRAW_RIGHT_SIDE_ONLY
2
.
drawImage(Object, int, int, int, boolean, int)
,
Constant Field ValuesMethod Detail |
---|
void setClip(java.lang.Object objGFX, int x, int y, int width, int height) throws java.lang.IllegalArgumentException
Layer
is drawn to allow the
Renderer
to set the desired clipping region.
objGFX
- the gfx object specific to the Renderer
x
- the start coordinate of the clipping regiony
- the start coordinate of the clipping regionwidth
- the width of the clipping regionheight
- the height of the clipping region
java.lang.IllegalArgumentException
- if objGFX
is null
void restoreClip(java.lang.Object objGFX) throws java.lang.IllegalArgumentException
Layer
is drawn to restore the
clipping region to what it used to be.
objGFX
- the gfx object specific to the Renderer
java.lang.IllegalArgumentException
- if objGFX
is null
void drawImage(java.lang.Object objGFX, int imageIndex, int dstPixX, int dstPixY, boolean transparency, int modification) throws java.lang.IllegalArgumentException
imageIndex
at the given coordinates.
objGFX
- the gfx object specific to the Renderer
imageIndex
- the index of the image to draw - see Map.getImageData()
dstPixX
- the coordinate of where the image should be rendereddstPixY
- the coordinate of where the image should be renderedtransparency
- whether or not the image should rendered honouring
it's transparent pixels.modification
- any modification style should be applied to the image
java.lang.IllegalArgumentException
- if objGFX
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |