Package com.iizix.prop.ui.chart.plot2d
Enum PlotRadialGradient
- java.lang.Object
- java.lang.Enum<PlotRadialGradient>
- com.iizix.prop.ui.chart.plot2d.PlotRadialGradient
- All Implemented Interfaces:
IPropCnrChoiceOption<IPlotChoiceOption>
,IPlotChoiceOption
,java.io.Serializable
,java.lang.Comparable<PlotRadialGradient>
public enum PlotRadialGradient extends java.lang.Enum<PlotRadialGradient> implements IPlotChoiceOption
The option for radial gradient in a pie: NATIVE, LINEAR or FAN.- Author:
- Christopher Mindus
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PlotRadialGradient[]
enumValues()
Gets all the choices possible, including default.PlotRadialGradient
getDefault()
Gets the default value.int
getInt()
Returns the choice as an integer value.java.lang.String
getPropName()
Gets the property name.static PlotRadialGradient
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PlotRadialGradient[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
NATIVE
public static final PlotRadialGradient NATIVE
Default is NATIVE, but really depends on the plot type in the end.
LINEAR
public static final PlotRadialGradient LINEAR
FAN
public static final PlotRadialGradient FAN
Method Detail
values
public static PlotRadialGradient[] 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 (PlotRadialGradient c : PlotRadialGradient.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static PlotRadialGradient valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
getDefault
public PlotRadialGradient getDefault()
Gets the default value. This value is used to initialize the property.- Specified by:
getDefault
in interfaceIPropCnrChoiceOption<IPlotChoiceOption>
- Returns:
NATIVE
, but really depends on the plot type in the end.
enumValues
public PlotRadialGradient[] enumValues()
Gets all the choices possible, including default.- Specified by:
enumValues
in interfaceIPropCnrChoiceOption<IPlotChoiceOption>
getInt
public int getInt()
Returns the choice as an integer value.- Specified by:
getInt
in interfaceIPropCnrChoiceOption<IPlotChoiceOption>
getPropName
public java.lang.String getPropName()
Gets the property name.- Specified by:
getPropName
in interfaceIPropCnrChoiceOption<IPlotChoiceOption>