45 |
|
|
46 |
public class StyleConstants |
public class StyleConstants |
47 |
{ |
{ |
48 |
|
public static final int ALIGN_LEFT = 0; |
49 |
|
public static final int ALIGN_CENTER = 1; |
50 |
|
public static final int ALIGN_RIGHT = 2; |
51 |
|
public static final int ALIGN_JUSTIFIED = 3; |
52 |
|
|
53 |
|
public static final Object Background = CharacterConstants.Background; |
54 |
|
public static final Object BidiLevel = CharacterConstants.BidiLevel; |
55 |
|
public static final Object Bold = CharacterConstants.Bold; |
56 |
|
public static final Object ComponentAttribute = CharacterConstants.ComponentAttribute; |
57 |
|
public static final Object FontFamily = CharacterConstants.Family; |
58 |
|
public static final Object FontSize = CharacterConstants.Size; |
59 |
|
public static final Object Foreground = CharacterConstants.Foreground; |
60 |
|
public static final Object IconAttribute = CharacterConstants.IconAttribute; |
61 |
|
public static final Object Italic = CharacterConstants.Italic; |
62 |
|
public static final Object StrikeThrough = CharacterConstants.StrikeThrough; |
63 |
|
public static final Object Subscript = CharacterConstants.Subscript; |
64 |
|
public static final Object Superscript = CharacterConstants.Superscript; |
65 |
|
public static final Object Underline = CharacterConstants.Underline; |
66 |
|
|
67 |
|
public static final Object Alignment = ParagraphConstants.Alignment; |
68 |
|
public static final Object FirstLineIndent = ParagraphConstants.FirstLineIndent; |
69 |
|
public static final Object LeftIndent = ParagraphConstants.LeftIndent; |
70 |
|
public static final Object LineSpacing = ParagraphConstants.LineSpacing; |
71 |
|
public static final Object Orientation = ParagraphConstants.Orientation; |
72 |
|
public static final Object RightIndent = ParagraphConstants.RightIndent; |
73 |
|
public static final Object SpaceAbove = ParagraphConstants.SpaceAbove; |
74 |
|
public static final Object SpaceBelow = ParagraphConstants.SpaceBelow; |
75 |
|
public static final Object TabSet = ParagraphConstants.TabSet; |
76 |
|
|
77 |
|
public static final String ComponentElementName = "component"; |
78 |
|
public static final String IconElementName = "icon"; |
79 |
|
|
80 |
|
public static final Object ComposedTextAttribute = new StyleConstants("composed text"); |
81 |
|
public static final Object ModelAttribute = new StyleConstants("model"); |
82 |
|
public static final Object NameAttribute = new StyleConstants("name"); |
83 |
|
public static final Object ResolveAttribute = new StyleConstants("resolver"); |
84 |
|
|
85 |
String keyname; |
String keyname; |
86 |
|
|
87 |
private StyleConstants(String k) |
private StyleConstants(String k) |
88 |
{ |
{ |
89 |
keyname = k; |
keyname = k; |
94 |
return keyname; |
return keyname; |
95 |
} |
} |
96 |
|
|
|
public static int ALIGN_CENTER; |
|
|
public static int ALIGN_JUSTIFIED; |
|
|
public static int ALIGN_LEFT; |
|
|
public static int ALIGN_RIGHT; |
|
|
|
|
|
public static Object Background = CharacterConstants.Background; |
|
|
public static Object BidiLevel = CharacterConstants.BidiLevel; |
|
|
public static Object Bold = CharacterConstants.Bold; |
|
|
public static Object ComponentAttribute = CharacterConstants.ComponentAttribute; |
|
|
public static Object FontFamily = CharacterConstants.Family; |
|
|
public static Object FontSize = CharacterConstants.Size; |
|
|
public static Object Foreground = CharacterConstants.Foreground; |
|
|
public static Object IconAttribute = CharacterConstants.IconAttribute; |
|
|
public static Object Italic = CharacterConstants.Italic; |
|
|
public static Object StrikeThrough = CharacterConstants.StrikeThrough; |
|
|
public static Object Subscript = CharacterConstants.Subscript; |
|
|
public static Object Superscript = CharacterConstants.Superscript; |
|
|
public static Object Underline = CharacterConstants.Underline; |
|
|
|
|
|
public static Object Alignment = ParagraphConstants.Alignment; |
|
|
public static Object FirstLineIndent = ParagraphConstants.FirstLineIndent; |
|
|
public static Object LeftIndent = ParagraphConstants.LeftIndent; |
|
|
public static Object LineSpacing = ParagraphConstants.LineSpacing; |
|
|
public static Object Orientation = ParagraphConstants.Orientation; |
|
|
public static Object RightIndent = ParagraphConstants.RightIndent; |
|
|
public static Object SpaceAbove = ParagraphConstants.SpaceAbove; |
|
|
public static Object SpaceBelow = ParagraphConstants.SpaceBelow; |
|
|
public static Object TabSet = ParagraphConstants.TabSet; |
|
|
|
|
|
public static String ComponentElementName = new String("component"); |
|
|
public static String IconElementName = new String("icon"); |
|
|
|
|
|
public static Object ComposedTextAttribute = new StyleConstants("composed text"); |
|
|
public static Object ModelAttribute = new StyleConstants("model"); |
|
|
public static Object NameAttribute = new StyleConstants("name"); |
|
|
public static Object ResolveAttribute = new StyleConstants("resolver"); |
|
|
|
|
97 |
public static int getAlignment(AttributeSet a) |
public static int getAlignment(AttributeSet a) |
98 |
{ |
{ |
99 |
if (a.isDefined(Alignment)) |
if (a.isDefined(Alignment)) |