public class ColorMapUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HORIZONTAL_ORIENTATION |
static int |
VERTICAL_ORIENTATION |
| Constructor and Description |
|---|
ColorMapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generateColorMap(DataDiscretizer.DataPoint[] data,
java.awt.Graphics2D destination,
double width,
double height,
int alpha,
ColorMap colorMap) |
static void |
generateColorMap(java.awt.geom.Point2D[] points,
java.lang.Double[] vals,
java.awt.Graphics2D destination,
double width,
double height,
int alpha,
ColorMap colorMap,
boolean drawPoints) |
static void |
generateColorMap(java.awt.geom.Rectangle2D bounds,
java.awt.geom.Point2D[] points,
java.lang.Double[] vals,
java.awt.Graphics2D destination,
double width,
double height,
int alpha,
ColorMap colorMap,
double min,
double max) |
static void |
generateInterpolatedColorMap(java.awt.geom.Rectangle2D bounds,
DataDiscretizer.DataPoint[] data,
int var,
java.awt.Graphics2D destination,
double width,
double height,
int alpha,
ColorMap colorMap,
double minValue,
double maxValue) |
static java.awt.Image |
getBar(ColorMap cmap,
int orientation,
int width,
int height) |
static java.awt.geom.Rectangle2D |
getBounds(DataDiscretizer.DataPoint[] points) |
static java.awt.geom.Rectangle2D |
getBounds(java.awt.geom.Point2D[] points) |
static void |
getInterpolatedData(double[][] data,
ColorMap colormap,
java.awt.Graphics2D bg,
double width,
double height,
int alpha) |
public static int HORIZONTAL_ORIENTATION
public static int VERTICAL_ORIENTATION
public static void generateInterpolatedColorMap(java.awt.geom.Rectangle2D bounds,
DataDiscretizer.DataPoint[] data,
int var,
java.awt.Graphics2D destination,
double width,
double height,
int alpha,
ColorMap colorMap,
double minValue,
double maxValue)
bounds - limits of the covered areadata - point to use to interpolatevar - destination - image to draw inwidth - of the target imageheight - of the target imagealpha - transparencycolorMap - the colorMap (greyScale etc)minValue - the minimum value in the dataset (affects colors)maxValue - the maximum value in the dataset (affects colors)public static void generateColorMap(DataDiscretizer.DataPoint[] data, java.awt.Graphics2D destination, double width, double height, int alpha, ColorMap colorMap)
public static void getInterpolatedData(double[][] data,
ColorMap colormap,
java.awt.Graphics2D bg,
double width,
double height,
int alpha)
public static void generateColorMap(java.awt.geom.Rectangle2D bounds,
java.awt.geom.Point2D[] points,
java.lang.Double[] vals,
java.awt.Graphics2D destination,
double width,
double height,
int alpha,
ColorMap colorMap,
double min,
double max)
public static java.awt.geom.Rectangle2D getBounds(DataDiscretizer.DataPoint[] points)
public static java.awt.geom.Rectangle2D getBounds(java.awt.geom.Point2D[] points)
public static void generateColorMap(java.awt.geom.Point2D[] points,
java.lang.Double[] vals,
java.awt.Graphics2D destination,
double width,
double height,
int alpha,
ColorMap colorMap,
boolean drawPoints)
public static java.awt.Image getBar(ColorMap cmap, int orientation, int width, int height)