Package org.apache.batik.bridge
Class TextNode.Anchor
- java.lang.Object
-
- org.apache.batik.bridge.TextNode.Anchor
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- TextNode
public static final class TextNode.Anchor extends java.lang.Object implements java.io.SerializableDefines where the text of aTextNodecan be anchored relative to its location.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intANCHOR_ENDThe type of the END anchor.static intANCHOR_MIDDLEThe type of the MIDDLE anchor.static intANCHOR_STARTThe type of the START anchor.static TextNode.AnchorENDThe 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 TextNode.AnchorMIDDLEThe 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 TextNode.AnchorSTARTThe anchor which enables the rendered characters to be aligned such that the start of the text string is at the initial current text location.private inttypeThe anchor type.
-
Constructor Summary
Constructors Modifier Constructor Description privateAnchor(int type)No instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetType()Returns the type of this anchor.private java.lang.ObjectreadResolve()This is called by the serialization code before it returns an unserialized object.
-
-
-
Field Detail
-
ANCHOR_START
public static final int ANCHOR_START
The type of the START anchor.- See Also:
- Constant Field Values
-
ANCHOR_MIDDLE
public static final int ANCHOR_MIDDLE
The type of the MIDDLE anchor.- See Also:
- Constant Field Values
-
ANCHOR_END
public static final int ANCHOR_END
The type of the END anchor.- See Also:
- Constant Field Values
-
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.
-
type
private int type
The anchor type.
-
-
Method Detail
-
getType
public int getType()
Returns the type of this anchor.
-
readResolve
private java.lang.Object readResolve() throws java.io.ObjectStreamExceptionThis is called by the serialization code before it returns an unserialized object. To provide for unicity of instances, the instance that was read is replaced by its static equivalent. See the serialiazation specification for further details on this method's logic.- Throws:
java.io.ObjectStreamException
-
-