|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Image
Extended interface for images. In addition to the Drawable
's
draw
methods it defines functions for checking the size of the
image and it's validity (availability and correctness of the needed data).
Also it features an additional method for drawing with anchor as in the
corresponding drawImage method of XGraphics.
In high-level programming, this type of objects should be used for all
painting of bitmap graphics instead of Resource
.
Method Summary | |
---|---|
void |
draw(XGraphics g,
int x,
int y,
int anchor)
Draws this image to the given XGraphics object. |
int |
getHeight()
Returns the height of the Image in pixels. |
int |
getWidth()
Returns the width of the Image in pixels. |
boolean |
isValid()
Checks if the Image is properly configured and ready for use. |
Methods inherited from interface jcontrol.io.Drawable |
---|
draw, draw |
Method Detail |
---|
int getWidth()
int getHeight()
boolean isValid()
void draw(XGraphics g, int x, int y, int anchor)
g
- XGraphics to draw onx
- x-locationy
- y-locationanchor
- anchor as defined in XGraphicsXGraphics
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |