- java.lang.Object
-
- java.lang.Enum<HistogramType>
-
- org.jfree.data.statistics.HistogramType
-
- All Implemented Interfaces:
Serializable,Comparable<HistogramType>
public enum HistogramType extends Enum<HistogramType>
Enum to represent the histogram type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FREQUENCYFrequency histogram.RELATIVE_FREQUENCYRelative frequency.SCALE_AREA_TO_1Scale area to one.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HistogramTypevalueOf(String name)Returns the enum constant of this type with the specified name.static HistogramType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FREQUENCY
public static final HistogramType FREQUENCY
Frequency histogram.
-
RELATIVE_FREQUENCY
public static final HistogramType RELATIVE_FREQUENCY
Relative frequency.
-
SCALE_AREA_TO_1
public static final HistogramType SCALE_AREA_TO_1
Scale area to one.
-
-
Method Detail
-
values
public static HistogramType[] 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 (HistogramType c : HistogramType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HistogramType 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
-
-