|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.postscript.converter.Ps
public class Ps
This utility class provides some routines for writing PostScript code.
| Constructor Summary | |
|---|---|
Ps()
Creates a new object. |
|
| Method Summary | |
|---|---|
protected void |
drawBox(java.io.PrintStream out,
Node node,
FixedDimen x,
FixedDimen y)
Draw a little box showing the dimensions of the node. |
protected void |
drawGrayBox(java.io.PrintStream out,
Node node,
FixedDimen x,
FixedDimen y)
Draw a little box showing the dimensions of the node. |
void |
eop(java.io.PrintStream out)
Produce a eop hook invocation. |
void |
putText(java.io.PrintStream out,
java.lang.CharSequence text,
Dimen x)
Put some text at a certain position given by x coordinate only. |
void |
putText(java.io.PrintStream out,
java.lang.CharSequence text,
Dimen x,
Dimen y)
Put some text at a certain position. |
void |
rule(java.io.PrintStream out,
FixedDimen width,
FixedDimen height,
FixedDimen x,
FixedDimen y)
Produce a filled rectangle. |
void |
setgray(java.io.PrintStream out,
GrayscaleColor gray)
Produce a PS setgray instruction. |
void |
setrgb(java.io.PrintStream out,
RgbColor rgb)
Produce a PS setrgbcolor instruction. |
void |
writeDict(java.io.PrintStream out)
Write the dictionary of collected code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ps()
| Method Detail |
|---|
protected void drawBox(java.io.PrintStream out,
Node node,
FixedDimen x,
FixedDimen y)
out - the target string buffernode - the node to drawx - the x coordinatey - the y coordinate
protected void drawGrayBox(java.io.PrintStream out,
Node node,
FixedDimen x,
FixedDimen y)
out - the target string buffernode - the node to drawx - the x coordinatey - the y coordinatepublic void eop(java.io.PrintStream out)
out - the output stream
public void putText(java.io.PrintStream out,
java.lang.CharSequence text,
Dimen x,
Dimen y)
out - the output streamtext - the textx - the x coordinatey - the y coordinate
public void putText(java.io.PrintStream out,
java.lang.CharSequence text,
Dimen x)
out - the output streamtext - the textx - the x coordinate
public void rule(java.io.PrintStream out,
FixedDimen width,
FixedDimen height,
FixedDimen x,
FixedDimen y)
out - the output streamwidth - the width of the ruleheight - the height of the rulex - the x coordinatey - the y coordinate
public void setgray(java.io.PrintStream out,
GrayscaleColor gray)
out - the output streamgray - the color
public void setrgb(java.io.PrintStream out,
RgbColor rgb)
out - the output streamrgb - the color
public void writeDict(java.io.PrintStream out)
throws java.io.IOException
out - the output stream
java.io.IOException - in case of an I/O error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||