|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object image.Image image.Rectangle image.RoundRectangle
public class RoundRectangle
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 |
---|
public RoundRectangle(double width, double height, double rxy, java.lang.String mode, java.lang.String color)
public RoundRectangle(int width, int height, int rxy, java.lang.String mode, java.lang.String color)
public RoundRectangle(int width, int height, int rx, int ry, java.lang.String mode, java.lang.String color)
public RoundRectangle(double width, double height, double rx, double ry, java.lang.String mode, java.lang.String color)
Method Detail |
---|
public void paint(java.awt.Graphics g, int x, int y)
paint
in class Rectangle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |