Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / javax / swing / text / StyleConstants.js
index b0162a1..4f72f09 100644 (file)
-Clazz.declarePackage ("javax.swing.text");\r
-Clazz.load (["javax.swing.text.AttributeSet"], "javax.swing.text.StyleConstants", ["java.lang.Boolean", "$.Float", "java.awt.Color"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.representation = null;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing.text, "StyleConstants");\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-return this.representation;\r
-});\r
-c$.getBidiLevel = Clazz.defineMethod (c$, "getBidiLevel", \r
-function (a) {\r
-var o = a.getAttribute (javax.swing.text.StyleConstants.BidiLevel);\r
-if (o != null) {\r
-return o.intValue ();\r
-}return 0;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setBidiLevel = Clazz.defineMethod (c$, "setBidiLevel", \r
-function (a, o) {\r
-a.addAttribute (javax.swing.text.StyleConstants.BidiLevel,  new Integer (o));\r
-}, "javax.swing.text.MutableAttributeSet,~N");\r
-c$.getComponent = Clazz.defineMethod (c$, "getComponent", \r
-function (a) {\r
-return a.getAttribute (javax.swing.text.StyleConstants.ComponentAttribute);\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setComponent = Clazz.defineMethod (c$, "setComponent", \r
-function (a, c) {\r
-a.addAttribute ("$ename", "component");\r
-a.addAttribute (javax.swing.text.StyleConstants.ComponentAttribute, c);\r
-}, "javax.swing.text.MutableAttributeSet,java.awt.Component");\r
-c$.getIcon = Clazz.defineMethod (c$, "getIcon", \r
-function (a) {\r
-return a.getAttribute (javax.swing.text.StyleConstants.IconAttribute);\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setIcon = Clazz.defineMethod (c$, "setIcon", \r
-function (a, c) {\r
-a.addAttribute ("$ename", "icon");\r
-a.addAttribute (javax.swing.text.StyleConstants.IconAttribute, c);\r
-}, "javax.swing.text.MutableAttributeSet,javax.swing.Icon");\r
-c$.getFontFamily = Clazz.defineMethod (c$, "getFontFamily", \r
-function (a) {\r
-var family = a.getAttribute (javax.swing.text.StyleConstants.FontFamily);\r
-if (family == null) {\r
-family = "Monospaced";\r
-}return family;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setFontFamily = Clazz.defineMethod (c$, "setFontFamily", \r
-function (a, fam) {\r
-a.addAttribute (javax.swing.text.StyleConstants.FontFamily, fam);\r
-}, "javax.swing.text.MutableAttributeSet,~S");\r
-c$.getFontSize = Clazz.defineMethod (c$, "getFontSize", \r
-function (a) {\r
-var size = a.getAttribute (javax.swing.text.StyleConstants.FontSize);\r
-if (size != null) {\r
-return size.intValue ();\r
-}return 12;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setFontSize = Clazz.defineMethod (c$, "setFontSize", \r
-function (a, s) {\r
-a.addAttribute (javax.swing.text.StyleConstants.FontSize,  new Integer (s));\r
-}, "javax.swing.text.MutableAttributeSet,~N");\r
-c$.isBold = Clazz.defineMethod (c$, "isBold", \r
-function (a) {\r
-var bold = a.getAttribute (javax.swing.text.StyleConstants.Bold);\r
-if (bold != null) {\r
-return bold.booleanValue ();\r
-}return false;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setBold = Clazz.defineMethod (c$, "setBold", \r
-function (a, b) {\r
-a.addAttribute (javax.swing.text.StyleConstants.Bold, Boolean.$valueOf (b));\r
-}, "javax.swing.text.MutableAttributeSet,~B");\r
-c$.isItalic = Clazz.defineMethod (c$, "isItalic", \r
-function (a) {\r
-var italic = a.getAttribute (javax.swing.text.StyleConstants.Italic);\r
-if (italic != null) {\r
-return italic.booleanValue ();\r
-}return false;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setItalic = Clazz.defineMethod (c$, "setItalic", \r
-function (a, b) {\r
-a.addAttribute (javax.swing.text.StyleConstants.Italic, Boolean.$valueOf (b));\r
-}, "javax.swing.text.MutableAttributeSet,~B");\r
-c$.isUnderline = Clazz.defineMethod (c$, "isUnderline", \r
-function (a) {\r
-var underline = a.getAttribute (javax.swing.text.StyleConstants.Underline);\r
-if (underline != null) {\r
-return underline.booleanValue ();\r
-}return false;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.isStrikeThrough = Clazz.defineMethod (c$, "isStrikeThrough", \r
-function (a) {\r
-var strike = a.getAttribute (javax.swing.text.StyleConstants.StrikeThrough);\r
-if (strike != null) {\r
-return strike.booleanValue ();\r
-}return false;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.isSuperscript = Clazz.defineMethod (c$, "isSuperscript", \r
-function (a) {\r
-var superscript = a.getAttribute (javax.swing.text.StyleConstants.Superscript);\r
-if (superscript != null) {\r
-return superscript.booleanValue ();\r
-}return false;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.isSubscript = Clazz.defineMethod (c$, "isSubscript", \r
-function (a) {\r
-var subscript = a.getAttribute (javax.swing.text.StyleConstants.Subscript);\r
-if (subscript != null) {\r
-return subscript.booleanValue ();\r
-}return false;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setUnderline = Clazz.defineMethod (c$, "setUnderline", \r
-function (a, b) {\r
-a.addAttribute (javax.swing.text.StyleConstants.Underline, Boolean.$valueOf (b));\r
-}, "javax.swing.text.MutableAttributeSet,~B");\r
-c$.setStrikeThrough = Clazz.defineMethod (c$, "setStrikeThrough", \r
-function (a, b) {\r
-a.addAttribute (javax.swing.text.StyleConstants.StrikeThrough, Boolean.$valueOf (b));\r
-}, "javax.swing.text.MutableAttributeSet,~B");\r
-c$.setSuperscript = Clazz.defineMethod (c$, "setSuperscript", \r
-function (a, b) {\r
-a.addAttribute (javax.swing.text.StyleConstants.Superscript, Boolean.$valueOf (b));\r
-}, "javax.swing.text.MutableAttributeSet,~B");\r
-c$.setSubscript = Clazz.defineMethod (c$, "setSubscript", \r
-function (a, b) {\r
-a.addAttribute (javax.swing.text.StyleConstants.Subscript, Boolean.$valueOf (b));\r
-}, "javax.swing.text.MutableAttributeSet,~B");\r
-c$.getForeground = Clazz.defineMethod (c$, "getForeground", \r
-function (a) {\r
-var fg = a.getAttribute (javax.swing.text.StyleConstants.Foreground);\r
-if (fg == null) {\r
-fg = java.awt.Color.black;\r
-}return fg;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setForeground = Clazz.defineMethod (c$, "setForeground", \r
-function (a, fg) {\r
-a.addAttribute (javax.swing.text.StyleConstants.Foreground, fg);\r
-}, "javax.swing.text.MutableAttributeSet,java.awt.Color");\r
-c$.getBackground = Clazz.defineMethod (c$, "getBackground", \r
-function (a) {\r
-var fg = a.getAttribute (javax.swing.text.StyleConstants.Background);\r
-if (fg == null) {\r
-fg = java.awt.Color.black;\r
-}return fg;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setBackground = Clazz.defineMethod (c$, "setBackground", \r
-function (a, fg) {\r
-a.addAttribute (javax.swing.text.StyleConstants.Background, fg);\r
-}, "javax.swing.text.MutableAttributeSet,java.awt.Color");\r
-c$.getFirstLineIndent = Clazz.defineMethod (c$, "getFirstLineIndent", \r
-function (a) {\r
-var indent = a.getAttribute (javax.swing.text.StyleConstants.FirstLineIndent);\r
-if (indent != null) {\r
-return indent.floatValue ();\r
-}return 0;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setFirstLineIndent = Clazz.defineMethod (c$, "setFirstLineIndent", \r
-function (a, i) {\r
-a.addAttribute (javax.swing.text.StyleConstants.FirstLineIndent,  new Float (i));\r
-}, "javax.swing.text.MutableAttributeSet,~N");\r
-c$.getRightIndent = Clazz.defineMethod (c$, "getRightIndent", \r
-function (a) {\r
-var indent = a.getAttribute (javax.swing.text.StyleConstants.RightIndent);\r
-if (indent != null) {\r
-return indent.floatValue ();\r
-}return 0;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setRightIndent = Clazz.defineMethod (c$, "setRightIndent", \r
-function (a, i) {\r
-a.addAttribute (javax.swing.text.StyleConstants.RightIndent,  new Float (i));\r
-}, "javax.swing.text.MutableAttributeSet,~N");\r
-c$.getLeftIndent = Clazz.defineMethod (c$, "getLeftIndent", \r
-function (a) {\r
-var indent = a.getAttribute (javax.swing.text.StyleConstants.LeftIndent);\r
-if (indent != null) {\r
-return indent.floatValue ();\r
-}return 0;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setLeftIndent = Clazz.defineMethod (c$, "setLeftIndent", \r
-function (a, i) {\r
-a.addAttribute (javax.swing.text.StyleConstants.LeftIndent,  new Float (i));\r
-}, "javax.swing.text.MutableAttributeSet,~N");\r
-c$.getLineSpacing = Clazz.defineMethod (c$, "getLineSpacing", \r
-function (a) {\r
-var space = a.getAttribute (javax.swing.text.StyleConstants.LineSpacing);\r
-if (space != null) {\r
-return space.floatValue ();\r
-}return 0;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setLineSpacing = Clazz.defineMethod (c$, "setLineSpacing", \r
-function (a, i) {\r
-a.addAttribute (javax.swing.text.StyleConstants.LineSpacing,  new Float (i));\r
-}, "javax.swing.text.MutableAttributeSet,~N");\r
-c$.getSpaceAbove = Clazz.defineMethod (c$, "getSpaceAbove", \r
-function (a) {\r
-var space = a.getAttribute (javax.swing.text.StyleConstants.SpaceAbove);\r
-if (space != null) {\r
-return space.floatValue ();\r
-}return 0;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setSpaceAbove = Clazz.defineMethod (c$, "setSpaceAbove", \r
-function (a, i) {\r
-a.addAttribute (javax.swing.text.StyleConstants.SpaceAbove,  new Float (i));\r
-}, "javax.swing.text.MutableAttributeSet,~N");\r
-c$.getSpaceBelow = Clazz.defineMethod (c$, "getSpaceBelow", \r
-function (a) {\r
-var space = a.getAttribute (javax.swing.text.StyleConstants.SpaceBelow);\r
-if (space != null) {\r
-return space.floatValue ();\r
-}return 0;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setSpaceBelow = Clazz.defineMethod (c$, "setSpaceBelow", \r
-function (a, i) {\r
-a.addAttribute (javax.swing.text.StyleConstants.SpaceBelow,  new Float (i));\r
-}, "javax.swing.text.MutableAttributeSet,~N");\r
-c$.getAlignment = Clazz.defineMethod (c$, "getAlignment", \r
-function (a) {\r
-var align = a.getAttribute (javax.swing.text.StyleConstants.Alignment);\r
-if (align != null) {\r
-return align.intValue ();\r
-}return 0;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setAlignment = Clazz.defineMethod (c$, "setAlignment", \r
-function (a, align) {\r
-a.addAttribute (javax.swing.text.StyleConstants.Alignment,  new Integer (align));\r
-}, "javax.swing.text.MutableAttributeSet,~N");\r
-c$.getTabSet = Clazz.defineMethod (c$, "getTabSet", \r
-function (a) {\r
-var tabs = a.getAttribute (javax.swing.text.StyleConstants.TabSet);\r
-return tabs;\r
-}, "javax.swing.text.AttributeSet");\r
-c$.setTabSet = Clazz.defineMethod (c$, "setTabSet", \r
-function (a, tabs) {\r
-a.addAttribute (javax.swing.text.StyleConstants.TabSet, tabs);\r
-}, "javax.swing.text.MutableAttributeSet,javax.swing.text.TabSet");\r
-Clazz.makeConstructor (c$, \r
-function (representation) {\r
-this.representation = representation;\r
-}, "~S");\r
-Clazz.pu$h(self.c$);\r
-c$ = Clazz.declareType (javax.swing.text.StyleConstants, "ParagraphConstants", javax.swing.text.StyleConstants, javax.swing.text.AttributeSet.ParagraphAttribute);\r
-c$ = Clazz.p0p ();\r
-Clazz.pu$h(self.c$);\r
-c$ = Clazz.declareType (javax.swing.text.StyleConstants, "CharacterConstants", javax.swing.text.StyleConstants, javax.swing.text.AttributeSet.CharacterAttribute);\r
-c$ = Clazz.p0p ();\r
-Clazz.pu$h(self.c$);\r
-c$ = Clazz.declareType (javax.swing.text.StyleConstants, "ColorConstants", javax.swing.text.StyleConstants, [javax.swing.text.AttributeSet.ColorAttribute, javax.swing.text.AttributeSet.CharacterAttribute]);\r
-c$ = Clazz.p0p ();\r
-Clazz.pu$h(self.c$);\r
-c$ = Clazz.declareType (javax.swing.text.StyleConstants, "FontConstants", javax.swing.text.StyleConstants, [javax.swing.text.AttributeSet.FontAttribute, javax.swing.text.AttributeSet.CharacterAttribute]);\r
-c$ = Clazz.p0p ();\r
-Clazz.defineStatics (c$,\r
-"ComponentElementName", "component",\r
-"IconElementName", "icon");\r
-c$.NameAttribute = c$.prototype.NameAttribute =  new javax.swing.text.StyleConstants ("name");\r
-c$.ResolveAttribute = c$.prototype.ResolveAttribute =  new javax.swing.text.StyleConstants ("resolver");\r
-c$.ModelAttribute = c$.prototype.ModelAttribute =  new javax.swing.text.StyleConstants ("model");\r
-c$.BidiLevel = c$.prototype.BidiLevel =  new javax.swing.text.StyleConstants.CharacterConstants ("bidiLevel");\r
-c$.FontFamily = c$.prototype.FontFamily =  new javax.swing.text.StyleConstants.FontConstants ("family");\r
-c$.Family = c$.prototype.Family = javax.swing.text.StyleConstants.FontFamily;\r
-c$.FontSize = c$.prototype.FontSize =  new javax.swing.text.StyleConstants.FontConstants ("size");\r
-c$.Size = c$.prototype.Size = javax.swing.text.StyleConstants.FontSize;\r
-c$.Bold = c$.prototype.Bold =  new javax.swing.text.StyleConstants.FontConstants ("bold");\r
-c$.Italic = c$.prototype.Italic =  new javax.swing.text.StyleConstants.FontConstants ("italic");\r
-c$.Underline = c$.prototype.Underline =  new javax.swing.text.StyleConstants.CharacterConstants ("underline");\r
-c$.StrikeThrough = c$.prototype.StrikeThrough =  new javax.swing.text.StyleConstants.CharacterConstants ("strikethrough");\r
-c$.Superscript = c$.prototype.Superscript =  new javax.swing.text.StyleConstants.CharacterConstants ("superscript");\r
-c$.Subscript = c$.prototype.Subscript =  new javax.swing.text.StyleConstants.CharacterConstants ("subscript");\r
-c$.Foreground = c$.prototype.Foreground =  new javax.swing.text.StyleConstants.ColorConstants ("foreground");\r
-c$.Background = c$.prototype.Background =  new javax.swing.text.StyleConstants.ColorConstants ("background");\r
-c$.ComponentAttribute = c$.prototype.ComponentAttribute =  new javax.swing.text.StyleConstants.CharacterConstants ("component");\r
-c$.IconAttribute = c$.prototype.IconAttribute =  new javax.swing.text.StyleConstants.CharacterConstants ("icon");\r
-c$.ComposedTextAttribute = c$.prototype.ComposedTextAttribute =  new javax.swing.text.StyleConstants ("composed text");\r
-c$.FirstLineIndent = c$.prototype.FirstLineIndent =  new javax.swing.text.StyleConstants.ParagraphConstants ("FirstLineIndent");\r
-c$.LeftIndent = c$.prototype.LeftIndent =  new javax.swing.text.StyleConstants.ParagraphConstants ("LeftIndent");\r
-c$.RightIndent = c$.prototype.RightIndent =  new javax.swing.text.StyleConstants.ParagraphConstants ("RightIndent");\r
-c$.LineSpacing = c$.prototype.LineSpacing =  new javax.swing.text.StyleConstants.ParagraphConstants ("LineSpacing");\r
-c$.SpaceAbove = c$.prototype.SpaceAbove =  new javax.swing.text.StyleConstants.ParagraphConstants ("SpaceAbove");\r
-c$.SpaceBelow = c$.prototype.SpaceBelow =  new javax.swing.text.StyleConstants.ParagraphConstants ("SpaceBelow");\r
-c$.Alignment = c$.prototype.Alignment =  new javax.swing.text.StyleConstants.ParagraphConstants ("Alignment");\r
-c$.TabSet = c$.prototype.TabSet =  new javax.swing.text.StyleConstants.ParagraphConstants ("TabSet");\r
-c$.Orientation = c$.prototype.Orientation =  new javax.swing.text.StyleConstants.ParagraphConstants ("Orientation");\r
-Clazz.defineStatics (c$,\r
-"ALIGN_LEFT", 0,\r
-"ALIGN_CENTER", 1,\r
-"ALIGN_RIGHT", 2,\r
-"ALIGN_JUSTIFIED", 3);\r
-c$.keys = c$.prototype.keys =  Clazz.newArray (-1, [javax.swing.text.StyleConstants.NameAttribute, javax.swing.text.StyleConstants.ResolveAttribute, javax.swing.text.StyleConstants.BidiLevel, javax.swing.text.StyleConstants.FontFamily, javax.swing.text.StyleConstants.FontSize, javax.swing.text.StyleConstants.Bold, javax.swing.text.StyleConstants.Italic, javax.swing.text.StyleConstants.Underline, javax.swing.text.StyleConstants.StrikeThrough, javax.swing.text.StyleConstants.Superscript, javax.swing.text.StyleConstants.Subscript, javax.swing.text.StyleConstants.Foreground, javax.swing.text.StyleConstants.Background, javax.swing.text.StyleConstants.ComponentAttribute, javax.swing.text.StyleConstants.IconAttribute, javax.swing.text.StyleConstants.FirstLineIndent, javax.swing.text.StyleConstants.LeftIndent, javax.swing.text.StyleConstants.RightIndent, javax.swing.text.StyleConstants.LineSpacing, javax.swing.text.StyleConstants.SpaceAbove, javax.swing.text.StyleConstants.SpaceBelow, javax.swing.text.StyleConstants.Alignment, javax.swing.text.StyleConstants.TabSet, javax.swing.text.StyleConstants.Orientation, javax.swing.text.StyleConstants.ModelAttribute, javax.swing.text.StyleConstants.ComposedTextAttribute]);\r
-});\r
+Clazz.declarePackage ("javax.swing.text");
+Clazz.load (["javax.swing.text.AttributeSet"], "javax.swing.text.StyleConstants", ["java.lang.Boolean", "$.Float", "java.awt.Color"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.representation = null;
+Clazz.instantialize (this, arguments);
+}, javax.swing.text, "StyleConstants");
+Clazz.overrideMethod (c$, "toString", 
+function () {
+return this.representation;
+});
+c$.getBidiLevel = Clazz.defineMethod (c$, "getBidiLevel", 
+function (a) {
+var o = a.getAttribute (javax.swing.text.StyleConstants.BidiLevel);
+if (o != null) {
+return o.intValue ();
+}return 0;
+}, "javax.swing.text.AttributeSet");
+c$.setBidiLevel = Clazz.defineMethod (c$, "setBidiLevel", 
+function (a, o) {
+a.addAttribute (javax.swing.text.StyleConstants.BidiLevel,  new Integer (o));
+}, "javax.swing.text.MutableAttributeSet,~N");
+c$.getComponent = Clazz.defineMethod (c$, "getComponent", 
+function (a) {
+return a.getAttribute (javax.swing.text.StyleConstants.ComponentAttribute);
+}, "javax.swing.text.AttributeSet");
+c$.setComponent = Clazz.defineMethod (c$, "setComponent", 
+function (a, c) {
+a.addAttribute ("$ename", "component");
+a.addAttribute (javax.swing.text.StyleConstants.ComponentAttribute, c);
+}, "javax.swing.text.MutableAttributeSet,java.awt.Component");
+c$.getIcon = Clazz.defineMethod (c$, "getIcon", 
+function (a) {
+return a.getAttribute (javax.swing.text.StyleConstants.IconAttribute);
+}, "javax.swing.text.AttributeSet");
+c$.setIcon = Clazz.defineMethod (c$, "setIcon", 
+function (a, c) {
+a.addAttribute ("$ename", "icon");
+a.addAttribute (javax.swing.text.StyleConstants.IconAttribute, c);
+}, "javax.swing.text.MutableAttributeSet,javax.swing.Icon");
+c$.getFontFamily = Clazz.defineMethod (c$, "getFontFamily", 
+function (a) {
+var family = a.getAttribute (javax.swing.text.StyleConstants.FontFamily);
+if (family == null) {
+family = "Monospaced";
+}return family;
+}, "javax.swing.text.AttributeSet");
+c$.setFontFamily = Clazz.defineMethod (c$, "setFontFamily", 
+function (a, fam) {
+a.addAttribute (javax.swing.text.StyleConstants.FontFamily, fam);
+}, "javax.swing.text.MutableAttributeSet,~S");
+c$.getFontSize = Clazz.defineMethod (c$, "getFontSize", 
+function (a) {
+var size = a.getAttribute (javax.swing.text.StyleConstants.FontSize);
+if (size != null) {
+return size.intValue ();
+}return 12;
+}, "javax.swing.text.AttributeSet");
+c$.setFontSize = Clazz.defineMethod (c$, "setFontSize", 
+function (a, s) {
+a.addAttribute (javax.swing.text.StyleConstants.FontSize,  new Integer (s));
+}, "javax.swing.text.MutableAttributeSet,~N");
+c$.isBold = Clazz.defineMethod (c$, "isBold", 
+function (a) {
+var bold = a.getAttribute (javax.swing.text.StyleConstants.Bold);
+if (bold != null) {
+return bold.booleanValue ();
+}return false;
+}, "javax.swing.text.AttributeSet");
+c$.setBold = Clazz.defineMethod (c$, "setBold", 
+function (a, b) {
+a.addAttribute (javax.swing.text.StyleConstants.Bold, Boolean.$valueOf (b));
+}, "javax.swing.text.MutableAttributeSet,~B");
+c$.isItalic = Clazz.defineMethod (c$, "isItalic", 
+function (a) {
+var italic = a.getAttribute (javax.swing.text.StyleConstants.Italic);
+if (italic != null) {
+return italic.booleanValue ();
+}return false;
+}, "javax.swing.text.AttributeSet");
+c$.setItalic = Clazz.defineMethod (c$, "setItalic", 
+function (a, b) {
+a.addAttribute (javax.swing.text.StyleConstants.Italic, Boolean.$valueOf (b));
+}, "javax.swing.text.MutableAttributeSet,~B");
+c$.isUnderline = Clazz.defineMethod (c$, "isUnderline", 
+function (a) {
+var underline = a.getAttribute (javax.swing.text.StyleConstants.Underline);
+if (underline != null) {
+return underline.booleanValue ();
+}return false;
+}, "javax.swing.text.AttributeSet");
+c$.isStrikeThrough = Clazz.defineMethod (c$, "isStrikeThrough", 
+function (a) {
+var strike = a.getAttribute (javax.swing.text.StyleConstants.StrikeThrough);
+if (strike != null) {
+return strike.booleanValue ();
+}return false;
+}, "javax.swing.text.AttributeSet");
+c$.isSuperscript = Clazz.defineMethod (c$, "isSuperscript", 
+function (a) {
+var superscript = a.getAttribute (javax.swing.text.StyleConstants.Superscript);
+if (superscript != null) {
+return superscript.booleanValue ();
+}return false;
+}, "javax.swing.text.AttributeSet");
+c$.isSubscript = Clazz.defineMethod (c$, "isSubscript", 
+function (a) {
+var subscript = a.getAttribute (javax.swing.text.StyleConstants.Subscript);
+if (subscript != null) {
+return subscript.booleanValue ();
+}return false;
+}, "javax.swing.text.AttributeSet");
+c$.setUnderline = Clazz.defineMethod (c$, "setUnderline", 
+function (a, b) {
+a.addAttribute (javax.swing.text.StyleConstants.Underline, Boolean.$valueOf (b));
+}, "javax.swing.text.MutableAttributeSet,~B");
+c$.setStrikeThrough = Clazz.defineMethod (c$, "setStrikeThrough", 
+function (a, b) {
+a.addAttribute (javax.swing.text.StyleConstants.StrikeThrough, Boolean.$valueOf (b));
+}, "javax.swing.text.MutableAttributeSet,~B");
+c$.setSuperscript = Clazz.defineMethod (c$, "setSuperscript", 
+function (a, b) {
+a.addAttribute (javax.swing.text.StyleConstants.Superscript, Boolean.$valueOf (b));
+}, "javax.swing.text.MutableAttributeSet,~B");
+c$.setSubscript = Clazz.defineMethod (c$, "setSubscript", 
+function (a, b) {
+a.addAttribute (javax.swing.text.StyleConstants.Subscript, Boolean.$valueOf (b));
+}, "javax.swing.text.MutableAttributeSet,~B");
+c$.getForeground = Clazz.defineMethod (c$, "getForeground", 
+function (a) {
+var fg = a.getAttribute (javax.swing.text.StyleConstants.Foreground);
+if (fg == null) {
+fg = java.awt.Color.black;
+}return fg;
+}, "javax.swing.text.AttributeSet");
+c$.setForeground = Clazz.defineMethod (c$, "setForeground", 
+function (a, fg) {
+a.addAttribute (javax.swing.text.StyleConstants.Foreground, fg);
+}, "javax.swing.text.MutableAttributeSet,java.awt.Color");
+c$.getBackground = Clazz.defineMethod (c$, "getBackground", 
+function (a) {
+var fg = a.getAttribute (javax.swing.text.StyleConstants.Background);
+if (fg == null) {
+fg = java.awt.Color.black;
+}return fg;
+}, "javax.swing.text.AttributeSet");
+c$.setBackground = Clazz.defineMethod (c$, "setBackground", 
+function (a, fg) {
+a.addAttribute (javax.swing.text.StyleConstants.Background, fg);
+}, "javax.swing.text.MutableAttributeSet,java.awt.Color");
+c$.getFirstLineIndent = Clazz.defineMethod (c$, "getFirstLineIndent", 
+function (a) {
+var indent = a.getAttribute (javax.swing.text.StyleConstants.FirstLineIndent);
+if (indent != null) {
+return indent.floatValue ();
+}return 0;
+}, "javax.swing.text.AttributeSet");
+c$.setFirstLineIndent = Clazz.defineMethod (c$, "setFirstLineIndent", 
+function (a, i) {
+a.addAttribute (javax.swing.text.StyleConstants.FirstLineIndent,  new Float (i));
+}, "javax.swing.text.MutableAttributeSet,~N");
+c$.getRightIndent = Clazz.defineMethod (c$, "getRightIndent", 
+function (a) {
+var indent = a.getAttribute (javax.swing.text.StyleConstants.RightIndent);
+if (indent != null) {
+return indent.floatValue ();
+}return 0;
+}, "javax.swing.text.AttributeSet");
+c$.setRightIndent = Clazz.defineMethod (c$, "setRightIndent", 
+function (a, i) {
+a.addAttribute (javax.swing.text.StyleConstants.RightIndent,  new Float (i));
+}, "javax.swing.text.MutableAttributeSet,~N");
+c$.getLeftIndent = Clazz.defineMethod (c$, "getLeftIndent", 
+function (a) {
+var indent = a.getAttribute (javax.swing.text.StyleConstants.LeftIndent);
+if (indent != null) {
+return indent.floatValue ();
+}return 0;
+}, "javax.swing.text.AttributeSet");
+c$.setLeftIndent = Clazz.defineMethod (c$, "setLeftIndent", 
+function (a, i) {
+a.addAttribute (javax.swing.text.StyleConstants.LeftIndent,  new Float (i));
+}, "javax.swing.text.MutableAttributeSet,~N");
+c$.getLineSpacing = Clazz.defineMethod (c$, "getLineSpacing", 
+function (a) {
+var space = a.getAttribute (javax.swing.text.StyleConstants.LineSpacing);
+if (space != null) {
+return space.floatValue ();
+}return 0;
+}, "javax.swing.text.AttributeSet");
+c$.setLineSpacing = Clazz.defineMethod (c$, "setLineSpacing", 
+function (a, i) {
+a.addAttribute (javax.swing.text.StyleConstants.LineSpacing,  new Float (i));
+}, "javax.swing.text.MutableAttributeSet,~N");
+c$.getSpaceAbove = Clazz.defineMethod (c$, "getSpaceAbove", 
+function (a) {
+var space = a.getAttribute (javax.swing.text.StyleConstants.SpaceAbove);
+if (space != null) {
+return space.floatValue ();
+}return 0;
+}, "javax.swing.text.AttributeSet");
+c$.setSpaceAbove = Clazz.defineMethod (c$, "setSpaceAbove", 
+function (a, i) {
+a.addAttribute (javax.swing.text.StyleConstants.SpaceAbove,  new Float (i));
+}, "javax.swing.text.MutableAttributeSet,~N");
+c$.getSpaceBelow = Clazz.defineMethod (c$, "getSpaceBelow", 
+function (a) {
+var space = a.getAttribute (javax.swing.text.StyleConstants.SpaceBelow);
+if (space != null) {
+return space.floatValue ();
+}return 0;
+}, "javax.swing.text.AttributeSet");
+c$.setSpaceBelow = Clazz.defineMethod (c$, "setSpaceBelow", 
+function (a, i) {
+a.addAttribute (javax.swing.text.StyleConstants.SpaceBelow,  new Float (i));
+}, "javax.swing.text.MutableAttributeSet,~N");
+c$.getAlignment = Clazz.defineMethod (c$, "getAlignment", 
+function (a) {
+var align = a.getAttribute (javax.swing.text.StyleConstants.Alignment);
+if (align != null) {
+return align.intValue ();
+}return 0;
+}, "javax.swing.text.AttributeSet");
+c$.setAlignment = Clazz.defineMethod (c$, "setAlignment", 
+function (a, align) {
+a.addAttribute (javax.swing.text.StyleConstants.Alignment,  new Integer (align));
+}, "javax.swing.text.MutableAttributeSet,~N");
+c$.getTabSet = Clazz.defineMethod (c$, "getTabSet", 
+function (a) {
+var tabs = a.getAttribute (javax.swing.text.StyleConstants.TabSet);
+return tabs;
+}, "javax.swing.text.AttributeSet");
+c$.setTabSet = Clazz.defineMethod (c$, "setTabSet", 
+function (a, tabs) {
+a.addAttribute (javax.swing.text.StyleConstants.TabSet, tabs);
+}, "javax.swing.text.MutableAttributeSet,javax.swing.text.TabSet");
+Clazz.makeConstructor (c$, 
+function (representation) {
+this.representation = representation;
+}, "~S");
+Clazz.pu$h(self.c$);
+c$ = Clazz.declareType (javax.swing.text.StyleConstants, "ParagraphConstants", javax.swing.text.StyleConstants, javax.swing.text.AttributeSet.ParagraphAttribute);
+c$ = Clazz.p0p ();
+Clazz.pu$h(self.c$);
+c$ = Clazz.declareType (javax.swing.text.StyleConstants, "CharacterConstants", javax.swing.text.StyleConstants, javax.swing.text.AttributeSet.CharacterAttribute);
+c$ = Clazz.p0p ();
+Clazz.pu$h(self.c$);
+c$ = Clazz.declareType (javax.swing.text.StyleConstants, "ColorConstants", javax.swing.text.StyleConstants, [javax.swing.text.AttributeSet.ColorAttribute, javax.swing.text.AttributeSet.CharacterAttribute]);
+c$ = Clazz.p0p ();
+Clazz.pu$h(self.c$);
+c$ = Clazz.declareType (javax.swing.text.StyleConstants, "FontConstants", javax.swing.text.StyleConstants, [javax.swing.text.AttributeSet.FontAttribute, javax.swing.text.AttributeSet.CharacterAttribute]);
+c$ = Clazz.p0p ();
+Clazz.defineStatics (c$,
+"ComponentElementName", "component",
+"IconElementName", "icon");
+c$.NameAttribute = c$.prototype.NameAttribute =  new javax.swing.text.StyleConstants ("name");
+c$.ResolveAttribute = c$.prototype.ResolveAttribute =  new javax.swing.text.StyleConstants ("resolver");
+c$.ModelAttribute = c$.prototype.ModelAttribute =  new javax.swing.text.StyleConstants ("model");
+c$.BidiLevel = c$.prototype.BidiLevel =  new javax.swing.text.StyleConstants.CharacterConstants ("bidiLevel");
+c$.FontFamily = c$.prototype.FontFamily =  new javax.swing.text.StyleConstants.FontConstants ("family");
+c$.Family = c$.prototype.Family = javax.swing.text.StyleConstants.FontFamily;
+c$.FontSize = c$.prototype.FontSize =  new javax.swing.text.StyleConstants.FontConstants ("size");
+c$.Size = c$.prototype.Size = javax.swing.text.StyleConstants.FontSize;
+c$.Bold = c$.prototype.Bold =  new javax.swing.text.StyleConstants.FontConstants ("bold");
+c$.Italic = c$.prototype.Italic =  new javax.swing.text.StyleConstants.FontConstants ("italic");
+c$.Underline = c$.prototype.Underline =  new javax.swing.text.StyleConstants.CharacterConstants ("underline");
+c$.StrikeThrough = c$.prototype.StrikeThrough =  new javax.swing.text.StyleConstants.CharacterConstants ("strikethrough");
+c$.Superscript = c$.prototype.Superscript =  new javax.swing.text.StyleConstants.CharacterConstants ("superscript");
+c$.Subscript = c$.prototype.Subscript =  new javax.swing.text.StyleConstants.CharacterConstants ("subscript");
+c$.Foreground = c$.prototype.Foreground =  new javax.swing.text.StyleConstants.ColorConstants ("foreground");
+c$.Background = c$.prototype.Background =  new javax.swing.text.StyleConstants.ColorConstants ("background");
+c$.ComponentAttribute = c$.prototype.ComponentAttribute =  new javax.swing.text.StyleConstants.CharacterConstants ("component");
+c$.IconAttribute = c$.prototype.IconAttribute =  new javax.swing.text.StyleConstants.CharacterConstants ("icon");
+c$.ComposedTextAttribute = c$.prototype.ComposedTextAttribute =  new javax.swing.text.StyleConstants ("composed text");
+c$.FirstLineIndent = c$.prototype.FirstLineIndent =  new javax.swing.text.StyleConstants.ParagraphConstants ("FirstLineIndent");
+c$.LeftIndent = c$.prototype.LeftIndent =  new javax.swing.text.StyleConstants.ParagraphConstants ("LeftIndent");
+c$.RightIndent = c$.prototype.RightIndent =  new javax.swing.text.StyleConstants.ParagraphConstants ("RightIndent");
+c$.LineSpacing = c$.prototype.LineSpacing =  new javax.swing.text.StyleConstants.ParagraphConstants ("LineSpacing");
+c$.SpaceAbove = c$.prototype.SpaceAbove =  new javax.swing.text.StyleConstants.ParagraphConstants ("SpaceAbove");
+c$.SpaceBelow = c$.prototype.SpaceBelow =  new javax.swing.text.StyleConstants.ParagraphConstants ("SpaceBelow");
+c$.Alignment = c$.prototype.Alignment =  new javax.swing.text.StyleConstants.ParagraphConstants ("Alignment");
+c$.TabSet = c$.prototype.TabSet =  new javax.swing.text.StyleConstants.ParagraphConstants ("TabSet");
+c$.Orientation = c$.prototype.Orientation =  new javax.swing.text.StyleConstants.ParagraphConstants ("Orientation");
+Clazz.defineStatics (c$,
+"ALIGN_LEFT", 0,
+"ALIGN_CENTER", 1,
+"ALIGN_RIGHT", 2,
+"ALIGN_JUSTIFIED", 3);
+c$.keys = c$.prototype.keys =  Clazz.newArray (-1, [javax.swing.text.StyleConstants.NameAttribute, javax.swing.text.StyleConstants.ResolveAttribute, javax.swing.text.StyleConstants.BidiLevel, javax.swing.text.StyleConstants.FontFamily, javax.swing.text.StyleConstants.FontSize, javax.swing.text.StyleConstants.Bold, javax.swing.text.StyleConstants.Italic, javax.swing.text.StyleConstants.Underline, javax.swing.text.StyleConstants.StrikeThrough, javax.swing.text.StyleConstants.Superscript, javax.swing.text.StyleConstants.Subscript, javax.swing.text.StyleConstants.Foreground, javax.swing.text.StyleConstants.Background, javax.swing.text.StyleConstants.ComponentAttribute, javax.swing.text.StyleConstants.IconAttribute, javax.swing.text.StyleConstants.FirstLineIndent, javax.swing.text.StyleConstants.LeftIndent, javax.swing.text.StyleConstants.RightIndent, javax.swing.text.StyleConstants.LineSpacing, javax.swing.text.StyleConstants.SpaceAbove, javax.swing.text.StyleConstants.SpaceBelow, javax.swing.text.StyleConstants.Alignment, javax.swing.text.StyleConstants.TabSet, javax.swing.text.StyleConstants.Orientation, javax.swing.text.StyleConstants.ModelAttribute, javax.swing.text.StyleConstants.ComposedTextAttribute]);
+});