org.apache.fop.pdf

Class PDFPathPaint

Implemented Interfaces:
PDFWritable
Known Direct Subclasses:
PDFColor, PDFPattern

public abstract class PDFPathPaint
extends PDFObject

Base class for PDF painting operations.

Field Summary

protected PDFDeviceColorSpace
colorSpace
The color space for this paint

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Method Summary

int
getColorSpace()
Get the current color space value for this paint.
String
getColorSpaceOut(boolean fillNotStroke)
Get the PDF string for setting the path paint.
void
setColorSpace(int theColorSpace)
Set the color space for this paint.

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, toPDF, toPDFString

Field Details

colorSpace

protected PDFDeviceColorSpace colorSpace
The color space for this paint

Method Details

getColorSpace

public int getColorSpace()
Get the current color space value for this paint.
Returns:
the color space value

getColorSpaceOut

public String getColorSpaceOut(boolean fillNotStroke)
Get the PDF string for setting the path paint.
Parameters:
fillNotStroke - if true fill otherwise stroke
Returns:
the PDF instruction string

setColorSpace

public void setColorSpace(int theColorSpace)
Set the color space for this paint.
Parameters:
theColorSpace - the color space value

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.