public class ColormapOverlay extends java.lang.Object implements Renderer2DPainter
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedHashMap<java.awt.Point,java.lang.Double> |
average |
protected ColorBar |
cb |
protected java.util.LinkedHashMap<java.awt.Point,java.lang.Double> |
cellSums |
protected int |
cellWidth |
protected boolean |
clamp |
protected ColorMap |
colormap |
protected java.util.LinkedHashMap<java.awt.Point,java.lang.Integer> |
count |
protected java.awt.image.BufferedImage |
generated |
protected boolean |
inverted |
protected int |
maxE |
protected int |
maxN |
protected double |
maxVal |
protected int |
minE |
protected int |
minN |
protected double |
minVal |
protected java.lang.String |
name |
protected LocationType |
ref |
protected java.awt.image.BufferedImage |
scaled |
protected LocationType |
topLeft |
protected int |
transparency |
Constructor and Description |
---|
ColormapOverlay(java.lang.String name,
int cellWidth,
boolean inverted,
int transparency) |
Modifier and Type | Method and Description |
---|---|
void |
addSample(LocationType location,
double value) |
void |
addSampleUseMax(LocationType location,
double value) |
void |
computeAverage() |
protected void |
drawLegend(java.awt.Graphics2D g) |
double[][] |
fillInData() |
double[][] |
generateGrid(java.awt.geom.Point2D min,
java.awt.geom.Point2D max) |
java.awt.image.BufferedImage |
generateImage(ColorMap colormap) |
ImageLayer |
getImageLayer() |
static void |
main(java.lang.String[] args) |
void |
paint(java.awt.Graphics2D g,
StateRenderer2D renderer) |
void |
setClamp(boolean clamp) |
protected java.util.LinkedHashMap<java.awt.Point,java.lang.Double> cellSums
protected java.util.LinkedHashMap<java.awt.Point,java.lang.Integer> count
protected java.util.LinkedHashMap<java.awt.Point,java.lang.Double> average
protected int minN
protected int minE
protected int maxN
protected int maxE
protected double minVal
protected double maxVal
protected LocationType topLeft
protected int cellWidth
protected LocationType ref
protected java.awt.image.BufferedImage generated
protected java.awt.image.BufferedImage scaled
protected java.lang.String name
protected ColorMap colormap
protected ColorBar cb
protected boolean inverted
protected boolean clamp
protected int transparency
public ColormapOverlay(java.lang.String name, int cellWidth, boolean inverted, int transparency)
public void setClamp(boolean clamp)
clamp
- the clamp to setpublic void addSampleUseMax(LocationType location, double value)
public void addSample(LocationType location, double value)
public void computeAverage()
public double[][] fillInData()
public double[][] generateGrid(java.awt.geom.Point2D min, java.awt.geom.Point2D max)
public java.awt.image.BufferedImage generateImage(ColorMap colormap)
public void paint(java.awt.Graphics2D g, StateRenderer2D renderer)
paint
in interface Renderer2DPainter
public ImageLayer getImageLayer()
protected void drawLegend(java.awt.Graphics2D g)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.