|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jCharts.test.TestDataGenerator
public final class TestDataGenerator
| Field Summary | |
|---|---|
private static Font[] |
ALL_FONTS
|
| Constructor Summary | |
|---|---|
TestDataGenerator()
|
|
| Method Summary | |
|---|---|
protected static Color |
getRandomColor()
Random Color generator. |
static Font |
getRandomFont(double minSize,
double maxSize)
Random font generator based on the available Fonts on this machine. |
static double |
getRandomNumber(double maxValue)
Random number generator. |
protected static double |
getRandomNumber(double minValue,
double maxValue)
Random number generator in specified range. |
static double[] |
getRandomNumbers(int numToGenerate,
double minValue,
double maxValue)
Random numbers generator in specified range. |
static double[][] |
getRandomNumbers(int numberOfDataSets,
int numToGenerate,
double minValue,
double maxValue)
Random numbers generator in specified range. |
protected static Paint |
getRandomPaint()
Random Paint generator. |
static Paint[] |
getRandomPaints(int numToCreate)
Random Color generator. |
static Point2D.Double[] |
getRandomPoints(int numToGenerate,
double xMinValue,
double xMaxValue,
double yMinValue,
double yMaxValue)
Random numbers generator in specified range. |
protected static String |
getRandomString(int maxStringLength,
boolean canBeNull)
Random String generator. |
protected static String[] |
getRandomStrings(int numToCreate,
int maxStringLength,
boolean canBeNull)
Random String generator. |
protected static void |
randomizeAxisProperties(AxisProperties axisProperties)
Takes the passed AxisProperties and randomizes it. |
protected static void |
randomizeLegend(LegendProperties legendProperties)
Takes the passed Legend and randomizes it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Font[] ALL_FONTS
| Constructor Detail |
|---|
public TestDataGenerator()
| Method Detail |
|---|
public static Font getRandomFont(double minSize,
double maxSize)
minSize - maxSize -
public static double getRandomNumber(double maxValue)
maxValue -
protected static double getRandomNumber(double minValue,
double maxValue)
minValue - maxValue -
public static double[] getRandomNumbers(int numToGenerate,
double minValue,
double maxValue)
numToGenerate - the number of doubles to generateminValue - maxValue -
public static double[][] getRandomNumbers(int numberOfDataSets,
int numToGenerate,
double minValue,
double maxValue)
numberOfDataSets - to generatenumToGenerate - the number of doubles to generateminValue - maxValue -
public static Point2D.Double[] getRandomPoints(int numToGenerate,
double xMinValue,
double xMaxValue,
double yMinValue,
double yMaxValue)
numToGenerate - the number of doubles to generatexMinValue - xMaxValue - yMinValue - yMaxValue -
protected static Paint getRandomPaint()
public static Paint[] getRandomPaints(int numToCreate)
protected static Color getRandomColor()
protected static String getRandomString(int maxStringLength,
boolean canBeNull)
maxStringLength - canBeNull -
protected static String[] getRandomStrings(int numToCreate,
int maxStringLength,
boolean canBeNull)
protected static void randomizeAxisProperties(AxisProperties axisProperties)
axisProperties - protected static void randomizeLegend(LegendProperties legendProperties)
legendProperties -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||