|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsources.DensityEstimator
An abstract superclass for Density Estimation
Field Summary | |
protected int |
binmod
the binmode:EASY_BINNING, LINEAR_BINNING |
static int |
COLORED
Colored bins |
protected LDataSet |
dat
the parental LDataSet |
static int |
EASY_BINNING
Easy Binning algorithm |
static int |
GROWING
Growing bins |
static int |
LINEAR_BINNING
Linear binning algorithm |
protected int |
maxalpha
the maximum alpha value |
protected int |
modus
the mode: COLORED,GROWING,SUNFLOWERS |
protected int |
punktgr
the point size/ binning size |
protected int |
sizex
the size of bins in x direction |
protected int |
sizey
the size of bins in y direction |
static int |
SUNFLOWERS
Sunflowers as bins |
Constructor Summary | |
DensityEstimator()
|
Method Summary | |
abstract void |
createRects(int width,
int height,
boolean onlySelected,
int[] xval,
int[] yval)
prepare the Binning |
int |
getBinning()
gets the binning algorithm |
int |
getPointPainter()
gets the mod |
abstract void |
paintDensity(java.awt.Graphics g,
java.awt.Rectangle vsRect)
paint the density |
protected static void |
paintFlower(java.awt.Graphics g,
int x,
int y,
int b,
int h,
int alpha,
java.awt.Color frgCol)
paints a sunflower |
void |
setAlpha(int x)
sets the maximal alpha value |
void |
setBinning(int bin)
sets the binning algorithm |
void |
setPointPainter(int mod)
set the mod |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int COLORED
public static final int GROWING
public static final int SUNFLOWERS
public static final int EASY_BINNING
public static final int LINEAR_BINNING
protected int modus
protected int binmod
protected int punktgr
protected int maxalpha
protected int sizex
protected int sizey
protected LDataSet dat
Constructor Detail |
public DensityEstimator()
Method Detail |
public abstract void paintDensity(java.awt.Graphics g, java.awt.Rectangle vsRect)
g
- the Graphics to paint onvsRect
- the visible Rectanglepublic abstract void createRects(int width, int height, boolean onlySelected, int[] xval, int[] yval)
width
- the width of the pictureheight
- the height of the pictureonlySelected
- true, if only the selected values has changedxval
- x valuesyval
- y valuespublic void setPointPainter(int mod)
mod
- the modus COLORED, GROWING, SUNFLOWERSpublic int getPointPainter()
public void setBinning(int bin)
bin
- the mod: EASY_BINNING, LINEAR_BINNINGpublic int getBinning()
public void setAlpha(int x)
x
- the alpha valueprotected static void paintFlower(java.awt.Graphics g, int x, int y, int b, int h, int alpha, java.awt.Color frgCol)
g
- the graphics to paint onx
- the x coordinatey
- the y coordinateb
- the widthh
- the heightalpha
- the alpha valuefrgCol
- the foreground color
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |