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
-
Box()
-
-
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
Box
public Box()
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
draw
public void draw(Graphics graphics)
- Draws the shape on the screen
- Overrides:
- draw in class GenericShape
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