android.image
Class RoundRectangle

java.lang.Object
  extended by android.image.Image
      extended by android.image.Rectangle
          extended by android.image.RoundRectangle

public class RoundRectangle
extends Rectangle

Represents an Image of a Rectangle with rounded corners.


Field Summary
 
Fields inherited from class android.image.Image
BLACK_OUTLINE, CLEAR, WHITE
 
Constructor Summary
RoundRectangle(double width, double height, double rx, double ry, java.lang.String mode, java.lang.String color)
          Create a Round Rectangle with (double) width, height, and corner radius, mode and color
RoundRectangle(double width, double height, double rxy, java.lang.String mode, java.lang.String color)
          Create a Round Rectangle with (double) width, height, and corner radius, mode and color
RoundRectangle(int width, int height, int rx, int ry, java.lang.String mode, java.lang.String color)
          Create a Round Rectangle Image with (int) width, height, and corner radius, mode and color
RoundRectangle(int width, int height, int rxy, java.lang.String mode, java.lang.String color)
          Create a Round Rectangle Image with (int) width, height, and corner radius, mode and color
 
Method Summary
 void paint(android.graphics.Canvas c, int x, int y)
          Paint this Scene into the given graphics
 
Methods inherited from class android.image.Rectangle
height, width
 
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

RoundRectangle

public RoundRectangle(double width,
                      double height,
                      double rxy,
                      java.lang.String mode,
                      java.lang.String color)
Create a Round Rectangle with (double) width, height, and corner radius, mode and color


RoundRectangle

public RoundRectangle(int width,
                      int height,
                      int rxy,
                      java.lang.String mode,
                      java.lang.String color)
Create a Round Rectangle Image with (int) width, height, and corner radius, mode and color


RoundRectangle

public RoundRectangle(int width,
                      int height,
                      int rx,
                      int ry,
                      java.lang.String mode,
                      java.lang.String color)
Create a Round Rectangle Image with (int) width, height, and corner radius, mode and color


RoundRectangle

public RoundRectangle(double width,
                      double height,
                      double rx,
                      double ry,
                      java.lang.String mode,
                      java.lang.String color)
Create a Round Rectangle with (double) width, height, and corner radius, mode and color

Method Detail

paint

public void paint(android.graphics.Canvas c,
                  int x,
                  int y)
Paint this Scene into the given graphics

Overrides:
paint in class Rectangle