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
-
Text()
- Call the appropriate dialog and constructs text accordingly to the user input
-
Text(String)
- Constructs a new Text object with given string
-
draw(Graphics)
- Draws the shape on the screen
-
getShapeAsInt()
- Returns the shape's type
-
setHeight(int)
- Sets new height for this shape (in pixels)
-
setWidth(int)
- Sets new width for this shape (in pixels)
-
shapeText()
- Returns the pic text assotiated with this shape
-
showParameters(StatusBar, StatusBar, StatusBar, StatusBar)
- Shows the shape's parameters in the given windows
Text
public Text()
- Call the appropriate dialog and constructs text accordingly to the user input
Text
public Text(String text)
- Constructs a new Text object with given string
setWidth
public void setWidth(int newWidth)
- Sets new width for this shape (in pixels)
- Overrides:
- setWidth in class BoundedShape
setHeight
public void setHeight(int newHeight)
- Sets new height for this shape (in pixels)
- Overrides:
- setHeight in class BoundedShape
draw
public void draw(Graphics g)
- 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
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
getShapeAsInt
public int getShapeAsInt()
- Returns the shape's type
- Overrides:
- getShapeAsInt in class GenericShape
All Packages Class Hierarchy This Package Previous Next Index