Package org.jfree.data.statistics
Class HistogramType
java.lang.Object
org.jfree.data.statistics.HistogramType
- All Implemented Interfaces:
Serializable
A class for creating constants to represent the histogram type. See Bloch's
enum tip in 'Effective Java'.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HistogramType
Frequency histogram.private String
The type name.static final HistogramType
Relative frequency.static final HistogramType
Scale area to one.private static final long
For serialization. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
FREQUENCY
Frequency histogram. -
RELATIVE_FREQUENCY
Relative frequency. -
SCALE_AREA_TO_1
Scale area to one. -
name
The type name.
-
-
Constructor Details
-
HistogramType
Creates a new type.- Parameters:
name
- the name.
-
-
Method Details
-
toString
Returns a string representing the object. -
equals
Tests this type for equality with an arbitrary object. -
hashCode
public int hashCode()Returns a hash code value for the object. -
readResolve
Ensures that serialization returns the unique instances.- Returns:
- The object.
- Throws:
ObjectStreamException
- if there is a problem.
-