|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.afp.ptoca.PtocaBuilder
public abstract class PtocaBuilder
Generator class for PTOCA data structures.
Field Summary |
---|
Fields inherited from interface org.apache.fop.afp.ptoca.PtocaConstants |
---|
AMB, AMI, CHAIN_BIT, DBR, DIR, ESCAPE, NOP, RMI, SCFL, SEC, SIA, STO, SVI, TRANSPARENT_DATA_MAX_SIZE, TRN |
Constructor Summary | |
---|---|
PtocaBuilder()
|
Method Summary | |
---|---|
void |
absoluteMoveBaseline(int coordinate)
Establishes the baseline and the current presentation position at a new B-axis coordinate, which is a specified number of measurement units from the I-axis. |
void |
absoluteMoveInline(int coordinate)
Establishes the current presentation position on the baseline at a new I-axis coordinate, which is a specified number of measurement units from the B-axis. |
void |
addTransparentData(CharactersetEncoder.EncodedChars encodedChars)
The Transparent Data control sequence contains a sequence of code points that are presented without a scan for embedded control sequences. |
void |
drawBaxisRule(int length,
int width)
Draws a line of specified length and specified width in the B-direction from the current presentation position. |
void |
drawIaxisRule(int length,
int width)
Draws a line of specified length and specified width in the I-direction from the current presentation position. |
void |
endChainedControlSequence()
A control sequence is a sequence of bytes that specifies a control function. |
protected abstract java.io.OutputStream |
getOutputStreamForControlSequence(int length)
Returns an OutputStream for the next control sequence. |
void |
relativeMoveInline(int increment)
Moves the inline coordinate of the presentation position relative to the current inline position. |
void |
setCodedFont(byte font)
The Set Coded Font Local control sequence activates a coded font and specifies the character attributes to be used. |
void |
setExtendedTextColor(java.awt.Color col)
The Set Extended Text Color control sequence specifies a color value and defines the color space and encoding for that value. |
void |
setInterCharacterAdjustment(int incr)
Sets the intercharacter adjustment (additional increment or decrement between graphic characters). |
void |
setTextOrientation(int orientation)
The Set Text Orientation control sequence establishes the I-direction and B-direction for the subsequent text. |
void |
setVariableSpaceCharacterIncrement(int incr)
Sets the variable space character increment. |
void |
writeIntroducer()
Writes the introducer for a chained control sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PtocaBuilder()
Method Detail |
---|
protected abstract java.io.OutputStream getOutputStreamForControlSequence(int length)
OutputStream
for the next control sequence. This gives a subclass a
chance to do chunking of control sequences into multiple presentation text data objects.
length
- the length of the following control sequence
public void writeIntroducer() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic void setCodedFont(byte font) throws java.io.IOException
This is a modal control sequence.
font
- The font local identifier.
java.io.IOException
- if an I/O error occurspublic void absoluteMoveInline(int coordinate) throws java.io.IOException
coordinate
- The coordinate for the inline move.
java.io.IOException
- if an I/O error occurspublic void relativeMoveInline(int increment) throws java.io.IOException
increment
- the increment in 1/1440 inch units
java.io.IOException
- if an I/O error occurspublic void absoluteMoveBaseline(int coordinate) throws java.io.IOException
coordinate
- The coordinate for the baseline move.
java.io.IOException
- if an I/O error occurspublic void addTransparentData(CharactersetEncoder.EncodedChars encodedChars) throws java.io.IOException
encodedChars
- The encoded text data to add.
java.io.IOException
- if an I/O error occurspublic void drawBaxisRule(int length, int width) throws java.io.IOException
length
- The length of the rule.width
- The width of the rule.
java.io.IOException
- if an I/O error occurspublic void drawIaxisRule(int length, int width) throws java.io.IOException
length
- The length of the rule.width
- The width of the rule.
java.io.IOException
- if an I/O error occurspublic void setTextOrientation(int orientation) throws java.io.IOException
orientation
- The text orientation (0, 90, 180, 270).
java.io.IOException
- if an I/O error occurspublic void setExtendedTextColor(java.awt.Color col) throws java.io.IOException
This is a modal control sequence.
col
- The color to be set.
java.io.IOException
- if an I/O error occurspublic void setVariableSpaceCharacterIncrement(int incr) throws java.io.IOException
This is a modal control sequence.
incr
- The increment to be set (positive integer, 1/1440 inch)
java.io.IOException
- if an I/O error occurspublic void setInterCharacterAdjustment(int incr) throws java.io.IOException
This is a modal control sequence.
incr
- The increment to be set (1/1440 inch)
java.io.IOException
- if an I/O error occurspublic void endChainedControlSequence() throws java.io.IOException
java.io.IOException
- if an I/O error occurs
|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |