KickJava   Java API By Example, From Geeks To Geeks.

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


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: GlyphJustificationInfo.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 public class GlyphJustificationInfo {
23
24     public static final int PRIORITY_KASHIDA = 0;
25     public static final int PRIORITY_WHITESPACE = 1;
26     public static final int PRIORITY_INTERCHAR = 2;
27     public static final int PRIORITY_NONE = 3;
28     public float weight;
29     public int growPriority;
30     public boolean growAbsorb;
31     public float growLeftLimit;
32     public float growRightLimit;
33     public int shrinkPriority;
34     public boolean shrinkAbsorb;
35     public float shrinkLeftLimit;
36     public float shrinkRightLimit;
37     
38      public GlyphJustificationInfo(float weight,
39                                   boolean growAbsorb,
40                                   int growPriority,
41                                   float growLeftLimit,
42                                   float growRightLimit,
43                                   boolean shrinkAbsorb,
44                                   int shrinkPriority,
45                                   float shrinkLeftLimit,
46                                   float shrinkRightLimit)
47     {
48         this.weight = weight;
49         this.growAbsorb = growAbsorb;
50         this.growPriority = growPriority;
51         this.growLeftLimit = growLeftLimit;
52         this.growRightLimit = growRightLimit;
53         this.shrinkAbsorb = shrinkAbsorb;
54         this.shrinkPriority = shrinkPriority;
55         this.shrinkLeftLimit = shrinkLeftLimit;
56         this.shrinkRightLimit = shrinkRightLimit;
57     }
58 }
59
Popular Tags