Class TextNode.Anchor

java.lang.Object
org.apache.batik.bridge.TextNode.Anchor
All Implemented Interfaces:
Serializable
Enclosing class:
TextNode

public static final class TextNode.Anchor extends Object implements Serializable
Defines where the text of a TextNode can be anchored relative to its location.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The type of the END anchor.
    static final int
    The type of the MIDDLE anchor.
    static final int
    The type of the START anchor.
    static final TextNode.Anchor
    The anchor which enables the rendered characters to be aligned such that the end of the text string is at the initial current text location.
    static final TextNode.Anchor
    The anchor which enables the rendered characters to be aligned such that the middle of the text string is at the initial current text location.
    static final TextNode.Anchor
    The anchor which enables the rendered characters to be aligned such that the start of the text string is at the initial current text location.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the type of this anchor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ANCHOR_START

      public static final int ANCHOR_START
      The type of the START anchor.
      See Also:
    • ANCHOR_MIDDLE

      public static final int ANCHOR_MIDDLE
      The type of the MIDDLE anchor.
      See Also:
    • ANCHOR_END

      public static final int ANCHOR_END
      The type of the END anchor.
      See Also:
    • START

      public static final TextNode.Anchor START
      The anchor which enables the rendered characters to be aligned such that the start of the text string is at the initial current text location.
    • MIDDLE

      public static final TextNode.Anchor MIDDLE
      The anchor which enables the rendered characters to be aligned such that the middle of the text string is at the initial current text location.
    • END

      public static final TextNode.Anchor END
      The anchor which enables the rendered characters to be aligned such that the end of the text string is at the initial current text location.
  • Method Details

    • getType

      public int getType()
      Returns the type of this anchor.