StyleAttributes.
| Modifier and Type | Class and Description |
|---|---|
| public static class | StyleAttributeMap.
StyleAttributeMap are immutable, so a Builder is required to create a new instance |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| public static final StyleAttribute | BACKGROUND
Paragraph background color attribute. |
| public static final StyleAttribute | BOLD
Bold typeface text attribute. |
| public static final StyleAttribute | BULLET
Bullet point paragraph attribute. |
| public static final StyleAttribute | EMBEDDED_IMAGE
Embedded image attribute. |
| public static final StyleAttributeMap | EMPTY
Empty attribute set. |
| private static final String[] | |
| public static final StyleAttribute | FIRST_LINE_INDENT
First line indent paragraph attribute, in pixels. |
| public static final StyleAttribute | FONT_FAMILY
Font family text attribute. |
| public static final StyleAttribute | FONT_SIZE
Font size text attribute, in pixels. |
| public static final StyleAttribute | ITALIC
Italic type face text attribute. |
| public static final StyleAttribute | LINE_SPACING
Line spacing paragraph attribute. |
| public static final StyleAttribute | PARAGRAPH_DIRECTION
Paragraph direction attribute. |
| public static final StyleAttribute | SPACE_ABOVE
Space above (top padding) paragraph attribute. |
| public static final StyleAttribute | SPACE_BELOW
Space below (bottom padding) paragraph attribute. |
| public static final StyleAttribute | SPACE_LEFT
Space to the left (left padding) paragraph attribute. |
| public static final StyleAttribute | SPACE_RIGHT
Space to the right (right padding) paragraph attribute. |
| public static final StyleAttribute | STRIKE_THROUGH
Strike-through text attribute. |
| public static final StyleAttribute | TAB_STOPS
Tab stops paragraph attribute. |
| public static final StyleAttribute | TEXT_ALIGNMENT
Text alignment paragraph attribute. |
| public static final StyleAttribute | TEXT_COLOR
Text color attribute. |
| public static final StyleAttribute | TEXT_HIGHLIGHT_1
Text highlight character attribute for the background color specified by the
|
| public static final StyleAttribute | TEXT_HIGHLIGHT_2
Text highlight character attribute for the background color specified by the
|
| public static final StyleAttribute | TEXT_HIGHLIGHT_3
Text highlight character attribute for the background color specified by the
|
| public static final StyleAttribute | TEXT_HIGHLIGHT_4
Text highlight character attribute for the background color specified by the
|
| public static final StyleAttribute | TEXT_HIGHLIGHT_5
Text highlight character attribute for the background color specified by the
|
| public static final StyleAttribute | UNDERLINE
Underline text attribute. |
| public static final StyleAttribute | WAVY_UNDERLINE_1
Wavy underline character attribute using the color specified by the
|
| public static final StyleAttribute | WAVY_UNDERLINE_2
Wavy underline character attribute using the color specified by the
|
| public static final StyleAttribute | WAVY_UNDERLINE_3
Wavy underline character attribute using the color specified by the
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StyleAttributeMap. | |
| public StyleAttributeMap | Returns: the new instance combining the attributesthe attributes to combine attrs)Creates a new StyleAttributeMap instance by first copying attributes from this instance, then adding (and/or overwriting) the attributes from the specified instance. |
| public boolean | Returns: true if the attribute is presentthe attribute a)Returns true if the attribute is present; false otherwise. |
| public boolean | equals(Object x)
Overrides java. Indicates whether some other object is "equal to" this one. |
| private StyleAttributeMap | |
| pack-priv static StyleAttributeMap | Returns: the new instancethe inline style, can be null style)This convenience method creates an instance from an inline style. |
| pack-priv static StyleAttributeMap | Returns: the new instancethe inline style, will not be applied when null style, String... style names names)This convenience method creates an instance from an inline style and a number of CSS style names. |
| public < the attribute value type V> V | Returns: attribute value or nullattribute a)Returns the attribute value, or null if no such attribute is present. |
| public Set | Returns: a set view of the mappings contained in this attribute mapReturns an immutable |
| public Set | |
| public Color | Returns: the background color attribute valueThis convenience method returns the value of |
| public boolean | Returns: true if the attribute value isBoolean.TRUEthe attribute a)Returns true if the specified attribute contains |
| public String | |
| public double | Returns: the attribute valuethe attribute a, double the default value defaultValue)Returns the value of the specified attribute, or defaultValue if the specified attribute
is not present or is not a |
| public Double | Returns: the first line indent value in pointsThis convenience method returns the value of the |
| public String | Returns: the font family nameThis convenience method returns true if the value of the |
| public final Double | Returns: the font sizeThis convenience method returns the value of the |
| public Double | Returns: the line spacing valueThis convenience method returns the value of the |
| public ParagraphDirection | Returns: the paragraph direction attribute value, or nullThis convenience method returns the value of |
| public Double | Returns: the space above paragraph attribute valueThis convenience method returns the value of the |
| public Double | Returns: the space below paragraph attribute valueThis convenience method returns the value of the |
| public Double | Returns: the space left paragraph attribute valueThis convenience method returns the value of the |
| public Double | Returns: the space right paragraph attribute valueThis convenience method returns the value of the |
| public TabStops | Returns: the tab stops attribute valueThis convenience method returns the value of |
| public TextAlignment | Returns: the paragraph alignment attribute valueThis convenience method returns the value of |
| public Color | Returns: the text color attribute valueThis convenience method returns the value of |
| public int | |
| private static void | |
| public boolean | |
| public boolean | Returns: true is no attributes are presentReturns |
| public boolean | |
| public boolean | Returns: the strike through attribute valueThis convenience method returns true if the value of |
| public boolean | Returns: the underline attribute valueThis convenience method returns true if the value of |
| public static < the attribute value type V> StyleAttributeMap | Returns: the new instancethe attribute attribute, V the attribute value value)Convenience method creates the instance with a single attribute. |
| public String |