Package cnuphys.splot.fit
Enum Class FitType
- All Implemented Interfaces:
Serializable
,Comparable<FitType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumComboBox
getComboBox
(FitType defaultChoice) Obtain a combo box of choices.static String
getFitString
(Fit curveFit) Get an html string the describes the fitgetName()
Get the nice name of the enum.static FitType
Returns the enum value from the name.static FitType
Returns the enum constant of this class with the specified name.static FitType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOLINE
-
CONNECT
-
STAIRS
-
LINE
-
POLYNOMIAL
-
GAUSSIANS
-
POLYPLUSGAUSS
-
ERF
-
ERFC
-
ALTPOLYNOMIAL
-
CUBICSPLINE
-
-
Field Details
-
names
A map for the names of the fit types
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Get the nice name of the enum.- Returns:
- the nice name, for combo boxes, menus, etc.
-
getValue
Returns the enum value from the name.- Parameters:
name
- the name to match.- Returns:
- the
FitType
that corresponds to the name. Returnsnull
if no match is found.
-
getFitString
Get an html string the describes the fit- Parameters:
object
- the fit object that will have to be cast appropriately- Returns:
- an html string the describes the fit
-
getComboBox
Obtain a combo box of choices.- Parameters:
defaultChoice
-- Returns:
- the combo box of fit types
-