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 SummaryEnum Constants Enum Constant Description ALPHABETICThe text baseline is the normal alphabetic baseline.BOTTOMThe text baseline is the bottom of the bounding box.HANGINGThe text baseline is the hanging baseline.IDEOGRAPHICThe 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.MIDDLEThe text baseline is the middle of the em square.TOPThe text baseline is the top of the em square.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringvalue()Returns the name value of propertystatic TextBaselinevalueOf(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- 
ALPHABETICpublic static final TextBaseline ALPHABETIC The text baseline is the normal alphabetic baseline. Default value.
 - 
BOTTOMpublic 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.
 - 
HANGINGpublic static final TextBaseline HANGING The text baseline is the hanging baseline.
 - 
IDEOGRAPHICpublic 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.
 - 
MIDDLEpublic static final TextBaseline MIDDLE The text baseline is the middle of the em square.
 - 
TOPpublic static final TextBaseline TOP The text baseline is the top of the em square.
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- NullPointerException- if the argument is null
 
 
- 
 
-