All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class element.Text

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

public class Text
extends BoundedShape
This class implements the text functionality


Constructor Index

 o Text()
Call the appropriate dialog and constructs text accordingly to the user input
 o Text(String)
Constructs a new Text object with given string

Method Index

 o draw(Graphics)
Draws the shape on the screen
 o getShapeAsInt()
Returns the shape's type
 o setHeight(int)
Sets new height for this shape (in pixels)
 o setWidth(int)
Sets new width for this shape (in pixels)
 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 Text
 public Text()
Call the appropriate dialog and constructs text accordingly to the user input

 o Text
 public Text(String text)
Constructs a new Text object with given string

Methods

 o setWidth
 public void setWidth(int newWidth)
Sets new width for this shape (in pixels)

Overrides:
setWidth in class BoundedShape
 o setHeight
 public void setHeight(int newHeight)
Sets new height for this shape (in pixels)

Overrides:
setHeight in class BoundedShape
 o draw
 public void draw(Graphics g)
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 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 getShapeAsInt
 public int getShapeAsInt()
Returns the shape's type

Overrides:
getShapeAsInt in class GenericShape

All Packages  Class Hierarchy  This Package  Previous  Next  Index