jAER project on SourceForge

ch.unizh.ini.jaer.chip.cochlea
Class CochleaAMSNoBiasgen.Renderer

java.lang.Object
  extended by net.sf.jaer.graphics.Chip2DRenderer
      extended by net.sf.jaer.graphics.AEChipRenderer
          extended by ch.unizh.ini.jaer.chip.cochlea.CochleaAMSNoBiasgen.Renderer
All Implemented Interfaces:
java.util.Observer
Enclosing class:
CochleaAMSNoBiasgen

public class CochleaAMSNoBiasgen.Renderer
extends AEChipRenderer


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.jaer.graphics.AEChipRenderer
AEChipRenderer.ColorMode
 
Field Summary
 
Fields inherited from class net.sf.jaer.graphics.AEChipRenderer
chip, HUES, ignorePolarityEnabled, log, NUM_METHODS, NUM_TIME_COLORS, packet, spikeSound, step, stereoEnabled, subsampleThresholdEventCount, subsamplingEnabled, timeColors, typeColorRGBComponents, typeColors
 
Fields inherited from class net.sf.jaer.graphics.Chip2DRenderer
accumulateEnabled, annotators, autoscaleEnabled, autoScaleValue, colorScale, eventContrast, fr, grayValue, pixmap, prefs, selectedPixelEventCount, xsel, ysel
 
Constructor Summary
CochleaAMSNoBiasgen.Renderer(AEChip chip)
           
 
Method Summary
protected  void checkTypeColors(int numCellTypes)
          Creates colors for each cell type (e.g.
 
Methods inherited from class net.sf.jaer.graphics.AEChipRenderer
autoScaleFrame, autoScaleFrame, cycleColorMode, getChip, getColorMode, getPacket, getSubsampleThresholdEventCount, getTypeColorRGBComponents, getTypeColors, isIgnorePolarityEnabled, isMethodMonochrome, isStereoEnabled, isSubsamplingEnabled, playSpike, render, setChip, setColorMode, setIgnorePolarityEnabled, setStereoEnabled, setSubsampleThresholdEventCount, setSubsamplingEnabled, setTypeColorRGBComponents, setTypeColors
 
Methods inherited from class net.sf.jaer.graphics.Chip2DRenderer
checkFr, checkPixmapAllocation, decreaseContrast, getColorScale, getGrayValue, getPixmap, getPixmapArray, getPixMapIndex, getPixmapRGB, getSelectedPixelEventCount, getXsel, getYsel, increaseContrast, isAccumulateEnabled, isAutoscaleEnabled, isPixelSelected, removeAllAnnotators, resetFrame, setAccumulateEnabled, setAutoscaleEnabled, setColorScale, setGrayValue, setPixmapPosition, setPixmapRGB, setXsel, setYsel, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CochleaAMSNoBiasgen.Renderer

public CochleaAMSNoBiasgen.Renderer(AEChip chip)
Method Detail

checkTypeColors

protected void checkTypeColors(int numCellTypes)
Description copied from class: AEChipRenderer
Creates colors for each cell type (e.g. orientation) so that they are spread over hue space in a manner to attempt to be maximally different in hue.

Subclasses can override this method to customize the colors drawn but the subclasses should check if the color have been created since checkTypeColors is called on every rendering cycle. This method should first check if typeColorRGBComponents already exists and has the correct number of elements. If not, allocate and populate typeColorRGBComponents so that type t corresponds to typeColorRGBComponents[t][0] for red, typeColorRGBComponents[t][1] for green, and typeColorRGBComponents[t][3] for blue. It should also populate the Color[] typeColors.

Overrides:
checkTypeColors in class AEChipRenderer
Parameters:
numCellTypes - the number of colors to generate
See Also:
AEChipRenderer.typeColors, AEChipRenderer.typeColorRGBComponents

jAER project on SourceForge