wheelsunh.users
Class Ellipse

java.lang.Object
  extended by wheelsunh.etc.AbstractGraphic
      extended by wheelsunh.users.AbstractShape
          extended by wheelsunh.users.Shape
              extended by wheelsunh.users.RectangularShape
                  extended by wheelsunh.users.Ellipse
All Implemented Interfaces:
AdvancedColorable, Colorable, CustomGraphic, Locatable, Rotatable, Sizeable

public class Ellipse
extends RectangularShape

Draws an elliptical shape.


Field Summary
 
Fields inherited from class wheelsunh.users.Shape
_c, _dp, _shape, DEFAULT_COLOR
 
Fields inherited from class wheelsunh.users.AbstractShape
_rot
 
Constructor Summary
Ellipse()
          Creates an ellipse with dimensions DEFAULT_WIDTH x DEFAULT_HEIGHT and color DEFAULT_COLOR, located in the center of the wheelsunh.users.Frame's DrawingPanel.
Ellipse(java.awt.Color c)
          Creates an ellipse with default dimension and location in the wheelsunh.users.Frame's DrawingPanel, but with the specified color.
Ellipse(DrawingPanel dp)
          Creates an ellipse in the passed-in drawing panel.
Ellipse(int degrees)
          Creates an ellipse with default location, dimension, and color in the wheelsunh.users.Frame's DrawingPanel, but at rotation degrees
Ellipse(int x, int y)
          Creates an ellipse 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

Ellipse

public Ellipse()
Creates an ellipse with dimensions DEFAULT_WIDTH x DEFAULT_HEIGHT and color DEFAULT_COLOR, located in the center of the wheelsunh.users.Frame's DrawingPanel.


Ellipse

public Ellipse(java.awt.Color c)
Creates an ellipse with default dimension and location in the wheelsunh.users.Frame's DrawingPanel, but with the specified color.


Ellipse

public Ellipse(int x,
               int y)
Creates an ellipse with default dimension and color in the wheelsunh.users.Frame's DrawingPanel, but at location (x, y).


Ellipse

public Ellipse(int degrees)
Creates an ellipse with default location, dimension, and color in the wheelsunh.users.Frame's DrawingPanel, but at rotation degrees


Ellipse

public Ellipse(DrawingPanel dp)
Creates an ellipse in the passed-in drawing panel. In this constructor, dimension is 0x0, location (0, 0), and the color is the same as the DrawingPanel's by default.