Package org.apache.batik.bridge
Class TextNode.Anchor
java.lang.Object
org.apache.batik.bridge.TextNode.Anchor
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TextNode
Defines where the text of a
TextNode
can be anchored
relative to its location.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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.private int
The anchor type. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ANCHOR_START
public static final int ANCHOR_STARTThe type of the START anchor.- See Also:
-
ANCHOR_MIDDLE
public static final int ANCHOR_MIDDLEThe type of the MIDDLE anchor.- See Also:
-
ANCHOR_END
public static final int ANCHOR_ENDThe type of the END anchor.- See Also:
-
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
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
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 typeThe anchor type.
-
-
Constructor Details
-
Anchor
private Anchor(int type) No instance of this class.
-
-
Method Details
-
getType
public int getType()Returns the type of this anchor. -
readResolve
This 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:
ObjectStreamException
-