|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.graphics.Chip2DRenderer
net.sf.jaer.graphics.AEChipRenderer
ch.unizh.ini.jaer.chip.cochlea.CochleaAMSNoBiasgen.Renderer
public class CochleaAMSNoBiasgen.Renderer
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.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 |
---|
public CochleaAMSNoBiasgen.Renderer(AEChip chip)
Method Detail |
---|
protected void checkTypeColors(int numCellTypes)
AEChipRenderer
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.
checkTypeColors
in class AEChipRenderer
numCellTypes
- the number of colors to generateAEChipRenderer.typeColors
,
AEChipRenderer.typeColorRGBComponents
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |