databionics.esom.renderer.foreground
Class OpinionBestmatchRenderer
java.lang.Object
databionics.esom.renderer.foreground.ForegroundRenderer
databionics.esom.renderer.foreground.BestmatchRenderer
databionics.esom.renderer.foreground.OpinionBestmatchRenderer
public class OpinionBestmatchRenderer
- extends BestmatchRenderer
Render bestmatches in opinion color.
Field Summary |
protected static org.apache.log4j.Logger |
log
interface to log4j system |
protected cern.colt.matrix.DoubleMatrix1D |
max
|
protected cern.colt.matrix.DoubleMatrix1D |
min
|
Method Summary |
protected java.awt.Color |
getColor(int index)
Calculate opinion color |
int |
getRndLayer()
The rendering layer |
void |
render(Renderer renderer)
Uses super class for actual rendering, but calculates a
columnwise-normalized matrix, which is neede for calls to
this.getColor(i,); |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
- interface to log4j system
max
protected cern.colt.matrix.DoubleMatrix1D max
min
protected cern.colt.matrix.DoubleMatrix1D min
OpinionBestmatchRenderer
public OpinionBestmatchRenderer()
- Standard constructor
getColor
protected java.awt.Color getColor(int index)
- Calculate opinion color
- Overrides:
getColor
in class BestmatchRenderer
- Parameters:
index
- of bestmatch
- Returns:
- favorite color, can be overridden in subclasses
render
public void render(Renderer renderer)
- Uses super class for actual rendering, but calculates a
columnwise-normalized matrix, which is neede for calls to
this.getColor(i,);
- Overrides:
render
in class BestmatchRenderer
- Parameters:
renderer
- The invoking Renderer
getRndLayer
public int getRndLayer()
- The rendering layer
- Overrides:
getRndLayer
in class BestmatchRenderer
- Returns:
- 12
- See Also:
ForegroundRenderer.getRndLayer()
Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.