01: /*
02: Copyright © 2006,2007 Stefano Chizzolini. http://clown.stefanochizzolini.it
03:
04: Contributors:
05: * Stefano Chizzolini (original code developer, http://www.stefanochizzolini.it):
06: contributed code is Copyright © 2006,2007 by Stefano Chizzolini.
07:
08: This file should be part of the source code distribution of "PDF Clown library"
09: (the Program): see the accompanying README files for more info.
10:
11: This Program is free software; you can redistribute it and/or modify it under
12: the terms of the GNU General Public License as published by the Free Software
13: Foundation; either version 2 of the License, or (at your option) any later version.
14:
15: This Program is distributed in the hope that it will be useful, but WITHOUT ANY
16: WARRANTY, either expressed or implied; without even the implied warranty of
17: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more details.
18:
19: You should have received a copy of the GNU General Public License along with this
20: Program (see README files); if not, go to the GNU website (http://www.gnu.org/).
21:
22: Redistribution and use, with or without modification, are permitted provided that such
23: redistributions retain the above copyright notice, license and disclaimer, along with
24: this list of conditions.
25: */
26:
27: package it.stefanochizzolini.clown.documents.contents.colorSpaces;
28:
29: import it.stefanochizzolini.clown.documents.Document;
30: import it.stefanochizzolini.clown.files.File;
31: import it.stefanochizzolini.clown.objects.PdfArray;
32: import it.stefanochizzolini.clown.objects.PdfDirectObject;
33: import it.stefanochizzolini.clown.objects.PdfIndirectObject;
34: import it.stefanochizzolini.clown.objects.PdfStream;
35: import it.stefanochizzolini.clown.util.NotImplementedException;
36:
37: /**
38: ICC-based color space [PDF:1.6:4.5.4].
39: @version 0.0.4
40: */
41: // TODO:IMPL improve profile support (see ICC.1:2003-09 spec)!!!
42: public class ICCBasedColorSpace extends ColorSpace {
43: // <class>
44: // <dynamic>
45: // <constructors>
46: // TODO:IMPL!!!
47: // protected ICCBasedColorSpace(
48: // Document context,
49: // PdfArray baseDataObject
50: // )
51: // {super(context,baseDataObject);}
52:
53: ICCBasedColorSpace(PdfDirectObject baseObject,
54: PdfIndirectObject container) {
55: super (baseObject, container);
56: }
57:
58: // </constructors>
59:
60: // <interface>
61: // <public>
62: @Override
63: public ICCBasedColorSpace clone(Document context) {
64: throw new NotImplementedException();
65: }
66:
67: //TODO:IMPL
68: @Override
69: public Color getColor(PdfDirectObject[] components) {
70: return null;
71: }
72:
73: //TODO:IMPL
74: @Override
75: public Color getDefaultColor() {
76: return null;
77: }
78:
79: public PdfStream getProfile() {
80: return (PdfStream) File
81: .resolve(((PdfArray) getBaseDataObject()).get(1));
82: }
83: // </public>
84: // </interface>
85: // </dynamic>
86: // </class>
87: }
|