public class PresentationTextObject extends AbstractNamedAFPObject
The content for this object can be created using PtocaBuilder.
AbstractAFPObject.Category, AbstractAFPObject.TypenametripletsLOG, SF_CLASS, SF_HEADER_LENGTH| Constructor and Description |
|---|
PresentationTextObject(java.lang.String name)
Construct a new PresentationTextObject for the specified name argument,
the name should be an 8 character identifier.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
createControlSequences(PtocaProducer producer)
Creates a chain of control sequences using a producer.
|
boolean |
createLineData(AFPLineDataInfo lineDataInfo)
Drawing of lines using the starting and ending coordinates, thickness and
orientation arguments.
|
void |
createTextData(AFPTextDataInfo textDataInfo)
Create the presentation text data for the byte array of data.
|
void |
endControlSequence()
A control sequence is a sequence of bytes that specifies a control
function.
|
java.lang.Integer |
getBytesAvailable() |
java.lang.String |
toString() |
protected void |
writeContent(java.io.OutputStream os)
Helper method to write the contents of the Object.
|
protected void |
writeEnd(java.io.OutputStream os)
Helper method to write the end of the Object.
|
protected void |
writeStart(java.io.OutputStream os)
Helper method to write the start of the Object.
|
copySF, getName, getNameBytes, getNameLength, setNameaddTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletswriteToStreamcopySF, truncate, writeChunksToStream, writeObjectspublic PresentationTextObject(java.lang.String name)
name - the name of this presentation objectpublic void createTextData(AFPTextDataInfo textDataInfo) throws java.io.UnsupportedEncodingException
textDataInfo - The afp text datajava.io.UnsupportedEncodingException - thrown if character encoding is not supportedpublic boolean createControlSequences(PtocaProducer producer) throws java.io.UnsupportedEncodingException
producer - the producerjava.io.UnsupportedEncodingException - thrown if character encoding is not supportedpublic boolean createLineData(AFPLineDataInfo lineDataInfo)
lineDataInfo - the line data information.protected void writeStart(java.io.OutputStream os)
throws java.io.IOException
writeStart in class AbstractStructuredObjectos - The stream to write tojava.io.IOException - throws an I/O exception if one occurredprotected void writeContent(java.io.OutputStream os)
throws java.io.IOException
writeContent in class AbstractStructuredObjectos - The stream to write tojava.io.IOException - throws an I/O exception if one occurredprotected void writeEnd(java.io.OutputStream os)
throws java.io.IOException
writeEnd in class AbstractStructuredObjectos - The stream to write tojava.io.IOException - an I/O exception if one occurredpublic void endControlSequence()
public java.lang.String toString()
toString in class AbstractNamedAFPObjectpublic java.lang.Integer getBytesAvailable()
Copyright 1999-2022 The Apache Software Foundation. All Rights Reserved.