cz.cuni.jagrlib
Class VCommand.TextPath
java.lang.Object
cz.cuni.jagrlib.VectorCommand
cz.cuni.jagrlib.VCommand.TextPath
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- VCommand
public class VCommand.TextPath
- extends VectorCommand
Generates path of the given text string and appends it to the current path.
Uses the current point as starting reference point (current point
itself will be updated by this command).
Does nothing if the actual font has neither TextRender.PROP_STROKE
nor
TextRender.PROP_FILL
capability.
- Since:
- 0.02
- See Also:
- VCommand.java,
VCommand.CreateFont
,
VCommand.FontOrientation
,
VCommand.GetFont
,
VCommand.MoveTo
,
VCommand.DrawText
,
VectorGraphics.textPath(java.lang.String)
,
TextRender
,
Serialized Form
Field Summary |
java.lang.String |
text
String to be drawn. |
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 |
Constructor Summary |
VCommand.TextPath(java.lang.String _text)
Initializing constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
text
public java.lang.String text
- String to be drawn.
VCommand.TextPath
public VCommand.TextPath(java.lang.String _text)
- Initializing constructor.
- Parameters:
_text
- String to be drawn.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.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