sources
Class HexBinner

java.lang.Object
  extended bysources.DensityEstimator
      extended bysources.HexBinner

public class HexBinner
extends DensityEstimator

A class that is responsible for drawing hexagonal binning of a scatterplot


Field Summary
 
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 sources.DensityEstimator
getBinning, getPointPainter, paintFlower, setAlpha, setBinning, setPointPainter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexBinner

public HexBinner(LDataSet data,
                 int punktgr2,
                 int maxal,
                 int mod1)
Creates new HexBinner

Method Detail

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 on
vsRect - 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 picture
height - the height of the picture
onlySelected - true, if only the selected values has changed
aux - x values
auy - y values