public class GradientGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESS |
static int |
LEFTHIGH |
static int |
LINEAR |
static int |
MIDDLEHIGH |
static int |
MIDDLELOW |
static int |
RIGHTHIGH |
| Constructor and Description |
|---|
GradientGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
generate(int minwords,
int maxwords,
double startw,
double endw,
double resw,
int gradient) |
static double[] |
generate(int minwords,
int maxwords,
double startw,
double endw,
double resw,
int gradient,
boolean asContent) |
static int |
getGradient(String type) |
static void |
main(String[] args) |
static double |
sum(double[] gradients) |
public static final int MIDDLELOW
public static final int ADDRESS
public static final int LEFTHIGH
public static final int RIGHTHIGH
public static int MIDDLEHIGH
public static int LINEAR
public static double[] generate(int minwords,
int maxwords,
double startw,
double endw,
double resw,
int gradient)
public static int getGradient(String type)
public static double[] generate(int minwords,
int maxwords,
double startw,
double endw,
double resw,
int gradient,
boolean asContent)
public static void main(String[] args)
public static double sum(double[] gradients)
Copyright © 2021. All rights reserved.