org.foray.pdf.object
Class PDFPathPaint

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by org.foray.pdf.object.PDFPathPaint
All Implemented Interfaces:
org.axsl.pdf.PdfPathPaint
Direct Known Subclasses:
PDFColor, PDFPattern

public abstract class PDFPathPaint
extends PDFObject
implements org.axsl.pdf.PdfPathPaint

Abstract superclass for classes painting paths.


Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFPathPaint()
          Constructor for a path that is not part of the PDF document.
PDFPathPaint(PDFDocument doc)
          Constructor.
 
Method Summary
 ColorSpace getColorSpace()
          Return the color space for this paint.
 void setColorSpace(ColorSpace theColorSpace)
          Sets the color space for this paint.
 
Methods inherited from class org.foray.pdf.object.PDFObject
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.axsl.pdf.PdfPathPaint
getSetterString
 

Constructor Detail

PDFPathPaint

public PDFPathPaint(PDFDocument doc)
Constructor.

Parameters:
doc - The parent PDF document.

PDFPathPaint

public PDFPathPaint()
Constructor for a path that is not part of the PDF document.

Method Detail

setColorSpace

public void setColorSpace(ColorSpace theColorSpace)
Sets the color space for this paint.

Parameters:
theColorSpace - The new color space.

getColorSpace

public ColorSpace getColorSpace()
Return the color space for this paint.

Returns:
The color space.


Copyright © 2017. All rights reserved.