|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwheels.etc.AbstractGraphic
wheels.users.Shape
wheels.users.RectangularShape
wheels.users.RoundedRectangle
Subclass of RectangularShape that draws a rectangle with rounded corners.
| Field Summary |
| Fields inherited from class wheels.users.Shape |
_dp, _shape, DEFAULT_COLOR |
| Constructor Summary | |
RoundedRectangle()
Creates a shape with dimensions DEFAULT_WIDTH x DEFAULT_HEIGHT and color DEFAULT_COLOR, located in the center of the wheels.users.Frame's DrawingPanel. |
|
RoundedRectangle(Color c)
Creates a shape with default dimension and location in the wheels.users.Frame's DrawingPanel, but with the specified color. |
|
RoundedRectangle(DrawingPanel dp)
Creates a shape in the passed-in drawing panel. |
|
RoundedRectangle(int degrees)
Creates a shape with default location, dimension, and color in the wheels.users.Frame's DrawingPanel, but at rotation degrees |
|
RoundedRectangle(int x,
int y)
Creates a shape with default dimension and color in the wheels.users.Frame's DrawingPanel, but at location (x, y). |
|
| Method Summary | |
void |
setSize(Dimension d)
Sets the shape's size. |
| Methods inherited from class wheels.users.RectangularShape |
actualPaint, getBounds, getFillColor, getFrameColor, getFrameThickness, getHeight, getLocation, getSize, getWidth, getXLocation, getYLocation, setColor, setFillColor, setFrameColor, setFrameThickness, setLocation, setLocation, setSize |
| Methods inherited from class wheels.users.Shape |
contains, getColor, getRotation, hide, paint, setRotation, show |
| Methods inherited from class wheels.etc.AbstractGraphic |
mouseClicked, mouseDragged, mousePressed, mouseReleased |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface wheels.Colorable |
getColor |
| Constructor Detail |
public RoundedRectangle()
public RoundedRectangle(Color c)
public RoundedRectangle(int x,
int y)
public RoundedRectangle(int degrees)
degrees
public RoundedRectangle(DrawingPanel dp)
| Method Detail |
public void setSize(Dimension d)
setSize(int, int) forwards to
setSize(java.awt.Dimension), both methods will work
properly.
setSize in interface SizeablesetSize in class RectangularShape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||