KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > stefanochizzolini > clown > documents > contents > TextRenderingModeEnum


1 /*
2   Copyright © 2006 Stefano Chizzolini. http://clown.stefanochizzolini.it
3
4   Contributors:
5     * Stefano Chizzolini (original code developer, info@stefanochizzolini.it):
6       contributed code is Copyright © 2006 by Stefano Chizzolini.
7
8   This file should be part of the source code distribution of "PDF Clown library"
9   (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;
28
29 /**
30   Glyph-outlines appearance on text showing [PDF:1.6:5.2.5].
31 */

32 public enum TextRenderingModeEnum
33 {
34   // <class>
35
// <static>
36
// <fields>
37
/**
38     Fill text glyphs.
39   */

40   Fill(0),
41   /**
42     Stroke text glyphs.
43   */

44   Stroke(1),
45   /**
46     Fill, then stroke text glyphs.
47   */

48   FillStroke(2),
49   /**
50     Do nothing (invisible text glyphs).
51   */

52   Invisible(3),
53   /**
54     Fill text glyphs, then apply to path for clipping.
55   */

56   FillClip(4),
57   /**
58     Stroke text glyphs, then apply to path for clipping.
59   */

60   StrokeClip(5),
61   /**
62     Fill, then stroke text glyphs, then apply to path for clipping.
63   */

64   FillStrokeClip(6),
65   /**
66     Apply text glyphs to path for clipping.
67   */

68   Clip(7);
69   // </fields>
70
// </static>
71

72   // <dynamic>
73
// <fields>
74
/**
75     <h3>Remarks</h3>
76     <p>Code MUST be explicitly distinct from the ordinal position of the enum constant
77     as they coincide by chance only.</p>
78   */

79   private int code;
80   // </fields>
81

82   // <constructors>
83
private TextRenderingModeEnum(
84     int code
85     )
86   {this.code = code;}
87   // </constructors>
88

89   // <interface>
90
// <public>
91
public int getCode(
92     )
93   {return code;}
94   // </public>
95
// </interface>
96
// </dynamic>
97
// </class>
98
}
Popular Tags