Package edu.cnu.mdi.splot.plot
Enum Class LimitsMethod
- All Implemented Interfaces:
Serializable,Comparable<LimitsMethod>,Constable
How
PlotCanvas determines an axis's displayed [min, max]
range. Set independently per axis via PlotParameters.
MANUALLIMITS— use the explicit bounds set viaPlotParameters.setXRange(double, double)/PlotParameters.setYRange(double, double).ALGORITHMICLIMITS(the default) — for a linear axis, round the data bounds out to "nice" tick-aligned values viaNiceScale; for a log axis, use the positive data's exact min/max instead (a "nice" rounding doesn't apply the same way on a log scale).USEDATALIMITS— use the data's exact bounds unrounded, on a linear axis; on a log axis this behaves the same asALGORITHMICLIMITS(both use the positive data's exact min/max).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumComboBox<LimitsMethod> getComboBox(LimitsMethod defaultChoice) Obtain a combo box of choices.getName()Nice label for UI (combo boxes, menus, etc.).static LimitsMethodReturns the enum value from a string.toString()static LimitsMethodReturns the enum constant of this class with the specified name.static LimitsMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANUALLIMITS
-
ALGORITHMICLIMITS
-
USEDATALIMITS
-
-
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
Nice label for UI (combo boxes, menus, etc.). -
toString
- Overrides:
toStringin classEnum<LimitsMethod>
-
getValue
Returns the enum value from a string. Matches either the nice label (getName) or the enum constant name() (case-insensitive). -
getComboBox
Obtain a combo box of choices.- Parameters:
defaultChoice- which enum should be initially selected (nullable)- Returns:
- the combo box
-