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 GVTAttributedCharacterIterator.TextAttribute BBOX_WIDTH
          Author-expected width for bounding box containing all text string glyphs.
static GVTAttributedCharacterIterator.TextAttribute FONT_VARIANT
          Font variant to be used for this character span.
static GVTAttributedCharacterIterator.TextAttribute OPACITY
          Overall opacity of rendered text.
static GVTAttributedCharacterIterator.TextAttribute OVERLINE
          Overline flag for character.
static java.lang.Boolean OVERLINE_ON
          Value for OVERLINE specifying overlining-on
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 STROKE
          Stroke used to paint character outline.
static GVTAttributedCharacterIterator.TextAttribute STROKE_PAINT
          Paint used to stroke character outline
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 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

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.

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.

OVERLINE

public static final GVTAttributedCharacterIterator.TextAttribute OVERLINE
Overline 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.

STRIKETHROUGH

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

BBOX_WIDTH

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

FONT_VARIANT

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

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
Constructor Detail

GVTAttributedCharacterIterator.TextAttribute

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


Copyright © 2000 Apache Software Foundation. All Rights Reserved.