|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.AbstractStructuredObject
org.apache.fop.afp.modca.AbstractTripletStructuredObject
org.apache.fop.afp.modca.AbstractNamedAFPObject
org.apache.fop.afp.modca.PresentationTextObject
public class PresentationTextObject
The Presentation Text object is the data object used in document processing environments for representing text which has been prepared for presentation. Text, as used here, means an ordered string of characters, such as graphic symbols, numbers, and letters, that are suitable for the specific purpose of representing coherent information. Text which has been prepared for presentation has been reduced to a primitive form through explicit specification of the characters and their placement in the presentation space. Control sequences which designate specific control functions may be embedded within the text. These functions extend the primitive form by applying specific characteristics to the text when it is presented. The collection of the graphic characters and control codes is called Presentation Text, and the object that contains the Presentation Text is called the PresentationText object.
The content for this object can be created using PtocaBuilder
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
AbstractAFPObject.Category, AbstractAFPObject.Type |
Field Summary |
---|
Fields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject |
---|
name |
Fields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject |
---|
triplets |
Fields inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
LOG, SF_CLASS, SF_HEADER_LENGTH |
Constructor Summary | |
---|---|
PresentationTextObject(java.lang.String name)
Construct a new PresentationTextObject for the specified name argument, the name should be an 8 character identifier. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject |
---|
copySF, getName, getNameBytes, getNameLength, setName |
Methods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject |
---|
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets |
Methods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject |
---|
writeToStream |
Methods inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
copySF, truncate, writeChunksToStream, writeObjects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PresentationTextObject(java.lang.String name)
name
- the name of this presentation objectMethod Detail |
---|
public void createTextData(AFPTextDataInfo textDataInfo) throws java.io.UnsupportedEncodingException
textDataInfo
- The afp text data
java.io.UnsupportedEncodingException
- thrown if character encoding is not supportedpublic boolean createControlSequences(PtocaProducer producer) throws java.io.UnsupportedEncodingException
producer
- the producer
java.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 AbstractStructuredObject
os
- The stream to write to
java.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 to
java.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 to
java.io.IOException
- an I/O exception if one occurredpublic void endControlSequence()
public java.lang.String toString()
toString
in class AbstractNamedAFPObject
public java.lang.Integer getBytesAvailable()
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |