Constructor and Description |
---|
DrawableOverlay() |
Modifier and Type | Method and Description |
---|---|
void |
drawOverlay(Graphics dest,
int updateX,
int updateY,
int updateWidth,
int updateHeight)
This is called to tell the IOverlay to draw itself onto the surface with the provided Graphics.
|
void |
set(Drawable d,
int x,
int y,
int drawOptions) |
public void set(Drawable d, int x, int y, int drawOptions)
public void drawOverlay(Graphics dest, int updateX, int updateY, int updateWidth, int updateHeight)
IOverlay
drawOverlay
in interface IOverlay
dest
- the destination Graphics, which will be translated such that 0,0 on the Graphics is
0,0 on the destination surface.updateX
- the x co-ordinate of the area being updated on the surface.updateY
- the y co-ordinate of the area being updated on the surface.updateWidth
- the width of the area being updated on the surface.updateHeight
- the height of the area being updated on the surface.