1 3 package org.faceless.pdf; 4 5 import java.awt.color.*; 6 import java.awt.*; 7 8 53 public class SpotColorSpace extends ColorSpace 54 { 55 private org.faceless.pdf2.SpotColorSpace cspace; 56 private Color fallback; 57 58 65 public SpotColorSpace(String name, Color color) 66 { 67 super(color.getColorSpace().getType(), 1); 68 cspace = new org.faceless.pdf2.SpotColorSpace(name, color); 69 this.fallback = fallback; 70 } 71 72 public float[] toCIEXYZ(float[] comp) 73 { 74 return cspace.toCIEXYZ(comp); 75 } 76 public float[] fromCIEXYZ(float[] comp) 77 { 78 return cspace.fromCIEXYZ(comp); 79 } 80 public float[] toRGB(float[] comp) 81 { 82 return cspace.toRGB(comp); 83 } 84 public float[] fromRGB(float[] comp) 85 { 86 return cspace.fromRGB(comp); 87 } 88 89 92 public String getName() 93 { 94 return cspace.getName(); 95 } 96 97 100 public Color getFallbackColor() 101 { 102 return fallback; 103 } 104 105 113 public Color getColor(float amt) 114 { 115 return cspace.getColor(amt); 116 } 117 118 122 public Color getColor() 123 { 124 return cspace.getColor(); 125 } 126 } 127 | Popular Tags |