|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwheelsunh.etc.AbstractGraphic
wheelsunh.users.AbstractShape
wheelsunh.users.Shape
wheelsunh.users.RectangularShape
wheelsunh.users.Rectangle
public class Rectangle
Subclass of RectangularShape that draws a rectangle.
Field Summary |
---|
Fields inherited from class wheelsunh.users.Shape |
---|
_c, _dp, _shape, DEFAULT_COLOR |
Fields inherited from class wheelsunh.users.AbstractShape |
---|
_rot |
Constructor Summary | |
---|---|
Rectangle()
Creates a rectangle with dimensions DEFAULT_WIDTH x DEFAULT_HEIGHT and color DEFAULT_COLOR, located in the center of the wheelsunh.users.Frame's DrawingPanel. |
|
Rectangle(java.awt.Color c)
Creates a rectangle with default dimension and location in the wheelsunh.users.Frame's DrawingPanel, but with the specified color. |
|
Rectangle(DrawingPanel dp)
Creates a rectangle in the passed-in drawing panel. |
|
Rectangle(int degrees)
Creates a rectangle with default location, dimension, and color in the wheelsunh.users.Frame's DrawingPanel, but at rotation degrees |
|
Rectangle(int x,
int y)
Creates a rectangle with default dimension and color in the wheelsunh.users.Frame's DrawingPanel, but at location (x, y). |
Method Summary |
---|
Methods inherited from class wheelsunh.users.RectangularShape |
---|
actualPaint, getBounds, getFillColor, getFrameColor, getFrameThickness, getHeight, getLocation, getSize, getWidth, getXLocation, getYLocation, setColor, setFillColor, setFrameColor, setFrameThickness, setLocation, setLocation, setSize, setSize |
Methods inherited from class wheelsunh.users.Shape |
---|
contains, getColor, getRotation, hide, paint, setRotation, show |
Methods inherited from class wheelsunh.users.AbstractShape |
---|
boundsIntersects, center, distance, getCenter, getCenterX, getCenterY, getIntersection, intersects, intersects, setCenter |
Methods inherited from class wheelsunh.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 wheelsunh.Colorable |
---|
getColor |
Constructor Detail |
---|
public Rectangle()
public Rectangle(java.awt.Color c)
public Rectangle(int x, int y)
public Rectangle(int degrees)
degrees
public Rectangle(DrawingPanel dp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |