public static final class TextNode.Anchor
extends java.lang.Object
implements java.io.Serializable
TextNode
can be anchored
relative to its location.Modifier and Type | Field and Description |
---|---|
static int |
ANCHOR_END
The type of the END anchor.
|
static int |
ANCHOR_MIDDLE
The type of the MIDDLE anchor.
|
static int |
ANCHOR_START
The type of the START anchor.
|
static 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.
|
static 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.
|
static 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.
|
private int |
type
The anchor type.
|
Modifier | Constructor and Description |
---|---|
private |
Anchor(int type)
No instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Returns the type of this anchor.
|
private java.lang.Object |
readResolve()
This is called by the serialization code before it returns
an unserialized object.
|
public static final int ANCHOR_START
public static final int ANCHOR_MIDDLE
public static final int ANCHOR_END
public static final TextNode.Anchor START
public static final TextNode.Anchor MIDDLE
public static final TextNode.Anchor END
private int type
public int getType()
private java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException