All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class element.Circle

java.lang.Object
   |
   +----java.awt.Component
           |
           +----element.GenericShape
                   |
                   +----element.BoundedShape
                           |
                           +----element.Circle

public class Circle
extends BoundedShape
This class implements the circle functionality


Constructor Index

 o Circle()

Method Index

 o contains(int, int)
Returns true iff this shape contains the given point
 o draw(Graphics)
Draws the shape on the screen
 o getResizeText()
Returns the pic text for this shape after resizing
 o getShapeAsInt()
Returns the shape's type
 o shapeText()
Returns the pic text assotiated with this shape
 o showParameters(StatusBar, StatusBar, StatusBar, StatusBar)
Shows the shape's parameters in the given windows

Constructors

 o Circle
 public Circle()

Methods

 o draw
 public void draw(Graphics graphics)
Draws the shape on the screen

Overrides:
draw in class GenericShape
 o showParameters
 public void showParameters(StatusBar heightField,
                            StatusBar widthField,
                            StatusBar radiusField,
                            StatusBar text)
Shows the shape's parameters in the given windows

Overrides:
showParameters in class BoundedShape
 o contains
 public boolean contains(int x,
                         int y)
Returns true iff this shape contains the given point

Overrides:
contains in class BoundedShape
 o shapeText
 public String shapeText()
Returns the pic text assotiated with this shape

Overrides:
shapeText in class GenericShape
 o getResizeText
 public String getResizeText()
Returns the pic text for this shape after resizing

Overrides:
getResizeText in class BoundedShape
 o getShapeAsInt
 public int getShapeAsInt()
Returns the shape's type

Overrides:
getShapeAsInt in class GenericShape

All Packages  Class Hierarchy  This Package  Previous  Next  Index