|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.dvi.DviWriter
public class DviWriter
This is a implementation of a dvi document writer.
| Constructor Summary | |
|---|---|
DviWriter(java.io.OutputStream outputStream,
DocumentWriterOptions options)
Creates a new DviWriter instance. |
|
| Method Summary | |
|---|---|
void |
beginDviFile()
Before any output the method beginDviFile have to be
called. |
void |
beginPage()
beginPage starts a new page in the dvi file. |
void |
endDviFile()
After the output the method endDviFile have to be called. |
void |
endPage()
endPage terminates the current page. |
GeneralException |
getError()
Get the last error. |
int |
getPages()
Get the number of written pages until now. |
void |
restoreCurrentPositions()
Restore all saved Positions. |
void |
saveCurrentPositions()
Save all saved Positions. |
void |
selectFont(Font font)
Select Font for the next CharNodes. |
void |
writeHorizontalSpace(FixedDimen space)
Write horizontal space to dvi-file. |
void |
writeNode(CharNode node)
Write a char node to the dvi file. |
void |
writeNode(RuleNode node)
Write node to the dvi file. |
void |
writeNode(WhatsItNode node)
Write node to the dvi-file. |
void |
writeSpace(FixedDimen space,
Mode mode)
Write space to the the dvi file. |
void |
writeVerticalSpace(FixedDimen space)
Write vertical space to dvi-file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DviWriter(java.io.OutputStream outputStream,
DocumentWriterOptions options)
DviWriter instance.
outputStream - the dvi file is written to this streamoptions - options for the dvi-file| Method Detail |
|---|
public int getPages()
public void beginDviFile()
throws GeneralException
beginDviFile have to be
called.
GeneralException - if an error occurs
public void endDviFile()
throws GeneralException,
java.io.IOException
endDviFile have to be called.
GeneralException - if an error occurs
java.io.IOException - ...
public void beginPage()
throws GeneralException
beginPage starts a new page in the dvi file. Each page
must be terminated with a call of
endPage().
GeneralException - if an error occurs
public void endPage()
throws GeneralException
endPage terminates the current page. The page have to be
started with beginPage().
GeneralException - if an error occurs
public void selectFont(Font font)
throws GeneralException
Font for the next CharNodes.
font - the Font
GeneralException - if an error occurs
public void writeNode(CharNode node)
throws GeneralException
node - the CharNode
GeneralException - if an error occurs
public void writeNode(RuleNode node)
throws GeneralException
node - a RuleNode
GeneralException - if an error occurs
public void writeNode(WhatsItNode node)
throws GeneralException
node - a WhatsItNode
GeneralException - if an error occurspublic GeneralException getError()
null if there was no error, otherwise the occurred
error
public void writeSpace(FixedDimen space,
Mode mode)
throws GeneralException
space - the spacemode - current Mode
GeneralException - if an error occurs
public void writeHorizontalSpace(FixedDimen space)
throws GeneralException
space - space size
GeneralException - if an error occurs
public void writeVerticalSpace(FixedDimen space)
throws GeneralException
space - space size
GeneralException - if an error occurs
public void saveCurrentPositions()
throws GeneralException
GeneralException - if an error occursrestoreCurrentPositions()
public void restoreCurrentPositions()
throws GeneralException
GeneralException - if an error occurssaveCurrentPositions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||