public class ColorMapUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
HORIZONTAL_ORIENTATION |
static int |
K_NEIGHBORS |
static int |
POWER |
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(Location[] locs,
java.lang.Double[] vals,
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 double |
getColorIndexZeroToOne(double val,
double minVar,
double maxVar) |
static double |
getColorIndexZeroToOneLog10(double val,
double minVar,
double maxVar) |
static void |
getInterpolatedData(double[][] data,
ColorMap colormap,
java.awt.Graphics2D bg,
double width,
double height,
int alpha) |
static ColorMap |
invertColormap(ColorMap original,
int numColors) |
static void |
main(java.lang.String[] args) |
public static final int POWER
public static final int K_NEIGHBORS
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 void generateColorMap(Location[] locs, java.lang.Double[] vals, java.awt.Graphics2D destination, double width, double height, int alpha, ColorMap colorMap)
public static java.awt.Image getBar(ColorMap cmap, int orientation, int width, int height)
public static double getColorIndexZeroToOne(double val, double minVar, double maxVar)
val
- minVar
- maxVar
- public static double getColorIndexZeroToOneLog10(double val, double minVar, double maxVar)
val
- minVar
- maxVar
- public static void main(java.lang.String[] args)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.