org.apache.fop.render.afp.modca
public class PresentationTextObject extends AbstractNamedAFPObject
name, nameByteslog| Constructor and Description |
|---|
PresentationTextObject()
Default constructor for the PresentationTextObject
|
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 |
createLineData(int x1,
int y1,
int x2,
int y2,
int thickness,
java.awt.Color col)
Drawing of lines using the starting and ending coordinates, thickness.
|
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
orientation arguments.
|
void |
createTextData(int fontNumber,
int x,
int y,
java.awt.Color col,
int vsci,
int ica,
byte[] data)
Create the presentation text data for the byte array of data.
|
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.
|
java.lang.String |
getName()
Returns the name of this presentation text object
|
void |
writeDataStream(java.io.OutputStream os)
Accessor method to write the AFP datastream for the PresentationTextObject.
|
writeObjectListpublic PresentationTextObject()
public PresentationTextObject(java.lang.String name)
name - the name of this presentation objectpublic void createTextData(int fontNumber,
int x,
int y,
java.awt.Color col,
int vsci,
int ica,
byte[] data)
fontNumber - The font resource identifier.x - The x coordinate for the text data.y - The y coordinate for the text data.col - The text color.vsci - The variable space character increment.ica - The inter character increment.data - The text data to be created.public void createTextData(int fontNumber,
int x,
int y,
int orientation,
java.awt.Color col,
int vsci,
int ica,
byte[] data)
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.public void createLineData(int x1,
int y1,
int x2,
int y2,
int thickness,
java.awt.Color col)
x1 - The first x coordinate of the line.y1 - The first y coordinate of the line.x2 - The second x coordinate of the line.y2 - The second y coordinate of the line.thickness - The thickness of the line.col - The text color.public void createLineData(int x1,
int y1,
int x2,
int y2,
int thickness,
int orientation,
java.awt.Color col)
x1 - The first x coordinate of the line.y1 - The first y coordinate of the line.x2 - The second x coordinate of the line.y2 - The second y coordinate of the line.thickness - The thickness of the line.orientation - The orientation of the line.col - The text color.public void writeDataStream(java.io.OutputStream os)
throws java.io.IOException
writeDataStream in class AbstractAFPObjectos - The stream to write tojava.io.IOException - thrown if an I/O exception of some sort has occurredpublic java.lang.String getName()
public void endControlSequence()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.