sources
Class HexBinner
java.lang.Object
sources.DensityEstimator
sources.HexBinner
- public class HexBinner
- extends DensityEstimator
A class that is responsible for drawing hexagonal binning of
a scatterplot
Fields inherited from class sources.DensityEstimator |
binmod, COLORED, dat, EASY_BINNING, GROWING, LINEAR_BINNING, maxalpha, modus, punktgr, sizex, sizey, SUNFLOWERS |
Constructor Summary |
HexBinner(LDataSet data,
int punktgr2,
int maxal,
int mod1)
Creates new HexBinner |
Method Summary |
void |
createRects(int width,
int height,
boolean onlySelected,
int[] aux,
int[] auy)
prepare the Binning |
void |
paintDensity(java.awt.Graphics g,
java.awt.Rectangle vsRect)
paint the density |
void |
paintHex(java.awt.Graphics g,
int x,
int y,
int size,
java.awt.Color col)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HexBinner
public HexBinner(LDataSet data,
int punktgr2,
int maxal,
int mod1)
- Creates new HexBinner
paintDensity
public void paintDensity(java.awt.Graphics g,
java.awt.Rectangle vsRect)
- Description copied from class:
DensityEstimator
- paint the density
- Specified by:
paintDensity
in class DensityEstimator
- Parameters:
g
- the Graphics to paint onvsRect
- the visible Rectangle
paintHex
public void paintHex(java.awt.Graphics g,
int x,
int y,
int size,
java.awt.Color col)
createRects
public void createRects(int width,
int height,
boolean onlySelected,
int[] aux,
int[] auy)
- Description copied from class:
DensityEstimator
- prepare the Binning
- Specified by:
createRects
in class DensityEstimator
- Parameters:
width
- the width of the pictureheight
- the height of the pictureonlySelected
- true, if only the selected values has changedaux
- x valuesauy
- y values