|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object android.image.Image android.image.Rectangle
public class Rectangle
Represents an Image of a Rectangle.
new Rectangle(40, 20, "outline", "black")
new Rectangle(20, 40, "solid", "blue")
Field Summary |
---|
Fields inherited from class android.image.Image |
---|
BLACK_OUTLINE, CLEAR, WHITE |
Constructor Summary | |
---|---|
Rectangle(double width,
double height,
java.lang.String mode,
java.lang.String color)
Create a Rectangle Image with (double) width and height, mode and color |
|
Rectangle(int width,
int height,
java.lang.String mode,
java.lang.String color)
Create a Rectangle Image with (int) width and height, mode and color |
Method Summary | |
---|---|
int |
height()
Return the Height of this Image |
void |
paint(android.graphics.Canvas g,
int x,
int y)
Paint this Scene into the given graphics |
int |
width()
Return the Width of this Image |
Methods inherited from class android.image.Image |
---|
flipHorizontal, flipVertical, overlay, overlay, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, rasterize, rotate, rotate, toFile, toScene, toWhiteFile, toWhiteScene |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rectangle(double width, double height, java.lang.String mode, java.lang.String color)
public Rectangle(int width, int height, java.lang.String mode, java.lang.String color)
Method Detail |
---|
public void paint(android.graphics.Canvas g, int x, int y)
paint
in class Image
public int width()
width
in class Image
public int height()
height
in class Image
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |