public class HDFRasterLayer extends RasterLayer
Modifier and Type | Class and Description |
---|---|
static class |
HDFRasterLayer.GradientType |
Modifier and Type | Field and Description |
---|---|
protected float[] |
brightnesses |
protected java.awt.Color[] |
colors |
protected long[][] |
count
Count of temperatures
|
protected HDFRasterLayer.GradientType |
gradientType |
protected float[] |
hues |
protected float[] |
saturations |
protected long[][] |
sum
Sum of temperatures
|
height, inputMBR, width
Constructor and Description |
---|
HDFRasterLayer()
Initialize an empty frequency map to be used to deserialize
|
HDFRasterLayer(Rectangle inputMBR,
int width,
int height)
Initializes a frequency map with the given dimensions
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(int cx,
int cy,
int weight)
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() |
void |
mergeWith(HDFRasterLayer another) |
void |
readFields(java.io.DataInput in) |
void |
setGradientInfor(java.awt.Color color1,
java.awt.Color color2,
HDFRasterLayer.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, projectToImageSpace
protected long[][] sum
protected long[][] count
protected java.awt.Color[] colors
protected float[] hues
protected float[] saturations
protected float[] brightnesses
protected HDFRasterLayer.GradientType gradientType
public HDFRasterLayer()
public HDFRasterLayer(Rectangle inputMBR, int width, int height)
width
- height
- public void setValueRange(float min, float max)
min
- max
- public void write(java.io.DataOutput out) throws java.io.IOException
write
in class RasterLayer
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in class RasterLayer
java.io.IOException
public void mergeWith(HDFRasterLayer another)
public java.awt.image.BufferedImage asImage()
public void addPoint(int cx, int cy, int weight)
cx
- cy
- public int getWidth()
getWidth
in class RasterLayer
public int getHeight()
getHeight
in class RasterLayer
public void setGradientInfor(java.awt.Color color1, java.awt.Color color2, HDFRasterLayer.GradientType gradientType)
protected java.awt.Color calculateColor(float value, float minValue, float maxValue)