|
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
public abstract class ShowText
Abstract 'show a text string' operation [PDF:1.6:5.3.2].
Nested Class Summary | |
---|---|
static interface |
ShowText.IScanner
|
Field Summary |
---|
Fields inherited from class it.stefanochizzolini.clown.documents.contents.objects.Operation |
---|
operands, operator |
Constructor Summary | |
---|---|
protected |
ShowText(String operator)
|
protected |
ShowText(String operator,
List<PdfDirectObject> operands)
|
protected |
ShowText(String operator,
PdfDirectObject... operands)
|
Method Summary | |
---|---|
void |
applyTo(ContentScanner.GraphicsState state)
Applies the object's state to the specified graphics state. |
abstract byte[] |
getText()
Gets the encoded text. |
List<Object> |
getValue()
Gets the encoded text elements along with their adjustments. |
void |
scan(ContentScanner.GraphicsState state,
ShowText.IScanner textScanner)
Executes scanning on this operation. |
abstract void |
setText(byte[] value)
|
void |
setValue(List<Object> value)
|
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 |
Constructor Detail |
---|
protected ShowText(String operator)
protected ShowText(String operator, PdfDirectObject... operands)
protected ShowText(String operator, List<PdfDirectObject> operands)
Method Detail |
---|
public void applyTo(ContentScanner.GraphicsState state)
ContentObject
applyTo
in class ContentObject
state
- Content scanner graphics state.public abstract byte[] getText()
Text is expressed in native encoding: to resolve it to Unicode, pass it to the decode method of the corresponding font.
public List<Object> getValue()
Text is expressed in native encoding: to resolve it to Unicode, pass it to the decode method of the corresponding font.
public void scan(ContentScanner.GraphicsState state, ShowText.IScanner textScanner)
state
- Graphics state context.textScanner
- Scanner to be notified about text contents.
In case it's null, the operation is applied to the graphics state context.public abstract void setText(byte[] value)
getText()
public void setValue(List<Object> value)
getValue()
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |