image
Class RoundRectangle

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

public class RoundRectangle
extends Rectangle

Represents an Image of a Rectangle with rounded corners.

    new RoundRectangle(40, 20, 10, "outline", "black")

    new RoundRectangle(20, 40, 10, 20, "solid", "blue")


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(java.awt.Graphics g, int x, int y)
          Paint this Scene into the given graphics
 
Methods inherited from class image.Rectangle
height, width
 
Methods inherited from class 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(java.awt.Graphics g,
                  int x,
                  int y)
Paint this Scene into the given graphics

Overrides:
paint in class Rectangle