|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.general.DataUtilities
Utility methods for use with some of the data classes (but not the datasets,
see DatasetUtilities
).
Constructor Summary | |
DataUtilities()
|
Method Summary | |
static java.lang.Number[] |
createNumberArray(double[] data)
Constructs an array of Number objects from an array of
double primitives. |
static java.lang.Number[][] |
createNumberArray2D(double[][] data)
Constructs an array of arrays of Number objects from a
corresponding structure containing double primitives. |
static KeyedValues |
getCumulativePercentages(KeyedValues data)
Returns a KeyedValues instance that contains the cumulative
percentage values for the data in another KeyedValues instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataUtilities()
Method Detail |
public static java.lang.Number[] createNumberArray(double[] data)
Number
objects from an array of
double
primitives.
data
- the data (null
not permitted).
Double
.public static java.lang.Number[][] createNumberArray2D(double[][] data)
Number
objects from a
corresponding structure containing double
primitives.
data
- the data (null
not permitted).
Double
.public static KeyedValues getCumulativePercentages(KeyedValues data)
KeyedValues
instance that contains the cumulative
percentage values for the data in another KeyedValues
instance.
The percentages are values between 0.0 and 1.0 (where 1.0 = 100%).
data
- the data (null
not permitted).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |