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(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 |
---|---|
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, getName, getNameBytes, getNameLength, setName
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setObjectClassification, writeTriplets
writeToStream
copySF, truncate, writeChunksToStream, writeObjects
public 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 AbstractStructuredObject
os
- 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 AbstractStructuredObject
os
- 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 AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- an I/O exception if one occurredpublic void endControlSequence()
public java.lang.String toString()
toString
in class AbstractNamedAFPObject
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.