From a63f8d028e15609b96764d4d46ef3d05519b0705 Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Thu, 27 Apr 2000 19:33:50 +0000 Subject: This adds the ColorSpace data type, and has the PDF files make use of it. This should make us all agree on the colorspace identifier codes at least. Adds the beginnings of support for DeviceGray colorspace. (not in patterns, but in colors) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193343 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/pdf/PDFPathPaint.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/org/apache/fop/pdf/PDFPathPaint.java') diff --git a/src/org/apache/fop/pdf/PDFPathPaint.java b/src/org/apache/fop/pdf/PDFPathPaint.java index 894bd5457..702e20b17 100644 --- a/src/org/apache/fop/pdf/PDFPathPaint.java +++ b/src/org/apache/fop/pdf/PDFPathPaint.java @@ -50,10 +50,13 @@ */ package org.apache.fop.pdf; +import org.apache.fop.datatypes.ColorSpace; + public abstract class PDFPathPaint extends PDFObject { - protected int colorspace = 0; //default is 0:RGB, not 1:CMYK + //protected int colorspace = 0; //default is 0:RGB, not 1:CMYK + protected ColorSpace colorSpace; public PDFPathPaint(int theNumber) { super(theNumber); @@ -64,17 +67,17 @@ public abstract class PDFPathPaint extends PDFObject //do nothing } - abstract String getColorspaceOut(boolean fillNotStroke); + abstract String getColorSpaceOut(boolean fillNotStroke); - public void setColorspace(int theColorspace) + public void setColorSpace(int theColorSpace) { - this.colorspace = theColorspace; + this.colorSpace.setColorSpace(theColorSpace); } - public int getColorspace() + public int getColorSpace() { - return(this.colorspace); + return(this.colorSpace.getColorSpace()); } } -- cgit v1.2.3