|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object image.Image image.RegularPolygon
public class RegularPolygon
Represents an Image of a Regular Polygon, e.g., a Square, Pentagon, Octagon, etc.
new RegularPolygon(50, 3, "outline", "red")
new RegularPolygon(40, 4, "outline", "blue")
new RegularPolygon(20, 8, "solid", "red")
Constructor Summary | |
---|---|
RegularPolygon(double radius,
int sides,
java.lang.String mode,
java.lang.String color)
Create a Regular Polygon Image with (double) radius, sides, mode and color |
|
RegularPolygon(int radius,
int sides,
java.lang.String mode,
java.lang.String color)
Create a Regular Polygon Image with (int) radius, sides, skip, mode and color |
Method Summary | |
---|---|
int |
height()
Return the Height of this Image |
void |
paint(java.awt.Graphics g,
int x,
int y)
Paint this Scene into the given graphics |
int |
width()
Return the Width of this Image |
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 RegularPolygon(double radius, int sides, java.lang.String mode, java.lang.String color)
public RegularPolygon(int radius, int sides, java.lang.String mode, java.lang.String color)
Method Detail |
---|
public void paint(java.awt.Graphics 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 |