org.apache.batik.gvt.text
Class GVTAttributedCharacterIterator.TextAttribute

java.lang.Object
  |
  +--java.text.AttributedCharacterIterator.Attribute
        |
        +--org.apache.batik.gvt.text.GVTAttributedCharacterIterator.TextAttribute
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
GVTAttributedCharacterIterator

public static class GVTAttributedCharacterIterator.TextAttribute
extends java.text.AttributedCharacterIterator.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.

See Also:
Serialized Form

Field Summary
static java.lang.Integer ADJUST_ALL
          Value for LENGTH_ADJUST specifying overall scaling of layout outlines
static java.lang.Integer ADJUST_SPACING
          Value for LENGTH_ADJUST specifying adjustment to inter-glyph spacing
static GVTAttributedCharacterIterator.TextAttribute ALT_GLYPH_HANDLER
           
static GVTAttributedCharacterIterator.TextAttribute ANCHOR_TYPE
          Anchor type.
static GVTAttributedCharacterIterator.TextAttribute ARABIC_FORM
           
static java.lang.Integer ARABIC_INITIAL
           
static java.lang.Integer ARABIC_ISOLATED
           
static java.lang.Integer ARABIC_MEDIAL
           
static java.lang.Integer ARABIC_NONE
           
static java.lang.Integer ARABIC_TERMINAL
           
static GVTAttributedCharacterIterator.TextAttribute BASELINE_SHIFT
          Baseline adjustment to be applied to this character span.
static GVTAttributedCharacterIterator.TextAttribute BBOX_WIDTH
          Author-expected width for bounding box containing all text string glyphs.
static GVTAttributedCharacterIterator.TextAttribute BIDI_LEVEL
           
static GVTAttributedCharacterIterator.TextAttribute CHAR_INDEX
           
static GVTAttributedCharacterIterator.TextAttribute CUSTOM_SPACING
          Convenience flag indicating that non-default glyph spacing is needed.
static GVTAttributedCharacterIterator.TextAttribute DX
          User-space relative X coordinate for character.
static GVTAttributedCharacterIterator.TextAttribute DY
          User-space relative Y coordinate for character.
static GVTAttributedCharacterIterator.TextAttribute EXPLICIT_LAYOUT
          Marker attribute indicating explicit glyph layout.
static GVTAttributedCharacterIterator.TextAttribute FLOW_EMPTY_PARAGRAPH
           
static GVTAttributedCharacterIterator.TextAttribute FLOW_LINE_BREAK
           
static GVTAttributedCharacterIterator.TextAttribute FLOW_PARAGRAPH
           
static GVTAttributedCharacterIterator.TextAttribute FLOW_REGIONS
           
static GVTAttributedCharacterIterator.TextAttribute FONT_VARIANT
          Font variant to be used for this character span.
static GVTAttributedCharacterIterator.TextAttribute GVT_FONT
           
static GVTAttributedCharacterIterator.TextAttribute GVT_FONT_FAMILIES
           
static GVTAttributedCharacterIterator.TextAttribute KERNING
          User-specified inter-glyph kerning value.
static GVTAttributedCharacterIterator.TextAttribute LENGTH_ADJUST
          Method specified for adjusting text element layout size.
static GVTAttributedCharacterIterator.TextAttribute LETTER_SPACING
          User-specified inter-glyph spacing value.
static GVTAttributedCharacterIterator.TextAttribute OPACITY
          Overall opacity of rendered text.
static java.lang.Integer ORIENTATION_ANGLE
          Value for VERTICAL_ORIENTATION indicating an angle
static java.lang.Integer ORIENTATION_AUTO
          Value for VERTICAL_ORIENTATION indicating auto
static GVTAttributedCharacterIterator.TextAttribute OVERLINE
          Overline flag for character.
static java.lang.Boolean OVERLINE_ON
          Value for OVERLINE specifying overlining-on
static GVTAttributedCharacterIterator.TextAttribute OVERLINE_PAINT
          Paint used to fill character overline.
static GVTAttributedCharacterIterator.TextAttribute OVERLINE_STROKE
          Stroke used to paint character overline.
static GVTAttributedCharacterIterator.TextAttribute OVERLINE_STROKE_PAINT
          Paint used to stroke character outline for overline.
static GVTAttributedCharacterIterator.TextAttribute PREFORMATTED
           
static GVTAttributedCharacterIterator.TextAttribute ROTATION
          Rotation for character, in degrees.
static java.lang.Integer SMALL_CAPS
          Value for FONT_VARIANT specifying small caps
static GVTAttributedCharacterIterator.TextAttribute STRIKETHROUGH
          Flag indicating that chars are to be "struck through"
static java.lang.Boolean STRIKETHROUGH_ON
          Value for STRIKETHROUGH specifying strikethrough-on
static GVTAttributedCharacterIterator.TextAttribute STRIKETHROUGH_PAINT
          Paint used to fill character strikethrough.
static GVTAttributedCharacterIterator.TextAttribute STRIKETHROUGH_STROKE
          Stroke used to paint character strikethrough.
static GVTAttributedCharacterIterator.TextAttribute STRIKETHROUGH_STROKE_PAINT
          Paint used to stroke character outline for strikethrough.
static GVTAttributedCharacterIterator.TextAttribute STROKE
          Stroke used to paint character outline.
static GVTAttributedCharacterIterator.TextAttribute STROKE_PAINT
          Paint used to stroke character outline
static GVTAttributedCharacterIterator.TextAttribute TEXT_COMPOUND_DELIMITER
          Attribute span delimiter - new tspan, tref, or textelement.
static GVTAttributedCharacterIterator.TextAttribute TEXTPATH
          Path along which text is to be laid out
static GVTAttributedCharacterIterator.TextAttribute UNDERLINE
          Underline flag for character.
static java.lang.Integer UNDERLINE_ON
          Value for UNDERLINE specifying underlining-on
static GVTAttributedCharacterIterator.TextAttribute UNDERLINE_PAINT
          Paint used to fill character underline.
static GVTAttributedCharacterIterator.TextAttribute UNDERLINE_STROKE
          Stroke used to paint character underline.
static GVTAttributedCharacterIterator.TextAttribute UNDERLINE_STROKE_PAINT
          Paint used to stroke character outline for underline.
static GVTAttributedCharacterIterator.TextAttribute VERTICAL_ORIENTATION
           
static GVTAttributedCharacterIterator.TextAttribute VERTICAL_ORIENTATION_ANGLE
           
static GVTAttributedCharacterIterator.TextAttribute WORD_SPACING
          User-specified width for whitespace characters.
static GVTAttributedCharacterIterator.TextAttribute WRITING_MODE
          Directional writing mode applied to this character span.
static java.lang.Integer WRITING_MODE_LTR
          Value for WRITING_MODE indicating left-to-right
static java.lang.Integer WRITING_MODE_RTL
          Value for WRITING_MODE indicating right-to-left
static java.lang.Integer WRITING_MODE_TTB
          Value for WRITING_MODE indicating top-to-botton
static GVTAttributedCharacterIterator.TextAttribute X
          User-space X coordinate for character.
static GVTAttributedCharacterIterator.TextAttribute Y
          User-space Y coordinate for character.
 
Fields inherited from class java.text.AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING
 
Constructor Summary
GVTAttributedCharacterIterator.TextAttribute(java.lang.String s)
          Construct a TextAttribute key with name s
 
Methods inherited from class java.text.AttributedCharacterIterator.Attribute
equals, getName, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FLOW_PARAGRAPH

public static final GVTAttributedCharacterIterator.TextAttribute FLOW_PARAGRAPH

FLOW_EMPTY_PARAGRAPH

public static final GVTAttributedCharacterIterator.TextAttribute FLOW_EMPTY_PARAGRAPH

FLOW_LINE_BREAK

public static final GVTAttributedCharacterIterator.TextAttribute FLOW_LINE_BREAK

FLOW_REGIONS

public static final GVTAttributedCharacterIterator.TextAttribute FLOW_REGIONS

PREFORMATTED

public static final GVTAttributedCharacterIterator.TextAttribute PREFORMATTED

TEXT_COMPOUND_DELIMITER

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

ANCHOR_TYPE

public static final GVTAttributedCharacterIterator.TextAttribute ANCHOR_TYPE
Anchor type.

EXPLICIT_LAYOUT

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

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.

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.

ROTATION

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

OPACITY

public static final GVTAttributedCharacterIterator.TextAttribute OPACITY
Overall opacity of rendered text.

STROKE

public static final GVTAttributedCharacterIterator.TextAttribute STROKE
Stroke used to paint character outline.

STROKE_PAINT

public static final GVTAttributedCharacterIterator.TextAttribute STROKE_PAINT
Paint used to stroke character outline

UNDERLINE

public static final GVTAttributedCharacterIterator.TextAttribute UNDERLINE
Underline flag for character.

UNDERLINE_STROKE

public static final GVTAttributedCharacterIterator.TextAttribute UNDERLINE_STROKE
Stroke used to paint character underline.

UNDERLINE_PAINT

public static final GVTAttributedCharacterIterator.TextAttribute UNDERLINE_PAINT
Paint used to fill character underline.

UNDERLINE_STROKE_PAINT

public static final GVTAttributedCharacterIterator.TextAttribute UNDERLINE_STROKE_PAINT
Paint used to stroke character outline for underline.

OVERLINE

public static final GVTAttributedCharacterIterator.TextAttribute OVERLINE
Overline flag for character.

OVERLINE_STROKE

public static final GVTAttributedCharacterIterator.TextAttribute OVERLINE_STROKE
Stroke used to paint character overline.

OVERLINE_PAINT

public static final GVTAttributedCharacterIterator.TextAttribute OVERLINE_PAINT
Paint used to fill character overline.

OVERLINE_STROKE_PAINT

public static final GVTAttributedCharacterIterator.TextAttribute OVERLINE_STROKE_PAINT
Paint used to stroke character outline for overline.

STRIKETHROUGH

public static final GVTAttributedCharacterIterator.TextAttribute STRIKETHROUGH
Flag indicating that chars are to be "struck through"

STRIKETHROUGH_STROKE

public static final GVTAttributedCharacterIterator.TextAttribute STRIKETHROUGH_STROKE
Stroke used to paint character strikethrough.

STRIKETHROUGH_PAINT

public static final GVTAttributedCharacterIterator.TextAttribute STRIKETHROUGH_PAINT
Paint used to fill character strikethrough.

STRIKETHROUGH_STROKE_PAINT

public static final GVTAttributedCharacterIterator.TextAttribute STRIKETHROUGH_STROKE_PAINT
Paint used to stroke character outline for strikethrough.

BBOX_WIDTH

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

LENGTH_ADJUST

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

CUSTOM_SPACING

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

KERNING

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

LETTER_SPACING

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

WORD_SPACING

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

TEXTPATH

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

FONT_VARIANT

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

BASELINE_SHIFT

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

WRITING_MODE

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

VERTICAL_ORIENTATION

public static final GVTAttributedCharacterIterator.TextAttribute VERTICAL_ORIENTATION

VERTICAL_ORIENTATION_ANGLE

public static final GVTAttributedCharacterIterator.TextAttribute VERTICAL_ORIENTATION_ANGLE

GVT_FONT_FAMILIES

public static final GVTAttributedCharacterIterator.TextAttribute GVT_FONT_FAMILIES

GVT_FONT

public static final GVTAttributedCharacterIterator.TextAttribute GVT_FONT

ALT_GLYPH_HANDLER

public static final GVTAttributedCharacterIterator.TextAttribute ALT_GLYPH_HANDLER

BIDI_LEVEL

public static final GVTAttributedCharacterIterator.TextAttribute BIDI_LEVEL

CHAR_INDEX

public static final GVTAttributedCharacterIterator.TextAttribute CHAR_INDEX

ARABIC_FORM

public static final GVTAttributedCharacterIterator.TextAttribute ARABIC_FORM

WRITING_MODE_LTR

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

WRITING_MODE_RTL

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

WRITING_MODE_TTB

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

ORIENTATION_ANGLE

public static final java.lang.Integer ORIENTATION_ANGLE
Value for VERTICAL_ORIENTATION indicating an angle

ORIENTATION_AUTO

public static final java.lang.Integer ORIENTATION_AUTO
Value for VERTICAL_ORIENTATION indicating auto

SMALL_CAPS

public static final java.lang.Integer SMALL_CAPS
Value for FONT_VARIANT specifying small caps

UNDERLINE_ON

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

OVERLINE_ON

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

STRIKETHROUGH_ON

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

ADJUST_SPACING

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

ADJUST_ALL

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

ARABIC_NONE

public static final java.lang.Integer ARABIC_NONE

ARABIC_ISOLATED

public static final java.lang.Integer ARABIC_ISOLATED

ARABIC_TERMINAL

public static final java.lang.Integer ARABIC_TERMINAL

ARABIC_INITIAL

public static final java.lang.Integer ARABIC_INITIAL

ARABIC_MEDIAL

public static final java.lang.Integer ARABIC_MEDIAL
Constructor Detail

GVTAttributedCharacterIterator.TextAttribute

public GVTAttributedCharacterIterator.TextAttribute(java.lang.String s)
Construct a TextAttribute key with name s


Copyright © 2002 Apache Software Foundation. All Rights Reserved.