KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > font > GlyphMetrics


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: GlyphMetrics.java,v $
11    Revision 1.2 2004/04/21 10:44:18 bobintetley
12    Code cleanup and native build script fix
13
14    Revision 1.1 2004/01/15 15:20:29 bobintetley
15    Java2D work
16
17
18 */

19
20 package swingwt.awt.font;
21
22 import swingwt.awt.geom.Rectangle2D;
23
24 public final class GlyphMetrics {
25
26     public static final byte STANDARD = 0;
27     public static final byte LIGATURE = 1;
28     public static final byte COMBINING = 2;
29     public static final byte COMPONENT = 3;
30     public static final byte WHITESPACE = 4;
31     
32     public GlyphMetrics(float advance, Rectangle2D bounds, byte glyphType) {
33
34     }
35     public GlyphMetrics(boolean horizontal, float advanceX, float advanceY,
36             Rectangle2D bounds, byte glyphType) {
37     
38     }
39     public float getAdvance() {
40         return 0;
41     }
42     public float getAdvanceX() {
43         return 0;
44     }
45     public float getAdvanceY() {
46         return 0;
47     }
48     public Rectangle2D getBounds2D() {
49         return null;
50     }
51     public float getLSB() {
52         return 0;
53     }
54     public float getRSB() {
55         return 0;
56     }
57     public int getType() {
58         return 0;
59     }
60     public boolean isStandard() {
61         return true;
62     }
63     public boolean isLigature() {
64         return false;
65     }
66     public boolean isCombining() {
67         return false;
68     }
69     public boolean isComponent() {
70         return false;
71     }
72     public boolean isWhitespace() {
73         return false;
74     }
75 }
76
77
78
Popular Tags