Class TextAlignment
- java.lang.Object
-
- com.supermap.data.Enum
-
- com.supermap.data.TextAlignment
-
public final class TextAlignment extends Enum
This class defines the text alignment type constants.Specifies the text alignment of child objects in the text. The position of each child object is determined by the text anchor and the text alignment. When the anchor of the child object is fixed, the text alignment determines the relative position of the child object and the anchor, and then determines the position of the child object.
-
-
Field Summary
Fields Modifier and Type Field and Description static TextAlignmentBASELINECENTERBase line center.static TextAlignmentBASELINELEFTBase line left.static TextAlignmentBASELINERIGHTBase line right.static TextAlignmentBOTTOMCENTERBottom center.static TextAlignmentBOTTOMLEFTBottom left.static TextAlignmentBOTTOMRIGHTBottom right.static TextAlignmentMIDDLECENTERMiddle center.static TextAlignmentMIDDLELEFTMiddle left.static TextAlignmentMIDDLERIGHTMiddle center.static TextAlignmentTOPCENTERTop center.static TextAlignmentTOPLEFTTop left.static TextAlignmentTOPRIGHTTop right.
-
-
-
Field Detail
-
TOPLEFT
public static final TextAlignment TOPLEFT
Top left. In this alignment, the upper left point of the boundary rectangle of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
TOPCENTER
public static final TextAlignment TOPCENTER
Top center. In this alignment, the middle point of the top edge of the boundary rectangle of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
TOPRIGHT
public static final TextAlignment TOPRIGHT
Top right. In this alignment, the lower left point of the boundary rectangle of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
BASELINELEFT
public static final TextAlignment BASELINELEFT
Base line left. In this alignment, the left endpoint of the baseline of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
BASELINECENTER
public static final TextAlignment BASELINECENTER
Base line center. In this alignment, the middle point of the baseline of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
BASELINERIGHT
public static final TextAlignment BASELINERIGHT
Base line right. In this alignment, the right endpoint of the baseline of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
BOTTOMLEFT
public static final TextAlignment BOTTOMLEFT
Bottom left. In this alignment, the lower left point of the boundary rectangle of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
BOTTOMCENTER
public static final TextAlignment BOTTOMCENTER
Bottom center. In this alignment, the middle point of the bottom edge of boundary rectangle of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
BOTTOMRIGHT
public static final TextAlignment BOTTOMRIGHT
Bottom right. In this alignment, the lower left point of the boundary rectangle of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
MIDDLELEFT
public static final TextAlignment MIDDLELEFT
Middle left. In this alignment, the middle point of the left edge of the boundary rectangle of the text part lies in the position of the anchor point. The following is an example of this alignment.

-
MIDDLECENTER
public static final TextAlignment MIDDLECENTER
Middle center. In this alignment, the center point of the boundary rectangle of the text part lies in the position of the anchor point.The following is an example of this alignment.

-
MIDDLERIGHT
public static final TextAlignment MIDDLERIGHT
Middle center. In this alignment, the middle point of the right edge of the boundary rectangle of the text part lies in the position of the anchor point. The following is an example of this alignment.

-
-