cz.cuni.jagrlib
Class VCommand.DrawText
java.lang.Object
cz.cuni.jagrlib.VectorCommand
cz.cuni.jagrlib.VCommand.DrawText
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- VCommand
public class VCommand.DrawText
- extends VectorCommand
Draws the given text using current font and current color.
Uses the current point as starting reference point (current point
itself will be updated by this command).
Works with both vector and bitmap fonts.
- Since:
- 0.02
- Version:
- 0.25 $Rev: 563 $ $Date: 2007-10-19 00:41:35 +0200 (pá, 19 X 2007) $ $Author: pepca $
- See Also:
- VCommand.java,
VCommand.CreateFont
,
VCommand.FontOrientation
,
VCommand.GetFont
,
VCommand.MoveTo
,
VCommand.SetColor
,
VCommand.TextPath
,
VectorGraphics.drawText(java.lang.String, cz.cuni.jagrlib.iface.TextRender.TextExtent)
,
TextRender
,
Serialized Form
Fields inherited from class cz.cuni.jagrlib.VectorCommand |
FILL_CALLBACK, FILL_DUMMY, FILL_HATCHL, FILL_HATCHR, FILL_SOLID, LINE_CALLBACK, LINE_DASH, LINE_DASHDOT, LINE_DOT, LINE_DUMMY, LINE_SOLID |
text
public String text
- String to be drawn.
VCommand.DrawText
public VCommand.DrawText(String _text)
- Initializing constructor.
- Parameters:
_text
- String to be drawn.
toString
public String toString()
- Overrides:
toString
in class Object
execute
public void execute(VectorGraphics out)
throws BadInterfaceException
- Executes the command on the given
VectorGraphics
interface.
- Overrides:
execute
in class VectorCommand
- Parameters:
out
- Output vector interface.
- Throws:
BadInterfaceException
- See Also:
VectorGraphics