aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/pdf/PDFPathPaint.java
diff options
context:
space:
mode:
authorSteve Coffman <gears@apache.org>2000-04-27 19:33:50 +0000
committerSteve Coffman <gears@apache.org>2000-04-27 19:33:50 +0000
commita63f8d028e15609b96764d4d46ef3d05519b0705 (patch)
tree377456c6a05564f7f87cef3d4be6f14652bbba5b /src/org/apache/fop/pdf/PDFPathPaint.java
parent5ff7a2898ddcff52a326c2bd7b1f6e5c3862954b (diff)
downloadxmlgraphics-fop-a63f8d028e15609b96764d4d46ef3d05519b0705.tar.gz
xmlgraphics-fop-a63f8d028e15609b96764d4d46ef3d05519b0705.zip
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
Diffstat (limited to 'src/org/apache/fop/pdf/PDFPathPaint.java')
-rw-r--r--src/org/apache/fop/pdf/PDFPathPaint.java15
1 files changed, 9 insertions, 6 deletions
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());
}
}