Enum TextBaseline
- java.lang.Object
-
- java.lang.Enum<TextBaseline>
-
- org.pepstock.charba.client.dom.enums.TextBaseline
-
- All Implemented Interfaces:
Serializable
,Comparable<TextBaseline>
,Key
public enum TextBaseline extends Enum<TextBaseline> implements Key
Enumerates the set of values to specify the current text baseline used when drawing text.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALPHABETIC
The text baseline is the normal alphabetic baseline.BOTTOM
The text baseline is the bottom of the bounding box.HANGING
The text baseline is the hanging baseline.IDEOGRAPHIC
The text baseline is the ideographic baseline; this is the bottom of the body of the characters, if the main body of characters protrudes beneath the alphabetic baseline.MIDDLE
The text baseline is the middle of the em square.TOP
The text baseline is the top of the em square.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic TextBaseline
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextBaseline[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALPHABETIC
public static final TextBaseline ALPHABETIC
The text baseline is the normal alphabetic baseline. Default value.
-
BOTTOM
public static final TextBaseline BOTTOM
The text baseline is the bottom of the bounding box. This differs from the ideographic baseline in that the ideographic baseline doesn't consider descenders.
-
HANGING
public static final TextBaseline HANGING
The text baseline is the hanging baseline.
-
IDEOGRAPHIC
public static final TextBaseline IDEOGRAPHIC
The text baseline is the ideographic baseline; this is the bottom of the body of the characters, if the main body of characters protrudes beneath the alphabetic baseline.
-
MIDDLE
public static final TextBaseline MIDDLE
The text baseline is the middle of the em square.
-
TOP
public static final TextBaseline TOP
The text baseline is the top of the em square.
-
-
Method Detail
-
values
public static TextBaseline[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextBaseline c : TextBaseline.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextBaseline valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-