Modifier and Type | Field and Description |
---|---|
Drawable |
dr |
int |
getIconOptions |
int |
height |
IIcon.ImageList |
list |
IIcon |
src |
int |
width |
Constructor and Description |
---|
SizedIcon() |
Modifier and Type | Method and Description |
---|---|
Drawable |
asImageData()
If the underlying sized image is an ImageData this will return it, otherwise
it will return this SizedIcon itself.
|
void |
clear() |
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() |
ImageData |
getImageData()
This will expose the underlying sized image IF it is an ImageData.
|
int |
getWidth() |
boolean |
isEmpty() |
IIcon.SizedIcon |
setFor(Drawable d) |
static IIcon.SizedIcon |
setFor(IIcon.SizedIcon dest,
Object source,
int requestedWidth,
int requestedHeight,
boolean dimensionsOnly) |
static IIcon.SizedIcon |
setFor(IIcon.SizedIcon dest,
Object source,
int requestedWidth,
int requestedHeight,
int iiconOptions,
int listMatchOptions) |
public int width
public int height
public int getIconOptions
public IIcon src
public IIcon.ImageList list
public Drawable dr
public static IIcon.SizedIcon setFor(IIcon.SizedIcon dest, Object source, int requestedWidth, int requestedHeight, boolean dimensionsOnly)
public static IIcon.SizedIcon setFor(IIcon.SizedIcon dest, Object source, int requestedWidth, int requestedHeight, int iiconOptions, int listMatchOptions)
public boolean isEmpty()
public void clear()
public IIcon.SizedIcon setFor(Drawable d)
public void draw(Graphics g, int x, int y, int options)
public void draw(Graphics g, int x, int y, int width, int height, int options)
public void draw(Graphics g, int x, int y, Rect visibleDestinationArea, int options)
Drawable
draw
in interface Drawable
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.public ImageData getImageData()
public Drawable asImageData()