Class ElementAttribute
java.lang.Object
com.adobe.fontengine.inlineformatting.ElementAttribute
- All Implemented Interfaces:
Attribute
This class defines attributes which can be placed on elements
on
AttributedRuns
.
In addition to defining the type for element attribute keys, this class defines a number of well-known element attributes, and in particular all the attributes which are exchanged between an inline formatter and its clients. For each such attribute, we define the possible values.
Other ElementAttribute
objects can be created and used by the client
of an inline formatter. However, these keys will be ignored by the
inline formatters of this package.
Concurrency
Instances of this class are immutable after construction and contain no mutable static data. Therefore, they are threadsafe.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ElementAttribute
The alternate to use for this glyph.static final ElementAttribute
The Unicode bidi level of this element.static final ElementAttribute
The CSS attributes to use for font selection.static final ElementAttribute
Digit case.static final ElementAttribute
Digit width.static final ElementAttribute
The font used to render an element.static final ElementAttribute
The font style used to render an element.static final ElementAttribute
Whether the element is a glyph or a character.static final ElementAttribute
The joining type for this element.static final ElementAttribute
The locale for which to format.static final ElementAttribute
The point size of an element.static final ElementAttribute
The casing of the text. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CSS20Attribute
The CSS attributes to use for font selection. The value is aCSS20Attribute
. -
locale
The locale for which to format. The value is a com.adobe.agl.util.ULocale. -
font
The font used to render an element. The value is a non-nullcom.adobe.fontengine.font.Font
object. -
fontStyle
The font style used to render an element. The value must be aFontStyle
-
typographicCase
The casing of the text. The value must be aTypographicCase
. -
digitCase
-
digitWidth
Digit width. The value must be aDigitWidth
. -
alternate
The alternate to use for this glyph. The value must be an Integer. -
isGlyph
Whether the element is a glyph or a character. The value must be java.lang.Boolean.TRUE or java.lang.Boolean.FALSE. If the value is TRUE, then the font attribute must be set. -
pointSize
The point size of an element. The value must be aDouble
. -
bidiLevel
The Unicode bidi level of this element. The value must be anInteger
in the range 0..63. -
joiningType
The joining type for this element. This attribute can be set by the inline formatter client on glyph elements, to indicate how they participate in Arabic joining. The value must be an Integer, the value of which is one of com.adobe.agl.lang.Ucharacter.JoiningType.*. If this attribute is absent on a glyph element, then it is assumed to have the value UCharacter.JoiningType.NON_JOINING. Inline formatters compute the joining type of character elements.
-
-
Constructor Details
-
ElementAttribute
Create a new ElementAttribute.- Parameters:
name
- for debugging purposes
-
-
Method Details