Top Description Inners Fields Constructors Methods
jfx.incubator.scene.control.richtext.model

public final Class StyleAttributeMap

extends Object
Class Inheritance
Imports
java.util.Collections, .HashMap, .Map, .Set, javafx.scene.paint.Color, javafx.scene.text.TextAlignment, com.sun.jfx.incubator.scene.control.richtext.CssStyles, .StyleAttributeMapHelper

This immutable object contains a map of StyleAttributes.
Since
24

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
StyleAttributeMap.Builder

StyleAttributeMap are immutable, so a Builder is required to create a new instance

Field Summary

Modifier and TypeField and Description
private final Map<StyleAttribute<?>, Object>
public static final StyleAttribute<Color>
BACKGROUND

Paragraph background color attribute.

public static final StyleAttribute<Boolean>
BOLD

Bold typeface text attribute.

public static final StyleAttribute<String>
BULLET

Bullet point paragraph attribute.

public static final StyleAttributeMap
EMPTY

Empty attribute set.

private static final String[]
public static final StyleAttribute<Double>
FIRST_LINE_INDENT

First line indent paragraph attribute, in pixels.

public static final StyleAttribute<String>
FONT_FAMILY

Font family text attribute.

public static final StyleAttribute<Double>
FONT_SIZE

Font size text attribute, in pixels.

public static final StyleAttribute<Boolean>
ITALIC

Italic type face text attribute.

public static final StyleAttribute<Double>
LINE_SPACING

Line spacing paragraph attribute.

public static final StyleAttribute<ParagraphDirection>
PARAGRAPH_DIRECTION

Paragraph direction attribute.

public static final StyleAttribute<Double>
SPACE_ABOVE

Space above (top padding) paragraph attribute.

public static final StyleAttribute<Double>
SPACE_BELOW

Space below (bottom padding) paragraph attribute.

public static final StyleAttribute<Double>
SPACE_LEFT

Space to the left (left padding) paragraph attribute.

public static final StyleAttribute<Double>
SPACE_RIGHT

Space to the right (right padding) paragraph attribute.

public static final StyleAttribute<Boolean>
STRIKE_THROUGH

Strike-through text attribute.

public static final StyleAttribute<TextAlignment>
TEXT_ALIGNMENT

Text alignment paragraph attribute.

public static final StyleAttribute<Color>
TEXT_COLOR

Text color attribute.

public static final StyleAttribute<Boolean>
UNDERLINE

Underline text attribute.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static StyleAttributeMap.Builder

Returns:

the new Builder instance
builder
()

Creates a new Builder instance.

public StyleAttributeMap

Returns:

the new instance combining the attributes
combine
(StyleAttributeMap
the 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 present
contains
(StyleAttribute<?>
the attribute
a
)

Returns true if the attribute is present; false otherwise.

public boolean
equals(Object x)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

private StyleAttributeMap
filterAttributes(boolean isParagraph)

pack-priv static StyleAttributeMap

Returns:

the new instance
fromInlineStyle
(String
the inline style, can be null
style
)

This convenience method creates an instance from an inline style.

pack-priv static StyleAttributeMap

Returns:

the new instance
fromStyles
(String
the 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 null
get
(StyleAttribute<V>
attribute
a
)

Returns the attribute value, or null if no such attribute is present.

public Set<Map.Entry<StyleAttribute<?>, Object>>

Returns:

a set view of the mappings contained in this attribute map
getAttributeEntrySet
()

Returns an immutable Set view of the mappings contained in this map.

public Set<StyleAttribute<?>>

Returns:

attribute set
getAttributes
()

Returns the set of StyleAttributes.

public Color

Returns:

the background color attribute value
getBackground
()

This convenience method returns the value of BACKGROUND attribute, or null.

public boolean

Returns:

true if the attribute value is Boolean.TRUE
getBoolean
(StyleAttribute<Boolean>
the attribute
a
)

Returns true if the specified attribute contains Boolean.TRUE, false in any other case.

public String

Returns:

the bullet paragraph attribute value
getBullet
()

This convenience method returns the value of BULLET attribute, or null.

public double

Returns:

the attribute value
getDouble
(StyleAttribute<? extends Number>
the 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 Number.

public Double

Returns:

the first line indent value in points
getFirstLineIndent
()

This convenience method returns the value of the FIRST_LINE_INDENT attribute.

public String

Returns:

the font family name
getFontFamily
()

This convenience method returns true if the value of the FONT_FAMILY attribute is Boolean.TRUE, false otherwise.

public final Double

Returns:

the font size
getFontSize
()

This convenience method returns the value of the FONT_SIZE attribute.

public Double

Returns:

the line spacing value
getLineSpacing
()

This convenience method returns the value of the LINE_SPACING attribute, or null.

public ParagraphDirection

Returns:

the paragraph direction attribute value, or null
getParagraphDirection
()

This convenience method returns the value of PARAGRAPH_DIRECTION paragraph attribute, or null if the value is not set.

public Double

Returns:

the space above paragraph attribute value
getSpaceAbove
()

This convenience method returns the value of the SPACE_ABOVE attribute, or null.

public Double

Returns:

the space below paragraph attribute value
getSpaceBelow
()

This convenience method returns the value of the SPACE_BELOW attribute, or null.

public Double

Returns:

the space left paragraph attribute value
getSpaceLeft
()

This convenience method returns the value of the SPACE_LEFT attribute, or null.

public Double

Returns:

the space right paragraph attribute value
getSpaceRight
()

This convenience method returns the value of the SPACE_RIGHT attribute, or null.

public TextAlignment

Returns:

the paragraph alignment attribute value
getTextAlignment
()

This convenience method returns the value of TEXT_ALIGNMENT attribute, or null.

public Color

Returns:

the text color attribute value
getTextColor
()

This convenience method returns the value of TEXT_COLOR attribute, or null.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

private static void
public boolean

Returns:

the bold attribute value
isBold
()

This convenience method returns true if the value of BOLD attribute is Boolean.TRUE, false otherwise.

public boolean

Returns:

true is no attributes are present
isEmpty
()

Returns true if this instance contains no attributes.

public boolean

Returns:

the italic attribute value
isItalic
()

This convenience method returns true if the value of ITALIC attribute is Boolean.TRUE, false otherwise.

public boolean

Returns:

the strike through attribute value
isStrikeThrough
()

This convenience method returns true if the value of STRIKE_THROUGH attribute is Boolean.TRUE, false otherwise.

public boolean

Returns:

the underline attribute value
isUnderline
()

This convenience method returns true if the value of UNDERLINE attribute is Boolean.TRUE, false otherwise.

public static <
the attribute value type
V
>
StyleAttributeMap

Returns:

the new instance
of
(StyleAttribute<V>
the attribute
attribute
,
V
the attribute value
value
)

Convenience method creates the instance with a single attribute.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

attributesback to summary
private final Map<StyleAttribute<?>, Object> attributes
BACKGROUNDback to summary
public static final StyleAttribute<Color> BACKGROUND

Paragraph background color attribute.

BOLDback to summary
public static final StyleAttribute<Boolean> BOLD

Bold typeface text attribute.

BULLETback to summary
public static final StyleAttribute<String> BULLET

Bullet point paragraph attribute.

EMPTYback to summary
public static final StyleAttributeMap EMPTY

Empty attribute set.

EMPTY_ARRAYback to summary
private static final String[] EMPTY_ARRAY
FIRST_LINE_INDENTback to summary
public static final StyleAttribute<Double> FIRST_LINE_INDENT

First line indent paragraph attribute, in pixels.

FONT_FAMILYback to summary
public static final StyleAttribute<String> FONT_FAMILY

Font family text attribute.

FONT_SIZEback to summary
public static final StyleAttribute<Double> FONT_SIZE

Font size text attribute, in pixels.

ITALICback to summary
public static final StyleAttribute<Boolean> ITALIC

Italic type face text attribute.

LINE_SPACINGback to summary
public static final StyleAttribute<Double> LINE_SPACING

Line spacing paragraph attribute.

PARAGRAPH_DIRECTIONback to summary
public static final StyleAttribute<ParagraphDirection> PARAGRAPH_DIRECTION

Paragraph direction attribute. This attribute is considered only when text wrapping is enabled.

SPACE_ABOVEback to summary
public static final StyleAttribute<Double> SPACE_ABOVE

Space above (top padding) paragraph attribute.

SPACE_BELOWback to summary
public static final StyleAttribute<Double> SPACE_BELOW

Space below (bottom padding) paragraph attribute.

SPACE_LEFTback to summary
public static final StyleAttribute<Double> SPACE_LEFT

Space to the left (left padding) paragraph attribute.

SPACE_RIGHTback to summary
public static final StyleAttribute<Double> SPACE_RIGHT

Space to the right (right padding) paragraph attribute.

STRIKE_THROUGHback to summary
public static final StyleAttribute<Boolean> STRIKE_THROUGH

Strike-through text attribute.

TEXT_ALIGNMENTback to summary
public static final StyleAttribute<TextAlignment> TEXT_ALIGNMENT

Text alignment paragraph attribute.

TEXT_COLORback to summary
public static final StyleAttribute<Color> TEXT_COLOR

Text color attribute.

UNDERLINEback to summary
public static final StyleAttribute<Boolean> UNDERLINE

Underline text attribute.

Constructor Detail

StyleAttributeMapback to summary
private StyleAttributeMap(Map<StyleAttribute<?>, Object> a)

Method Detail

builderback to summary
public static StyleAttributeMap.Builder builder()

Creates a new Builder instance.

Returns:StyleAttributeMap.Builder

the new Builder instance

combineback to summary
public StyleAttributeMap combine(StyleAttributeMap attrs)

Creates a new StyleAttributeMap instance by first copying attributes from this instance, then adding (and/or overwriting) the attributes from the specified instance.

Parameters
attrs:StyleAttributeMap

the attributes to combine

Returns:StyleAttributeMap

the new instance combining the attributes

containsback to summary
public boolean contains(StyleAttribute<?> a)

Returns true if the attribute is present; false otherwise.

Parameters
a:StyleAttribute<?>

the attribute

Returns:boolean

true if the attribute is present

equalsback to summary
public boolean equals(Object x)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
filterAttributesback to summary
private StyleAttributeMap filterAttributes(boolean isParagraph)
fromInlineStyleback to summary
pack-priv static StyleAttributeMap fromInlineStyle(String style)

This convenience method creates an instance from an inline style.

Parameters
style:String

the inline style, can be null

Returns:StyleAttributeMap

the new instance

fromStylesback to summary
pack-priv static StyleAttributeMap fromStyles(String style, String... names)

This convenience method creates an instance from an inline style and a number of CSS style names.

Parameters
style:String

the inline style, will not be applied when null

names:String[]

style names

Returns:StyleAttributeMap

the new instance

getback to summary
public <V> V get(StyleAttribute<V> a)

Returns the attribute value, or null if no such attribute is present.

Parameters
<V>
the attribute value type
a:StyleAttribute<V>

attribute

Returns:V

attribute value or null

getAttributeEntrySetback to summary
public Set<Map.Entry<StyleAttribute<?>, Object>> getAttributeEntrySet()

Returns an immutable Set view of the mappings contained in this map.

Returns:Set<Map.Entry<StyleAttribute<?>, Object>>

a set view of the mappings contained in this attribute map

getAttributesback to summary
public Set<StyleAttribute<?>> getAttributes()

Returns the set of StyleAttributes.

Returns:Set<StyleAttribute<?>>

attribute set

getBackgroundback to summary
public Color getBackground()

This convenience method returns the value of BACKGROUND attribute, or null.

Returns:Color

the background color attribute value

getBooleanback to summary
public boolean getBoolean(StyleAttribute<Boolean> a)

Returns true if the specified attribute contains Boolean.TRUE, false in any other case.

Parameters
a:StyleAttribute<Boolean>

the attribute

Returns:boolean

true if the attribute value is Boolean.TRUE

getBulletback to summary
public String getBullet()

This convenience method returns the value of BULLET attribute, or null.

Returns:String

the bullet paragraph attribute value

getDoubleback to summary
public double getDouble(StyleAttribute<? extends Number> a, double defaultValue)

Returns the value of the specified attribute, or defaultValue if the specified attribute is not present or is not a Number.

Parameters
a:StyleAttribute<? extends Number>

the attribute

defaultValue:double

the default value

Returns:double

the attribute value

getFirstLineIndentback to summary
public Double getFirstLineIndent()

This convenience method returns the value of the FIRST_LINE_INDENT attribute.

Returns:Double

the first line indent value in points

getFontFamilyback to summary
public String getFontFamily()

This convenience method returns true if the value of the FONT_FAMILY attribute is Boolean.TRUE, false otherwise.

Returns:String

the font family name

getFontSizeback to summary
public final Double getFontSize()

This convenience method returns the value of the FONT_SIZE attribute.

Returns:Double

the font size

getLineSpacingback to summary
public Double getLineSpacing()

This convenience method returns the value of the LINE_SPACING attribute, or null.

Returns:Double

the line spacing value

getParagraphDirectionback to summary
public ParagraphDirection getParagraphDirection()

This convenience method returns the value of PARAGRAPH_DIRECTION paragraph attribute, or null if the value is not set.

Returns:ParagraphDirection

the paragraph direction attribute value, or null

getSpaceAboveback to summary
public Double getSpaceAbove()

This convenience method returns the value of the SPACE_ABOVE attribute, or null.

Returns:Double

the space above paragraph attribute value

getSpaceBelowback to summary
public Double getSpaceBelow()

This convenience method returns the value of the SPACE_BELOW attribute, or null.

Returns:Double

the space below paragraph attribute value

getSpaceLeftback to summary
public Double getSpaceLeft()

This convenience method returns the value of the SPACE_LEFT attribute, or null.

Returns:Double

the space left paragraph attribute value

getSpaceRightback to summary
public Double getSpaceRight()

This convenience method returns the value of the SPACE_RIGHT attribute, or null.

Returns:Double

the space right paragraph attribute value

getTextAlignmentback to summary
public TextAlignment getTextAlignment()

This convenience method returns the value of TEXT_ALIGNMENT attribute, or null.

Returns:TextAlignment

the paragraph alignment attribute value

getTextColorback to summary
public Color getTextColor()

This convenience method returns the value of TEXT_COLOR attribute, or null.

Returns:Color

the text color attribute value

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
initAccessorback to summary
private static void initAccessor()
isBoldback to summary
public boolean isBold()

This convenience method returns true if the value of BOLD attribute is Boolean.TRUE, false otherwise.

Returns:boolean

the bold attribute value

isEmptyback to summary
public boolean isEmpty()

Returns true if this instance contains no attributes.

Returns:boolean

true is no attributes are present

isItalicback to summary
public boolean isItalic()

This convenience method returns true if the value of ITALIC attribute is Boolean.TRUE, false otherwise.

Returns:boolean

the italic attribute value

isStrikeThroughback to summary
public boolean isStrikeThrough()

This convenience method returns true if the value of STRIKE_THROUGH attribute is Boolean.TRUE, false otherwise.

Returns:boolean

the strike through attribute value

isUnderlineback to summary
public boolean isUnderline()

This convenience method returns true if the value of UNDERLINE attribute is Boolean.TRUE, false otherwise.

Returns:boolean

the underline attribute value

ofback to summary
public static <V> StyleAttributeMap of(StyleAttribute<V> attribute, V value)

Convenience method creates the instance with a single attribute.

Parameters
<V>
the attribute value type
attribute:StyleAttribute<V>

the attribute

value:V

the attribute value

Returns:StyleAttributeMap

the new instance

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
jfx.incubator.scene.control.richtext.model back to summary

public Class StyleAttributeMap.Builder

extends Object
Class Inheritance
  • java.lang.Object
  • jfx.incubator.scene.control.richtext.model.StyleAttributeMap.Builder

StyleAttributeMap are immutable, so a Builder is required to create a new instance

Field Summary

Modifier and TypeField and Description
private final HashMap<StyleAttribute<?>, Object>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public StyleAttributeMap

Returns:

the new instance
build
()

Creates an immutable instance of StyleAttributeMap with the attributes set by this Builder.

public StyleAttributeMap.Builder

Returns:

this Builder instance
merge
(StyleAttributeMap
the attributes to merge, may be null
attrs
)

Merges the specified attributes with the attributes in this instance.

public <
the attribute value type
V
>
StyleAttributeMap.Builder

Returns:

this Builder instance
set
(StyleAttribute<V>
the attribute
a
,
V
the attribute value
value
)

Sets the value for the specified attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setBackground
(Color
the color
color
)

Sets the paragraph background attribute to the specified color.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setBold
(boolean
true for bold typeface
on
)

Sets the bold attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setBullet
(String
the bullet character
bullet
)

Sets the BULLET attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setFirstLineIndent
(double
the first line indent value
size
)

Sets the FIRST_LINE_INDENT attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setFontFamily
(String
the font family name
name
)

Sets the font family attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setFontSize
(double
the font size in points
size
)

Sets the font size attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setItalic
(boolean
true for italic typeface
on
)

Sets the italic attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setLineSpacing
(double
the line spacing value
value
)

Sets the line spacing paragraph attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setRTL
(ParagraphDirection
the paragraph direction
d
)

Sets the paragraph direction attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setSpaceAbove
(double
the space amount
value
)

Sets the space above paragraph attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setSpaceBelow
(double
the space amount
value
)

Sets the space below paragraph attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setSpaceLeft
(double
the space amount
value
)

Sets the space left paragraph attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setSpaceRight
(double
the space amount
value
)

Sets the space right paragraph attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setStrikeThrough
(boolean
true for strike-through typeface
on
)

Sets the strike-through attribute.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setTextAlignment
(TextAlignment
the alignment
a
)

Sets the text alignment attribute to the specified color.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setTextColor
(Color
the color
color
)

Sets the text color attribute to the specified color.

public StyleAttributeMap.Builder

Returns:

this Builder instance
setUnderline
(boolean
true for underline
on
)

Sets the underline attribute.

private StyleAttributeMap.Builder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributesback to summary
private final HashMap<StyleAttribute<?>, Object> attributes

Constructor Detail

Builderback to summary
private Builder()

Method Detail

buildback to summary
public StyleAttributeMap build()

Creates an immutable instance of StyleAttributeMap with the attributes set by this Builder.

Returns:StyleAttributeMap

the new instance

mergeback to summary
public StyleAttributeMap.Builder merge(StyleAttributeMap attrs)

Merges the specified attributes with the attributes in this instance. The new values override any existing ones.

Parameters
attrs:StyleAttributeMap

the attributes to merge, may be null

Returns:StyleAttributeMap.Builder

this Builder instance

setback to summary
public <V> StyleAttributeMap.Builder set(StyleAttribute<V> a, V value)

Sets the value for the specified attribute. This method will throw an IllegalArgumentException if the value cannot be cast to the type specified by the attribute.

Parameters
<V>
the attribute value type
a:StyleAttribute<V>

the attribute

value:V

the attribute value

Returns:StyleAttributeMap.Builder

this Builder instance

setBackgroundback to summary
public StyleAttributeMap.Builder setBackground(Color color)

Sets the paragraph background attribute to the specified color. It is recommended to specify a translucent background color in order to avoid obstructing the selection and the current line highlights.

Parameters
color:Color

the color

Returns:StyleAttributeMap.Builder

this Builder instance

setBoldback to summary
public StyleAttributeMap.Builder setBold(boolean on)

Sets the bold attribute.

Parameters
on:boolean

true for bold typeface

Returns:StyleAttributeMap.Builder

this Builder instance

setBulletback to summary
public StyleAttributeMap.Builder setBullet(String bullet)

Sets the BULLET attribute.

Parameters
bullet:String

the bullet character

Returns:StyleAttributeMap.Builder

this Builder instance

setFirstLineIndentback to summary
public StyleAttributeMap.Builder setFirstLineIndent(double size)

Sets the FIRST_LINE_INDENT attribute.

Parameters
size:double

the first line indent value

Returns:StyleAttributeMap.Builder

this Builder instance

setFontFamilyback to summary
public StyleAttributeMap.Builder setFontFamily(String name)

Sets the font family attribute.

Parameters
name:String

the font family name

Returns:StyleAttributeMap.Builder

this Builder instance

setFontSizeback to summary
public StyleAttributeMap.Builder setFontSize(double size)

Sets the font size attribute.

Parameters
size:double

the font size in points

Returns:StyleAttributeMap.Builder

this Builder instance

setItalicback to summary
public StyleAttributeMap.Builder setItalic(boolean on)

Sets the italic attribute.

Parameters
on:boolean

true for italic typeface

Returns:StyleAttributeMap.Builder

this Builder instance

setLineSpacingback to summary
public StyleAttributeMap.Builder setLineSpacing(double value)

Sets the line spacing paragraph attribute.

Parameters
value:double

the line spacing value

Returns:StyleAttributeMap.Builder

this Builder instance

setRTLback to summary
public StyleAttributeMap.Builder setRTL(ParagraphDirection d)

Sets the paragraph direction attribute.

Parameters
d:ParagraphDirection

the paragraph direction

Returns:StyleAttributeMap.Builder

this Builder instance

setSpaceAboveback to summary
public StyleAttributeMap.Builder setSpaceAbove(double value)

Sets the space above paragraph attribute. This method also sets SPACE attribute to Boolean.TRUE.

Parameters
value:double

the space amount

Returns:StyleAttributeMap.Builder

this Builder instance

setSpaceBelowback to summary
public StyleAttributeMap.Builder setSpaceBelow(double value)

Sets the space below paragraph attribute. This method also sets SPACE attribute to Boolean.TRUE.

Parameters
value:double

the space amount

Returns:StyleAttributeMap.Builder

this Builder instance

setSpaceLeftback to summary
public StyleAttributeMap.Builder setSpaceLeft(double value)

Sets the space left paragraph attribute. This method also sets SPACE attribute to Boolean.TRUE.

Parameters
value:double

the space amount

Returns:StyleAttributeMap.Builder

this Builder instance

setSpaceRightback to summary
public StyleAttributeMap.Builder setSpaceRight(double value)

Sets the space right paragraph attribute. This method also sets SPACE attribute to Boolean.TRUE.

Parameters
value:double

the space amount

Returns:StyleAttributeMap.Builder

this Builder instance

setStrikeThroughback to summary
public StyleAttributeMap.Builder setStrikeThrough(boolean on)

Sets the strike-through attribute.

Parameters
on:boolean

true for strike-through typeface

Returns:StyleAttributeMap.Builder

this Builder instance

setTextAlignmentback to summary
public StyleAttributeMap.Builder setTextAlignment(TextAlignment a)

Sets the text alignment attribute to the specified color.

Parameters
a:TextAlignment

the alignment

Returns:StyleAttributeMap.Builder

this Builder instance

setTextColorback to summary
public StyleAttributeMap.Builder setTextColor(Color color)

Sets the text color attribute to the specified color.

Parameters
color:Color

the color

Returns:StyleAttributeMap.Builder

this Builder instance

setUnderlineback to summary
public StyleAttributeMap.Builder setUnderline(boolean on)

Sets the underline attribute.

Parameters
on:boolean

true for underline

Returns:StyleAttributeMap.Builder

this Builder instance

setUnguardedback to summary
private StyleAttributeMap.Builder setUnguarded(StyleAttribute<?> a, Object value)