Debian Codegraph @

freehep-graphicsio-pdf/src/main/java/org/freehep/graphicsio/pdf/PDFConstants.java

raw
1 package org.freehep.graphicsio.pdf;
2
3 import java.text.SimpleDateFormat;
4
5 /**
6 * Specifies constants for use with the PDFWriter, PDFStream and PDFUtil.
7 * <p>
8 *
9 * @author Mark Donszelmann
10 * @version $Id: freehep-graphicsio-pdf/src/main/java/org/freehep/graphicsio/pdf/PDFConstants.java f493ff6e61b2 2005/12/01 18:46:43 duns $
11 */
12 public interface PDFConstants {
13
14 public final static String EOL = System.getProperty("line.separator");
15
16 //
17 // Constants for PDFStream
18 //
19
20 // Line Cap Styles (see Table 4.4)
21 public static final int CAP_BUTT = 0;
22
23 public static final int CAP_ROUND = 1;
24
25 public static final int CAP_SQUARE = 2;
26
27 // Line Join Styles (see Table 4.5)
28 public static final int JOIN_MITTER = 0;
29
30 public static final int JOIN_ROUND = 1;
31
32 public static final int JOIN_BEVEL = 2;
33
34 // Rendering Modes (see Table 5.3)
35 public static final int MODE_FILL = 0;
36
37 public static final int MODE_STROKE = 1;
38
39 public static final int MODE_FILL_STROKE = 2;
40
41 public static final int MODE_INVISIBLE = 3;
42
43 public static final int MODE_FILL_CLIP = 4;
44
45 public static final int MODE_STROKE_CLIP = 5;
46
47 public static final int MODE_FILL_STROKE_CLIP = 6;
48
49 public static final int MODE_CLIP = 7;
50
51 // Date Format for PDF: (D:YYYYMMDDHHmmSSOHH'mm')
52 public static final SimpleDateFormat dateFormat = new SimpleDateFormat(
53 "yyyyMMddHHmmss");
54 }