org.apache.fop.render.afp.modca
public class PresentationTextData extends AbstractAFPObject
log
Constructor and Description |
---|
PresentationTextData()
Default constructor for the PresentationTextData.
|
PresentationTextData(boolean controlInd)
Constructor for the PresentationTextData, the boolean flag indicate
whether the control sequence prefix should be set to indicate the start
of a new control sequence.
|
Modifier and Type | Method and Description |
---|---|
void |
createLineData(int x1,
int y1,
int x2,
int y2,
int thickness,
int orientation,
java.awt.Color col)
Drawing of lines using the starting and ending coordinates, thickness and
colour arguments.
|
void |
createTextData(int fontNumber,
int x,
int y,
int orientation,
java.awt.Color col,
int vsci,
int ica,
byte[] data)
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.
|
void |
writeDataStream(java.io.OutputStream os)
Accessor method to write the AFP datastream for
the text data.
|
writeObjectList
public PresentationTextData()
public PresentationTextData(boolean controlInd)
controlInd
- The control sequence indicator.public void createTextData(int fontNumber, int x, int y, int orientation, java.awt.Color col, int vsci, int ica, byte[] data) throws MaximumSizeExceededException
fontNumber
- The font resource identifier.x
- The x coordinate for the text data.y
- The y coordinate for the text data.orientation
- The orientation of the text data.col
- The text color.vsci
- The variable space character increment.ica
- The inter character adjustment.data
- The text data to be created.MaximumSizeExceededException
public void createLineData(int x1, int y1, int x2, int y2, int thickness, int orientation, java.awt.Color col) throws MaximumSizeExceededException
x1
- The starting X coordinate.y1
- The starting Y coordinate.x2
- The ending X coordinate.y2
- The ending Y coordinate.thickness
- The line thickness.orientation
- The orientation of the text data.col
- The text color.MaximumSizeExceededException
public void writeDataStream(java.io.OutputStream os) throws java.io.IOException
writeDataStream
in class AbstractAFPObject
os
- The stream to write tojava.io.IOException
public void endControlSequence() throws MaximumSizeExceededException
MaximumSizeExceededException
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.