Enum CalloutPosition
- java.lang.Object
-
- java.lang.Enum<CalloutPosition>
-
- org.pepstock.charba.client.annotation.enums.CalloutPosition
-
- All Implemented Interfaces:
Serializable
,Comparable<CalloutPosition>
,Key
public enum CalloutPosition extends Enum<CalloutPosition> implements Key
Property to set the position of aCallout
with respect to the label.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
This property allow to the plugin to calculate the best position of the callout.BOTTOM
This property sets the callout on bottom of the label.LEFT
This property sets the callout on left of the label.RIGHT
This property sets the callout on right of the label.TOP
This property sets the callout on top of the label.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic CalloutPosition
valueOf(String name)
Returns the enum constant of this type with the specified name.static CalloutPosition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final CalloutPosition AUTO
This property allow to the plugin to calculate the best position of the callout. Is default.
-
TOP
public static final CalloutPosition TOP
This property sets the callout on top of the label.
-
LEFT
public static final CalloutPosition LEFT
This property sets the callout on left of the label.
-
BOTTOM
public static final CalloutPosition BOTTOM
This property sets the callout on bottom of the label.
-
RIGHT
public static final CalloutPosition RIGHT
This property sets the callout on right of the label.
-
-
Method Detail
-
values
public static CalloutPosition[] 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 (CalloutPosition c : CalloutPosition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CalloutPosition 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
-
-