Package org.pepstock.charba.client.enums
Enum ElementAlign
- java.lang.Object
-
- java.lang.Enum<ElementAlign>
-
- org.pepstock.charba.client.enums.ElementAlign
-
- All Implemented Interfaces:
Serializable
,Comparable<ElementAlign>
,Key
public enum ElementAlign extends Enum<ElementAlign> implements Key
Property to set alignment of the legend and the title.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHorizontalAlignmentValue()
Returns the CSS value for horizontal alignment in the HTML element style.String
value()
Returns the name value of propertystatic ElementAlign
valueOf(String name)
Returns the enum constant of this type with the specified name.static ElementAlign[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START
public static final ElementAlign START
the property sets the start alignment.
-
CENTER
public static final ElementAlign CENTER
the property sets the center alignment.
-
END
public static final ElementAlign END
the property sets the end alignment.
-
-
Method Detail
-
values
public static ElementAlign[] 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 (ElementAlign c : ElementAlign.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElementAlign 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
-
value
public String value()
Description copied from interface:Key
Returns the name value of property
-
getHorizontalAlignmentValue
public String getHorizontalAlignmentValue()
Returns the CSS value for horizontal alignment in the HTML element style.- Returns:
- the CSS value for horizontal alignment in the HTML element style
-
-