databionics.esom.renderer.background
Class GapRenderer

java.lang.Object
  extended by databionics.esom.renderer.background.BackgroundRenderer
      extended by databionics.esom.renderer.background.GapRenderer
All Implemented Interfaces:
BmChangeListener, LrnChangeListener, ParamChangeListener, WtsChangeListener

public class GapRenderer
extends BackgroundRenderer

Gap background renderer. Inspired by a method proposed by Kaski. The height is the distance to the local centroid. The centroid is calculated by the eight direct neighbors.


Field Summary
protected static org.apache.log4j.Logger log
          interface to log4j system
 
Fields inherited from class databionics.esom.renderer.background.BackgroundRenderer
bmChanged, cacheMatrix, lrnChanged, paramChanged, renderer, wtsChanged
 
Constructor Summary
GapRenderer()
          Standard constructor
 
Method Summary
 void init()
          Optional initialization of background renderer.
 boolean isColorBackground()
          Whether this background renderer returns color matrix.
 cern.colt.matrix.DoubleMatrix2D render(Renderer renderer)
          The heights are calculated as the distance of a prototype to a local centroid.
 
Methods inherited from class databionics.esom.renderer.background.BackgroundRenderer
bmChanged, getCaption, getRenderer, lrnChanged, paramChanged, resetCache, setRenderer, wtsChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
interface to log4j system

Constructor Detail

GapRenderer

public GapRenderer()
Standard constructor

Method Detail

render

public cern.colt.matrix.DoubleMatrix2D render(Renderer renderer)
The heights are calculated as the distance of a prototype to a local centroid.

Specified by:
render in class BackgroundRenderer
Parameters:
renderer - The invoking Renderer

isColorBackground

public boolean isColorBackground()
Description copied from class: BackgroundRenderer
Whether this background renderer returns color matrix. If false a height matrix is returned.

Specified by:
isColorBackground in class BackgroundRenderer
Returns:
true if this BackgroundRenderer returns colors, false if heights

init

public void init()
Description copied from class: BackgroundRenderer
Optional initialization of background renderer.

Overrides:
init in class BackgroundRenderer


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.