2362N/A * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * A collection of <em>well known</em> or common attribute keys 0N/A * and methods to apply to an AttributeSet or MutableAttributeSet 0N/A * to get/set the properties in a typesafe manner. 0N/A * The paragraph attributes form the definition of a paragraph to be rendered. 0N/A * All sizes are specified in points (such as found in postscript), a 0N/A * device independent measure. 0N/A * alt="Diagram shows SpaceAbove, FirstLineIndent, LeftIndent, RightIndent, 0N/A * and SpaceBelow a paragraph."></p> 0N/A * @author Timothy Prinzing 0N/A * Name of elements used to represent components. 0N/A * Name of elements used to represent icons. 0N/A * Attribute name used to name the collection of 0N/A * Attribute name used to identifiy the resolving parent 0N/A * set of attributes, if one is defined. 0N/A * Attribute used to identify the model for embedded 0N/A * objects that have a model view separation. 0N/A * Returns the string representation. 0N/A * @return the string 0N/A // ---- character constants ----------------------------------- 0N/A * Bidirectional level of a character as assigned by the Unicode bidi 0N/A * Name of the font family. 0N/A * Name of the font family. 0N/A * Name of the font size. 0N/A * Name of the font size. 0N/A * Name of the bold attribute. 0N/A * Name of the italic attribute. 0N/A * Name of the underline attribute. 0N/A * Name of the Strikethrough attribute. 0N/A * Name of the Superscript attribute. 0N/A * Name of the Subscript attribute. 0N/A * Name of the foreground color attribute. 0N/A * Name of the background color attribute. 0N/A * Name of the component attribute. 0N/A * Name of the icon attribute. 0N/A * Name of the input method composed text attribute. The value of 0N/A * this attribute is an instance of AttributedString which represents 0N/A * the composed text. 0N/A * The amount of space to indent the first 0N/A * line of the paragraph. This value may be negative 0N/A * to offset in the reverse direction. The type 0N/A * is Float and specifies the size of the space 0N/A * The amount to indent the left side 0N/A * Type is float and specifies the size in points. 0N/A * The amount to indent the right side 0N/A * Type is float and specifies the size in points. 0N/A * The amount of space between lines 0N/A * Type is float and specifies the size as a factor of the line height 0N/A * The amount of space above the paragraph. 0N/A * Type is float and specifies the size in points. 0N/A * The amount of space below the paragraph. 0N/A * Type is float and specifies the size in points. 0N/A * Alignment for the paragraph. The type is 0N/A * Integer. Valid values are: 0N/A * <li>ALIGN_JUSTIFED 0N/A * TabSet for the paragraph, type is a TabSet containing 0N/A * Orientation for a paragraph. 0N/A * A possible value for paragraph alignment. This 0N/A * specifies that the text is aligned to the left 0N/A * indent and extra whitespace should be placed on 0N/A * A possible value for paragraph alignment. This 0N/A * specifies that the text is aligned to the center 0N/A * and extra whitespace should be placed equally on 0N/A * the left and right. 0N/A * A possible value for paragraph alignment. This 0N/A * specifies that the text is aligned to the right 0N/A * indent and extra whitespace should be placed on 0N/A * A possible value for paragraph alignment. This 0N/A * specifies that extra whitespace should be spread 0N/A * out through the rows of the paragraph with the 0N/A * text lined up with the left and right indent 0N/A * except on the last line which should be aligned 0N/A // --- character attribute accessors --------------------------- 0N/A * Gets the BidiLevel setting. 0N/A * @param a the attribute set 0N/A return 0;
// Level 0 is base level (non-embedded) left-to-right 0N/A * Sets the BidiLevel. 0N/A * @param a the attribute set 0N/A * @param o the bidi level value 0N/A * Gets the component setting from the attribute list. 0N/A * @param a the attribute set 0N/A * @return the component, null if none 0N/A * Sets the component attribute. 0N/A * @param a the attribute set 0N/A * @param c the component 0N/A * Gets the icon setting from the attribute list. 0N/A * @param a the attribute set 0N/A * @return the icon, null if none 0N/A * Sets the icon attribute. 0N/A * @param a the attribute set 0N/A * Gets the font family setting from the attribute list. 0N/A * @param a the attribute set 0N/A * @return the font family, "Monospaced" as the default 0N/A * Sets the font attribute. 0N/A * @param a the attribute set 0N/A * @param fam the font 0N/A * Gets the font size setting from the attribute list. 0N/A * @param a the attribute set 0N/A * @return the font size, 12 as the default 0N/A * Sets the font size attribute. 0N/A * @param a the attribute set 0N/A * @param s the font size 0N/A * Checks whether the bold attribute is set. 0N/A * @param a the attribute set 0N/A * @return true if set else false 0N/A * Sets the bold attribute. 0N/A * @param a the attribute set 0N/A * Checks whether the italic attribute is set. 0N/A * @param a the attribute set 0N/A * @return true if set else false 0N/A * Sets the italic attribute. 0N/A * @param a the attribute set 0N/A * Checks whether the underline attribute is set. 0N/A * @param a the attribute set 0N/A * @return true if set else false 0N/A * Checks whether the strikethrough attribute is set. 0N/A * @param a the attribute set 0N/A * @return true if set else false 0N/A * Checks whether the superscript attribute is set. 0N/A * @param a the attribute set 0N/A * @return true if set else false 0N/A * Checks whether the subscript attribute is set. 0N/A * @param a the attribute set 0N/A * @return true if set else false 0N/A * Sets the underline attribute. 0N/A * @param a the attribute set 0N/A * Sets the strikethrough attribute. 0N/A * @param a the attribute set 0N/A * Sets the superscript attribute. 0N/A * @param a the attribute set 0N/A * Sets the subscript attribute. 0N/A * @param a the attribute set 0N/A * Gets the foreground color setting from the attribute list. 0N/A * @param a the attribute set 0N/A * @return the color, Color.black as the default 0N/A * Sets the foreground color. 0N/A * @param a the attribute set 0N/A * @param fg the color 0N/A * Gets the background color setting from the attribute list. 0N/A * @param a the attribute set 0N/A * @return the color, Color.black as the default 0N/A * Sets the background color. 0N/A * @param a the attribute set 0N/A * @param fg the color 0N/A // --- paragraph attribute accessors ---------------------------- 0N/A * Gets the first line indent setting. 0N/A * @param a the attribute set 0N/A * @return the value, 0 if not set 0N/A * Sets the first line indent. 0N/A * @param a the attribute set 0N/A * @param i the value 0N/A * Gets the right indent setting. 0N/A * @param a the attribute set 0N/A * @return the value, 0 if not set 0N/A * Sets right indent. 0N/A * @param a the attribute set 0N/A * @param i the value 0N/A * Gets the left indent setting. 0N/A * @param a the attribute set 0N/A * @return the value, 0 if not set 0N/A * @param a the attribute set 0N/A * @param i the value 0N/A * Gets the line spacing setting. 0N/A * @param a the attribute set 0N/A * @return the value, 0 if not set 0N/A * Sets line spacing. 0N/A * @param a the attribute set 0N/A * @param i the value 0N/A * Gets the space above setting. 0N/A * @param a the attribute set 0N/A * @return the value, 0 if not set 0N/A * @param a the attribute set 0N/A * @param i the value 0N/A * Gets the space below setting. 0N/A * @param a the attribute set 0N/A * @return the value, 0 if not set 0N/A * @param a the attribute set 0N/A * @param i the value 0N/A * Gets the alignment setting. 0N/A * @param a the attribute set 0N/A * @return the value <code>StyleConstants.ALIGN_LEFT</code> if not set 0N/A * @param a the attribute set 0N/A * @param align the alignment value 0N/A * @param a the attribute set 0N/A * @return the <code>TabSet</code> 0N/A // PENDING: should this return a default? 0N/A * @param a the attribute set. 0N/A * @param tabs the TabSet 0N/A // --- privates --------------------------------------------- 0N/A * This is a typesafe enumeration of the <em>well-known</em> 0N/A * attributes that contribute to a paragraph style. These are 0N/A * aliased by the outer class for general presentation. 0N/A * This is a typesafe enumeration of the <em>well-known</em> 0N/A * attributes that contribute to a character style. These are 0N/A * aliased by the outer class for general presentation. 0N/A * This is a typesafe enumeration of the <em>well-known</em> 0N/A * attributes that contribute to a color. These are aliased 0N/A * by the outer class for general presentation. 0N/A * This is a typesafe enumeration of the <em>well-known</em> 0N/A * attributes that contribute to a font. These are aliased 0N/A * by the outer class for general presentation.