Method Summary |
|
public void | commentln(String comment) Writes a comment to the stream and ends the line. |
public void | concatMatrix(double a, double b, double c, double d, double e, double f) Concats the transformation matrix. |
public void | concatMatrix(double[] matrix) Concats the transformations matrix. |
public void | concatMatrix(AffineTransform at) Concats the transformations matric. |
final public static String | convertRealToDSC(float value) Converts a value for use in DSC comments. |
final public static String | convertStringToDSC(String text) Converts text by applying escaping rules established in the DSC specs. |
final public static String | convertStringToDSC(String text, boolean forceParentheses) Converts text by applying escaping rules established in the DSC specs. |
public void | defineRect(double x, double y, double w, double h) Adds a rectangle to the current path. |
final public static void | escapeChar(char c, StringBuffer target) Escapes a character conforming to the rules established in the PostScript
Language Reference (Search for "Literal Text Strings"). |
public void | flush() Flushes the OutputStream. |
public String | formatDouble(double value) Formats a double value for PostScript output. |
public String | formatDouble5(double value) Formats a double value for PostScript output (higher resolution). |
public PSState | getCurrentState() Returns the current graphics state. |
public OutputStream | getOutputStream() Returns the OutputStream the PSGenerator writes to. |
public int | getPSLevel() Returns the selected PostScript level. |
public ResourceTracker | getResourceTracker() Resturns the ResourceTracker instance associated with this PSGenerator. |
public boolean | isResourceSupplied(PSResource res) Indicates whether a particular resource is supplied, rather than needed. |
final public void | newLine() Writes a newline character to the OutputStream. |
public void | notifyResourceUsage(PSResource res, boolean needed) Notifies the generator about the usage of a resource on the current page. |
public void | notifyStartNewPage() Notifies the generator that a new page has been started and that the page resource
set can be cleared. |
public Source | resolveURI(String uri) Attempts to resolve the given URI. |
public boolean | restoreGraphicsState() Restores the last graphics state of the rendering engine. |
public void | saveGraphicsState() Saves the graphics state of the rendering engine. |
public void | setPSLevel(int level) Sets the PostScript level that is used to generate the current document. |
public void | setResourceTracker(ResourceTracker resTracker) Sets the ResourceTracker instance to be associated with this PSGenerator. |
public void | useColor(Color col) Establishes the specified color. |
public void | useDash(String pattern) Establishes the specified dash pattern. |
public void | useFont(String name, float size) Establishes the specified font and size. |
public void | useLineCap(int linecap) Establishes the specified line cap style. |
public void | useLineWidth(double width) Establishes the specified line width. |
public void | useRGBColor(Color col) Establishes the specified color (RGB). |
public void | write(String cmd) Writes a PostScript command to the stream. |
public void | writeByteArr(byte[] cmd) Writes encoded data to the PostScript stream. |
public void | writeDSCComment(String name) Writes a DSC comment to the output stream. |
public void | writeDSCComment(String name, Object param) Writes a DSC comment to the output stream. |
public void | writeDSCComment(String name, Object[] params) Writes a DSC comment to the output stream. |
public void | writeResources(boolean pageLevel) Writes a DSC comment for the accumulated used resources, either at page level or
at document level. |
public void | writeln(String cmd) Writes a PostScript command to the stream and ends the line. |