01: /*
02: Copyright © 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 © 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.objects;
28:
29: import it.stefanochizzolini.clown.bytes.IBuffer;
30: import it.stefanochizzolini.clown.util.NotImplementedException;
31:
32: import java.util.List;
33:
34: /**
35: Local graphics state [PDF:1.6:4.3.1].
36:
37: @author Stefano Chizzolini
38: @version 0.0.4, 06/09/07
39: @since 0.0.4
40: */
41: public final class LocalGraphicsState extends ContainerObject {
42: // <class>
43: // <static>
44: // <fields>
45: public static final String BeginOperator = SaveGraphicsState.Operator;
46: public static final String EndOperator = RestoreGraphicsState.Operator;
47:
48: // </fields>
49: // </static>
50:
51: // <dynamic>
52: // <fields>
53: // </fields>
54:
55: // <constructors>
56: public LocalGraphicsState() {
57: super ();
58: }
59:
60: public LocalGraphicsState(List<ContentObject> objects) {
61: super (objects);
62: }
63:
64: // </constructors>
65:
66: // <interface>
67: // <public>
68: @Override
69: public void writeTo(IBuffer buffer) {
70: buffer.append(BeginOperator);
71: buffer.append("\n");
72:
73: super .writeTo(buffer);
74:
75: buffer.append(EndOperator);
76: buffer.append("\n");
77: }
78: // </public>
79: // </interface>
80: // </dynamic>
81: // </class>
82: }
|