public class PresentationTextObject extends AbstractNamedAFPObject
The content for this object can be created using PtocaBuilder
.
AbstractAFPObject.Category, AbstractAFPObject.Type
name
triplets
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor and Description |
---|
PresentationTextObject(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.
|
Integer |
getBytesAvailable() |
String |
toString() |
protected void |
writeContent(OutputStream os)
Helper method to write the contents of the Object.
|
protected void |
writeEnd(OutputStream os)
Helper method to write the end of the Object.
|
protected void |
writeStart(OutputStream os)
Helper method to write the start of the Object.
|
copySF, getName, getNameBytes, getNameLength, setName
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
writeToStream
copySF, truncate, writeChunksToStream, writeObjects
public PresentationTextObject(String name)
name
- the name of this presentation objectpublic void createTextData(AFPTextDataInfo textDataInfo) throws UnsupportedEncodingException
textDataInfo
- The afp text dataUnsupportedEncodingException
- thrown if character encoding is not supportedpublic boolean createControlSequences(PtocaProducer producer) throws UnsupportedEncodingException
producer
- the producerUnsupportedEncodingException
- thrown if character encoding is not supportedpublic boolean createLineData(AFPLineDataInfo lineDataInfo)
lineDataInfo
- the line data information.protected void writeStart(OutputStream os) throws IOException
writeStart
in class AbstractStructuredObject
os
- The stream to write toIOException
- throws an I/O exception if one occurredprotected void writeContent(OutputStream os) throws IOException
writeContent
in class AbstractStructuredObject
os
- The stream to write toIOException
- throws an I/O exception if one occurredprotected void writeEnd(OutputStream os) throws IOException
writeEnd
in class AbstractStructuredObject
os
- The stream to write toIOException
- an I/O exception if one occurredpublic void endControlSequence()
public String toString()
toString
in class AbstractNamedAFPObject
public Integer getBytesAvailable()
Copyright © 2025 Apache Software Foundation. All rights reserved.