net.comtor.j2me.gui
Class CanvasText
java.lang.Object
Canvas
net.comtor.j2me.gui.GenericCanvas
net.comtor.j2me.gui.CanvasClean
net.comtor.j2me.gui.CanvasText
- public class CanvasText
- extends CanvasClean
- See Also:
- Serialized Form
Constructor Summary |
CanvasText()
Creates a new instance of CanvasText |
Method Summary |
void |
addText(java.lang.String text)
|
javax.microedition.lcdui.Font |
getFont()
Getter for property font. |
int |
getTextWidth()
Getter for property width. |
protected void |
paint(javax.microedition.lcdui.Graphics g)
|
void |
resetText()
|
void |
setFont(javax.microedition.lcdui.Font font)
Setter for property font. |
void |
setTextWidth(int width)
Setter for property width. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CanvasText
public CanvasText()
- Creates a new instance of CanvasText
paint
protected void paint(javax.microedition.lcdui.Graphics g)
- Overrides:
paint
in class CanvasClean
resetText
public void resetText()
addText
public void addText(java.lang.String text)
getFont
public javax.microedition.lcdui.Font getFont()
- Getter for property font.
- Returns:
- Value of property font.
setFont
public void setFont(javax.microedition.lcdui.Font font)
- Setter for property font.
- Parameters:
font
- New value of property font.
getTextWidth
public int getTextWidth()
- Getter for property width.
- Returns:
- Value of property width.
setTextWidth
public void setTextWidth(int width)
- Setter for property width.
- Parameters:
width
- New value of property width.