All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class element.Box

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

public class Box
extends BoundedShape
This class implements the box functionality


Constructor Index

 o Box()

Method Index

 o draw(Graphics)
Draws the shape on the screen
 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 Box
 public Box()

Methods

 o 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
 o draw
 public void draw(Graphics graphics)
Draws the shape on the screen

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

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

Overrides:
getShapeAsInt in class GenericShape

All Packages  Class Hierarchy  This Package  Previous  Next  Index