|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pdfclown.documents.contents.objects.ContentObject org.pdfclown.documents.contents.objects.Operation org.pdfclown.documents.contents.objects.ShowText
@PDF(value=PDF10) 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 org.pdfclown.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 | |
---|---|
abstract byte[] |
getText()
Gets the encoded text. |
List<Object> |
getValue()
Gets the encoded text elements along with their adjustments. |
void |
scan(ContentScanner.GraphicsState state)
Applies this object to the specified graphics context, updating the specified graphics state. |
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 org.pdfclown.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 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)
ContentObject
scan
in class ContentObject
state
- Graphics state.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.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |