databionics.esom.renderer.background
Class ComponentRenderer

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

public class ComponentRenderer
extends BackgroundRenderer

Component plane background renderer. The height is the value of one dimension.


Field Summary
protected  int component
          the dimension to use for rendering
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
ComponentRenderer()
          Standard constructor
 
Method Summary
 java.lang.String getCaption(Renderer renderer)
          Short description of the renderer: the name or number of the component.
 boolean isColorBackground()
          Whether this background renderer returns color matrix.
 cern.colt.matrix.DoubleMatrix2D render(Renderer renderer)
          The heights are simply a slice of the high dimensional grid by copying the value of a the selected dimension.
 void setComponent(int component)
          Set the dimension to use for rendering.
 
Methods inherited from class databionics.esom.renderer.background.BackgroundRenderer
bmChanged, getRenderer, init, 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


component

protected int component
the dimension to use for rendering

Constructor Detail

ComponentRenderer

public ComponentRenderer()
Standard constructor

Method Detail

render

public cern.colt.matrix.DoubleMatrix2D render(Renderer renderer)
The heights are simply a slice of the high dimensional grid by copying the value of a the selected dimension.

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

setComponent

public void setComponent(int component)
Set the dimension to use for rendering.

Parameters:
component - the component number

getCaption

public java.lang.String getCaption(Renderer renderer)
Short description of the renderer: the name or number of the component.

Overrides:
getCaption in class BackgroundRenderer
Returns:
short description


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