public interface Drawable
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVE
This is an option that tells the image that it is drawing itself
in an "active" state.
|
static int |
DISABLED
This is an option that tells the image that it should draw itself in a disabled (usually "grayed") state.
|
static int |
INACTIVE
This is an option that tells the image that it is drawing itself
in an "inactive" state.
|
static int |
INDENT_ITEM_FLAG
This is an option that tells the image the item should be indented by a number
of columns specified as the lower 16 bits of the option value.
|
static int |
OUTLINED
This is an option that tells the image that it should draw an outline around itself.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics g,
int x,
int y,
int options) |
void |
draw(Graphics g,
int x,
int y,
int width,
int height,
int options) |
void |
draw(Graphics g,
int x,
int y,
Rect visibleDestinationArea,
int options)
Draw the Drawable to the Graphics and specify the area on the graphics that is visible.
|
void |
free() |
int |
getHeight() |
int |
getWidth() |
static final int DISABLED
static final int OUTLINED
static final int ACTIVE
static final int INACTIVE
static final int INDENT_ITEM_FLAG
int getWidth()
int getHeight()
void free()
void draw(Graphics g, int x, int y, int options)
void draw(Graphics g, int x, int y, int width, int height, int options)
g
- x
- y
- width
- height
- options
- void draw(Graphics g, int x, int y, Rect visibleDestinationArea, int options)
g
- the Graphics to draw to.x
- the x-location on the graphics to draw to.y
- the y-location on the graphics to draw to.visibleDestinationArea
- the area that will be updated on the Graphics. If this is null
then assume that all of the Drawable must be drawn.options
- any of the Drawable options OR'ed together.