public class FrequencyMapRasterLayer extends RasterLayer
| Modifier and Type | Class and Description |
|---|---|
static class |
FrequencyMapRasterLayer.GradientType |
static class |
FrequencyMapRasterLayer.SmoothType |
| Modifier and Type | Field and Description |
|---|---|
protected float[] |
brightnesses |
protected java.awt.Color[] |
colors |
protected float[][] |
frequencies
Frequencies
|
protected FrequencyMapRasterLayer.GradientType |
gradientType |
protected float[] |
hues |
protected float[][] |
kernel
The kernel to use for stamping points
|
protected float[] |
saturations |
height, inputMBR, width| Constructor and Description |
|---|
FrequencyMapRasterLayer()
Initialize an empty frequency map to be used to deserialize
|
FrequencyMapRasterLayer(Rectangle inputMBR,
int width,
int height,
int radius,
FrequencyMapRasterLayer.SmoothType smoothType)
Initializes a frequency map with the given dimensions
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(int cx,
int cy)
Adds a point to the frequency map
|
java.awt.image.BufferedImage |
asImage() |
protected java.awt.Color |
calculateColor(float value,
float minValue,
float maxValue) |
int |
getHeight() |
int |
getWidth() |
protected void |
initKernel(int radius,
FrequencyMapRasterLayer.SmoothType smoothType)
Initialize a frequency map with the given radius and kernel type
|
void |
mergeWith(FrequencyMapRasterLayer another) |
void |
readFields(java.io.DataInput in) |
void |
setGradientInfor(java.awt.Color color1,
java.awt.Color color2,
FrequencyMapRasterLayer.GradientType gradientType) |
void |
setValueRange(float min,
float max)
Sets the range of value to be used while drawing the heat map
|
void |
write(java.io.DataOutput out) |
getInputMBR, projectToImageSpaceprotected float[][] kernel
protected float[][] frequencies
protected java.awt.Color[] colors
protected float[] hues
protected float[] saturations
protected float[] brightnesses
protected FrequencyMapRasterLayer.GradientType gradientType
public FrequencyMapRasterLayer()
public FrequencyMapRasterLayer(Rectangle inputMBR, int width, int height, int radius, FrequencyMapRasterLayer.SmoothType smoothType)
width - height - protected void initKernel(int radius,
FrequencyMapRasterLayer.SmoothType smoothType)
radius - smoothType - public void setValueRange(float min,
float max)
min - max - public void write(java.io.DataOutput out)
throws java.io.IOException
write in class RasterLayerjava.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in class RasterLayerjava.io.IOExceptionpublic void mergeWith(FrequencyMapRasterLayer another)
public java.awt.image.BufferedImage asImage()
public void addPoint(int cx,
int cy)
cx - cy - public int getWidth()
getWidth in class RasterLayerpublic int getHeight()
getHeight in class RasterLayerpublic void setGradientInfor(java.awt.Color color1,
java.awt.Color color2,
FrequencyMapRasterLayer.GradientType gradientType)
protected java.awt.Color calculateColor(float value,
float minValue,
float maxValue)