All Packages Class Hierarchy This Package Previous Next Index
Class element.Ellipse
java.lang.Object
|
+----java.awt.Component
|
+----element.GenericShape
|
+----element.BoundedShape
|
+----element.Ellipse
- public class Ellipse
- extends BoundedShape
This class implements the ellipse functionality
-
Ellipse()
-
-
contains(int, int)
- Returns true iff this shape contains the given point
-
draw(Graphics)
- Draws the shape on the screen
-
getShapeAsInt()
- Returns the shape's type
-
shapeText()
- Returns the pic text assotiated with this shape
-
showParameters(StatusBar, StatusBar, StatusBar, StatusBar)
- Shows the shape's parameters in the given windows
Ellipse
public Ellipse()
draw
public void draw(Graphics graphics)
- Draws the shape on the screen
- Overrides:
- draw in class GenericShape
showParameters
public void showParameters(StatusBar heightField,
StatusBar widthField,
StatusBar radius,
StatusBar text)
- Shows the shape's parameters in the given windows
- Overrides:
- showParameters in class BoundedShape
contains
public boolean contains(int x,
int y)
- Returns true iff this shape contains the given point
- Overrides:
- contains in class BoundedShape
shapeText
public String shapeText()
- Returns the pic text assotiated with this shape
- Overrides:
- shapeText in class GenericShape
getShapeAsInt
public int getShapeAsInt()
- Returns the shape's type
- Overrides:
- getShapeAsInt in class GenericShape
All Packages Class Hierarchy This Package Previous Next Index