|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.stefanochizzolini.clown.documents.contents.objects.ContentObject it.stefanochizzolini.clown.documents.contents.objects.Operation it.stefanochizzolini.clown.documents.contents.objects.ShowText it.stefanochizzolini.clown.documents.contents.objects.ShowTextToNextLine
public final class ShowTextToNextLine
'Move to the next line and show a text string' operation [PDF:1.6:5.3.2].
Nested Class Summary |
---|
Nested classes/interfaces inherited from class it.stefanochizzolini.clown.documents.contents.objects.ShowText |
---|
ShowText.IScanner |
Field Summary | |
---|---|
static String |
SimpleOperator
Specifies no text state parameter (just uses the current settings). |
static String |
SpaceOperator
Specifies the word spacing and the character spacing (setting the corresponding parameters in the text state). |
Fields inherited from class it.stefanochizzolini.clown.documents.contents.objects.Operation |
---|
operands, operator |
Constructor Summary | |
---|---|
ShowTextToNextLine(byte[] text)
|
|
ShowTextToNextLine(byte[] text,
double wordSpace,
double charSpace)
|
|
ShowTextToNextLine(String operator,
List<PdfDirectObject> operands)
|
Method Summary | |
---|---|
Double |
getCharSpace()
Gets the character spacing. |
byte[] |
getText()
Gets the encoded text. |
Double |
getWordSpace()
Gets the word spacing. |
void |
setCharSpace(Double value)
|
void |
setText(byte[] value)
|
void |
setWordSpace(Double value)
|
Methods inherited from class it.stefanochizzolini.clown.documents.contents.objects.ShowText |
---|
applyTo, getValue, scan, setValue |
Methods inherited from class it.stefanochizzolini.clown.documents.contents.objects.Operation |
---|
get, getOperands, getOperator, toString, writeTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String SimpleOperator
public static final String SpaceOperator
Constructor Detail |
---|
public ShowTextToNextLine(byte[] text)
text
- Text encoded using current font's encoding.public ShowTextToNextLine(byte[] text, double wordSpace, double charSpace)
text
- Text encoded using current font's encoding.wordSpace
- Word spacing.charSpace
- Character spacing.public ShowTextToNextLine(String operator, List<PdfDirectObject> operands)
Method Detail |
---|
public Double getCharSpace()
public byte[] getText()
ShowText
Text is expressed in native encoding: to resolve it to Unicode, pass it to the decode method of the corresponding font.
getText
in class ShowText
public Double getWordSpace()
public void setCharSpace(Double value)
getCharSpace()
public void setText(byte[] value)
setText
in class ShowText
ShowText.getText()
public void setWordSpace(Double value)
getWordSpace()
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |