org.foray.ps.pdf
Class PDFSystemDict

java.lang.Object
  extended by org.foray.ps.PsObjectComposite
      extended by org.foray.ps.PsDictionary
          extended by org.foray.ps.PsSystemDict4a
              extended by org.foray.ps.pdf.PDFSystemDict
All Implemented Interfaces:
org.axsl.ps.PsSystemDict, PsObject

public class PDFSystemDict
extends PsSystemDict4a

PostScript System Dictionary that converts the PostScript code to PDF.


Field Summary
 
Fields inherited from class org.foray.ps.PsDictionary
DEFAULT_FONT_DICTIONARY_SIZE
 
Constructor Summary
PDFSystemDict()
          Create a PDFSystemDict instance.
 
Method Summary
 void closepathDevice()
          Executes any implementation-specific operations related to "closepath".
protected  void curvetoDevice(double x1, double y1, double x2, double y2, double x3, double y3)
          Executes any implementation-specific operations related to "curveto".
 void fillDevice()
          Executes any implementation-specific operations related to "fill".
 byte[] getOutput()
           
 ByteArrayOutputStream getOutputStream()
          Returns the output stream.
 void linetoDevice(PsNumber x, PsNumber y)
          Executes any implementation-specific operations related to "lineto".
 void movetoDevice(PsNumber x, PsNumber y)
          Executes any implementation-specific operations related to "moveto".
 void newpathDevice()
          Executes any implementation-specific operations related to "newpath".
 void setcmykcolorDevice(float cyan, float magenta, float yellow, float black)
          Executes any implementation-specific operations related to "setcmykcolor".
 void setgrayDevice(float grayValue)
          Executes any implementation-specific operations related to "setgray".
 void setrgbcolorDevice(float red, float green, float blue)
          Executes any implementation-specific operations related to "setrgbcolor".
 void strokeDevice()
          Executes any implementation-specific operations related to "stroke".
 
Methods inherited from class org.foray.ps.PsSystemDict4a
execute, executeOperator
 
Methods inherited from class org.foray.ps.PsDictionary
addItem, duplicate, execute, getBoolean, getItem, getItem, getMap, getName, getNumber, getString, getTypeName, isComparable, isComposite, isExecutable, isValidFontDictionary, maxLength, size
 
Methods inherited from class org.foray.ps.PsObjectComposite
getAccess, setAccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFSystemDict

public PDFSystemDict()
Create a PDFSystemDict instance.

Method Detail

getOutputStream

public ByteArrayOutputStream getOutputStream()
Returns the output stream.

Returns:
The output stream.

getOutput

public byte[] getOutput()

newpathDevice

public void newpathDevice()
                   throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "newpath".

Specified by:
newpathDevice in class PsSystemDict4a
Throws:
PsDeviceException - For errors in device-specific code.

movetoDevice

public void movetoDevice(PsNumber x,
                         PsNumber y)
                  throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "moveto".

Specified by:
movetoDevice in class PsSystemDict4a
Parameters:
x - The new "x" position.
y - The new "y" position.
Throws:
PsDeviceException - For errors in device-specific code.

closepathDevice

public void closepathDevice()
                     throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "closepath".

Specified by:
closepathDevice in class PsSystemDict4a
Throws:
PsDeviceException - For errors in device-specific code.

linetoDevice

public void linetoDevice(PsNumber x,
                         PsNumber y)
                  throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "lineto".

Specified by:
linetoDevice in class PsSystemDict4a
Parameters:
x - The new "x" position, that is, for the end-point of the line segment added.
y - The new "y" position, that is, for the end-point of the line segment added.
Throws:
PsDeviceException - For errors in device-specific code.

curvetoDevice

protected void curvetoDevice(double x1,
                             double y1,
                             double x2,
                             double y2,
                             double x3,
                             double y3)
                      throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "curveto".

Specified by:
curvetoDevice in class PsSystemDict4a
Parameters:
x1 - The "x" position for control point 1.
y1 - The "y" position for control point 1.
x2 - The "x" position for control point 2.
y2 - The "y" position for control point 2.
x3 - The "x" position for control point 3.
y3 - The "y" position for control point 3.
Throws:
PsDeviceException - For errors in device-specific code.

fillDevice

public void fillDevice()
                throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "fill".

Specified by:
fillDevice in class PsSystemDict4a
Throws:
PsDeviceException - For errors in device-specific code.

strokeDevice

public void strokeDevice()
                  throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "stroke".

Specified by:
strokeDevice in class PsSystemDict4a
Throws:
PsDeviceException - For errors in device-specific code.

setgrayDevice

public void setgrayDevice(float grayValue)
                   throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "setgray".

Specified by:
setgrayDevice in class PsSystemDict4a
Parameters:
grayValue - The value of the gray color to set. This is a value between 0 (black) and 1 (white).
Throws:
PsDeviceException - For errors in device-specific code.

setcmykcolorDevice

public void setcmykcolorDevice(float cyan,
                               float magenta,
                               float yellow,
                               float black)
                        throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "setcmykcolor".

Specified by:
setcmykcolorDevice in class PsSystemDict4a
Parameters:
cyan - The cyan channel value to set (0.0 through 1.0).
magenta - The magenta channel value to set (0.0 through 1.0).
yellow - The yellow channel value to set (0.0 through 1.0).
black - The black channel value to set (0.0 through 1.0).
Throws:
PsDeviceException - For errors in device-specific code.

setrgbcolorDevice

public void setrgbcolorDevice(float red,
                              float green,
                              float blue)
                       throws PsDeviceException
Description copied from class: PsSystemDict4a
Executes any implementation-specific operations related to "setrgbcolor".

Specified by:
setrgbcolorDevice in class PsSystemDict4a
Parameters:
red - The red channel value to set (0.0 through 1.0).
green - The green channel value to set (0.0 through 1.0).
blue - The blue channel value to set (0.0 through 1.0).
Throws:
PsDeviceException - For errors in device-specific code.


Copyright © 2017. All rights reserved.