org.apache.batik.gvt.text

Class GVTAttributedCharacterIterator.TextAttribute

public static class GVTAttributedCharacterIterator.TextAttribute extends Attribute

Attribute keys that identify SVG text attributes. Anchor point for attribute values of X, Y, and ROTATION is determined by the character's font and other attributes. We duplicate the features of java.awt.font.TextAttribute rather than subclassing because java.awt.font.TextAttribute is final.
Field Summary
static IntegerADJUST_ALL
Value for LENGTH_ADJUST specifying overall scaling of layout outlines
static IntegerADJUST_SPACING
Value for LENGTH_ADJUST specifying adjustment to inter-glyph spacing
static GVTAttributedCharacterIterator.TextAttributeALT_GLYPH_HANDLER
static GVTAttributedCharacterIterator.TextAttributeANCHOR_TYPE
Anchor type.
static GVTAttributedCharacterIterator.TextAttributeARABIC_FORM
static IntegerARABIC_INITIAL
static IntegerARABIC_ISOLATED
static IntegerARABIC_MEDIAL
static IntegerARABIC_NONE
static IntegerARABIC_TERMINAL
static GVTAttributedCharacterIterator.TextAttributeBASELINE_SHIFT
Baseline adjustment to be applied to this character span.
static GVTAttributedCharacterIterator.TextAttributeBBOX_WIDTH
Author-expected width for bounding box containing all text string glyphs.
static GVTAttributedCharacterIterator.TextAttributeBIDI_LEVEL
static GVTAttributedCharacterIterator.TextAttributeCHAR_INDEX
static GVTAttributedCharacterIterator.TextAttributeCUSTOM_SPACING
Convenience flag indicating that non-default glyph spacing is needed.
static GVTAttributedCharacterIterator.TextAttributeDX
User-space relative X coordinate for character.
static GVTAttributedCharacterIterator.TextAttributeDY
User-space relative Y coordinate for character.
static GVTAttributedCharacterIterator.TextAttributeEXPLICIT_LAYOUT
Marker attribute indicating explicit glyph layout.
static GVTAttributedCharacterIterator.TextAttributeFLOW_EMPTY_PARAGRAPH
static GVTAttributedCharacterIterator.TextAttributeFLOW_LINE_BREAK
static GVTAttributedCharacterIterator.TextAttributeFLOW_PARAGRAPH
static GVTAttributedCharacterIterator.TextAttributeFLOW_REGIONS
static GVTAttributedCharacterIterator.TextAttributeFONT_VARIANT
Font variant to be used for this character span.
static GVTAttributedCharacterIterator.TextAttributeGVT_FONT
static GVTAttributedCharacterIterator.TextAttributeGVT_FONTS
static GVTAttributedCharacterIterator.TextAttributeGVT_FONT_FAMILIES
static GVTAttributedCharacterIterator.TextAttributeHORIZONTAL_ORIENTATION_ANGLE
static GVTAttributedCharacterIterator.TextAttributeKERNING
User-specified inter-glyph kerning value.
static GVTAttributedCharacterIterator.TextAttributeLENGTH_ADJUST
Method specified for adjusting text element layout size.
static GVTAttributedCharacterIterator.TextAttributeLETTER_SPACING
User-specified inter-glyph spacing value.
static GVTAttributedCharacterIterator.TextAttributeLINE_HEIGHT
static IntegerORIENTATION_ANGLE
Value for VERTICAL_ORIENTATION indicating an angle
static IntegerORIENTATION_AUTO
Value for VERTICAL_ORIENTATION indicating auto
static BooleanOVERLINE_ON
Value for OVERLINE specifying overlining-on
static GVTAttributedCharacterIterator.TextAttributePAINT_INFO
All the paint attributes for the text.
static GVTAttributedCharacterIterator.TextAttributePREFORMATTED
static GVTAttributedCharacterIterator.TextAttributeROTATION
Rotation for character, in degrees.
static IntegerSMALL_CAPS
Value for FONT_VARIANT specifying small caps
static BooleanSTRIKETHROUGH_ON
Value for STRIKETHROUGH specifying strikethrough-on
static GVTAttributedCharacterIterator.TextAttributeTEXTPATH
Path along which text is to be laid out
static GVTAttributedCharacterIterator.TextAttributeTEXT_COMPOUND_DELIMITER
Attribute span delimiter - new tspan, tref, or textelement.
static GVTAttributedCharacterIterator.TextAttributeTEXT_COMPOUND_ID
Element identifier all chars from same element will share an ID.
static IntegerUNDERLINE_ON
Value for UNDERLINE specifying underlining-on
static GVTAttributedCharacterIterator.TextAttributeVERTICAL_ORIENTATION
static GVTAttributedCharacterIterator.TextAttributeVERTICAL_ORIENTATION_ANGLE
static GVTAttributedCharacterIterator.TextAttributeWORD_SPACING
User-specified width for whitespace characters.
static GVTAttributedCharacterIterator.TextAttributeWRITING_MODE
Directional writing mode applied to this character span.
static IntegerWRITING_MODE_LTR
Value for WRITING_MODE indicating left-to-right
static IntegerWRITING_MODE_RTL
Value for WRITING_MODE indicating right-to-left
static IntegerWRITING_MODE_TTB
Value for WRITING_MODE indicating top-to-botton
static GVTAttributedCharacterIterator.TextAttributeX
User-space X coordinate for character.
static GVTAttributedCharacterIterator.TextAttributeY
User-space Y coordinate for character.
Constructor Summary
TextAttribute(String s)
Construct a TextAttribute key with name s

Field Detail

ADJUST_ALL

public static final Integer ADJUST_ALL
Value for LENGTH_ADJUST specifying overall scaling of layout outlines

ADJUST_SPACING

public static final Integer ADJUST_SPACING
Value for LENGTH_ADJUST specifying adjustment to inter-glyph spacing

ALT_GLYPH_HANDLER

public static final GVTAttributedCharacterIterator.TextAttribute ALT_GLYPH_HANDLER

ANCHOR_TYPE

public static final GVTAttributedCharacterIterator.TextAttribute ANCHOR_TYPE
Anchor type.

ARABIC_FORM

public static final GVTAttributedCharacterIterator.TextAttribute ARABIC_FORM

ARABIC_INITIAL

public static final Integer ARABIC_INITIAL

ARABIC_ISOLATED

public static final Integer ARABIC_ISOLATED

ARABIC_MEDIAL

public static final Integer ARABIC_MEDIAL

ARABIC_NONE

public static final Integer ARABIC_NONE

ARABIC_TERMINAL

public static final Integer ARABIC_TERMINAL

BASELINE_SHIFT

public static final GVTAttributedCharacterIterator.TextAttribute BASELINE_SHIFT
Baseline adjustment to be applied to this character span.

BBOX_WIDTH

public static final GVTAttributedCharacterIterator.TextAttribute BBOX_WIDTH
Author-expected width for bounding box containing all text string glyphs.

BIDI_LEVEL

public static final GVTAttributedCharacterIterator.TextAttribute BIDI_LEVEL

CHAR_INDEX

public static final GVTAttributedCharacterIterator.TextAttribute CHAR_INDEX

CUSTOM_SPACING

public static final GVTAttributedCharacterIterator.TextAttribute CUSTOM_SPACING
Convenience flag indicating that non-default glyph spacing is needed.

DX

public static final GVTAttributedCharacterIterator.TextAttribute DX
User-space relative X coordinate for character.

DY

public static final GVTAttributedCharacterIterator.TextAttribute DY
User-space relative Y coordinate for character.

EXPLICIT_LAYOUT

public static final GVTAttributedCharacterIterator.TextAttribute EXPLICIT_LAYOUT
Marker attribute indicating explicit glyph layout.

FLOW_EMPTY_PARAGRAPH

public static final GVTAttributedCharacterIterator.TextAttribute FLOW_EMPTY_PARAGRAPH

FLOW_LINE_BREAK

public static final GVTAttributedCharacterIterator.TextAttribute FLOW_LINE_BREAK

FLOW_PARAGRAPH

public static final GVTAttributedCharacterIterator.TextAttribute FLOW_PARAGRAPH

FLOW_REGIONS

public static final GVTAttributedCharacterIterator.TextAttribute FLOW_REGIONS

FONT_VARIANT

public static final GVTAttributedCharacterIterator.TextAttribute FONT_VARIANT
Font variant to be used for this character span.

See Also: SMALL_CAPS

GVT_FONT

public static final GVTAttributedCharacterIterator.TextAttribute GVT_FONT

GVT_FONTS

public static final GVTAttributedCharacterIterator.TextAttribute GVT_FONTS

GVT_FONT_FAMILIES

public static final GVTAttributedCharacterIterator.TextAttribute GVT_FONT_FAMILIES

HORIZONTAL_ORIENTATION_ANGLE

public static final GVTAttributedCharacterIterator.TextAttribute HORIZONTAL_ORIENTATION_ANGLE

KERNING

public static final GVTAttributedCharacterIterator.TextAttribute KERNING
User-specified inter-glyph kerning value.

LENGTH_ADJUST

public static final GVTAttributedCharacterIterator.TextAttribute LENGTH_ADJUST
Method specified for adjusting text element layout size.

LETTER_SPACING

public static final GVTAttributedCharacterIterator.TextAttribute LETTER_SPACING
User-specified inter-glyph spacing value.

LINE_HEIGHT

public static final GVTAttributedCharacterIterator.TextAttribute LINE_HEIGHT

ORIENTATION_ANGLE

public static final Integer ORIENTATION_ANGLE
Value for VERTICAL_ORIENTATION indicating an angle

ORIENTATION_AUTO

public static final Integer ORIENTATION_AUTO
Value for VERTICAL_ORIENTATION indicating auto

OVERLINE_ON

public static final Boolean OVERLINE_ON
Value for OVERLINE specifying overlining-on

PAINT_INFO

public static final GVTAttributedCharacterIterator.TextAttribute PAINT_INFO
All the paint attributes for the text.

PREFORMATTED

public static final GVTAttributedCharacterIterator.TextAttribute PREFORMATTED

ROTATION

public static final GVTAttributedCharacterIterator.TextAttribute ROTATION
Rotation for character, in degrees.

SMALL_CAPS

public static final Integer SMALL_CAPS
Value for FONT_VARIANT specifying small caps

STRIKETHROUGH_ON

public static final Boolean STRIKETHROUGH_ON
Value for STRIKETHROUGH specifying strikethrough-on

TEXTPATH

public static final GVTAttributedCharacterIterator.TextAttribute TEXTPATH
Path along which text is to be laid out

TEXT_COMPOUND_DELIMITER

public static final GVTAttributedCharacterIterator.TextAttribute TEXT_COMPOUND_DELIMITER
Attribute span delimiter - new tspan, tref, or textelement.

TEXT_COMPOUND_ID

public static final GVTAttributedCharacterIterator.TextAttribute TEXT_COMPOUND_ID
Element identifier all chars from same element will share an ID.

UNDERLINE_ON

public static final Integer UNDERLINE_ON
Value for UNDERLINE specifying underlining-on

VERTICAL_ORIENTATION

public static final GVTAttributedCharacterIterator.TextAttribute VERTICAL_ORIENTATION

VERTICAL_ORIENTATION_ANGLE

public static final GVTAttributedCharacterIterator.TextAttribute VERTICAL_ORIENTATION_ANGLE

WORD_SPACING

public static final GVTAttributedCharacterIterator.TextAttribute WORD_SPACING
User-specified width for whitespace characters.

WRITING_MODE

public static final GVTAttributedCharacterIterator.TextAttribute WRITING_MODE
Directional writing mode applied to this character span.

WRITING_MODE_LTR

public static final Integer WRITING_MODE_LTR
Value for WRITING_MODE indicating left-to-right

WRITING_MODE_RTL

public static final Integer WRITING_MODE_RTL
Value for WRITING_MODE indicating right-to-left

WRITING_MODE_TTB

public static final Integer WRITING_MODE_TTB
Value for WRITING_MODE indicating top-to-botton

X

public static final GVTAttributedCharacterIterator.TextAttribute X
User-space X coordinate for character.

Y

public static final GVTAttributedCharacterIterator.TextAttribute Y
User-space Y coordinate for character.

Constructor Detail

TextAttribute

public TextAttribute(String s)
Construct a TextAttribute key with name s
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.