Streamablepublic class PresentationTextObject extends AbstractNamedAFPObject
The content for this object can be created using PtocaBuilder.
AbstractAFPObject.Category, AbstractAFPObject.TypeLOG, SF_CLASS, SF_HEADER_LENGTHnametriplets| Constructor | 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 | Description |
|---|---|---|
void |
createControlSequences(PtocaProducer producer) |
Creates a chain of control sequences using a producer.
|
void |
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.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, truncate, writeChunksToStream, writeObjectscopySF, getName, getNameBytes, getNameLength, setNamewriteToStreamaddTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletspublic 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 void createControlSequences(PtocaProducer producer) throws java.io.UnsupportedEncodingException
producer - the producerjava.io.UnsupportedEncodingException - thrown if character encoding is not supportedpublic void 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 AbstractNamedAFPObjectCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.