Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

gui.SpectrogramPanel Class Reference

Collaboration diagram for gui.SpectrogramPanel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Creates a graphical representation from a matrix.

Like Matlab's imagesc.

Definition at line 41 of file SpectrogramPanel.java.

Public Methods

 SpectrogramPanel (double[][] dat)
 Creates a new SpectrogramPanel for the given data matrix.

void setOffsetFactor (double offsetFactor)
 Updates the offset factor used to calculate the greyscale values from the intensities.

void paint (Graphics g)
 Paint the component.


Protected Methods

void vzoomSet (float vzoom)
 Zoom the image in the vertical direction, preparing for new display.

void hzoomSet (float zoom)
 Zoom the image in the horizontal direction, preparing for new display.

void zoomSet (float zoom)
 Zoom the image in the horizontal direction, preparing for new display.


Member Function Documentation

void gui.SpectrogramPanel.paint Graphics    g [inline]
 

Paint the component.

This will be called by AWT/Swing.

Parameters:
g  The Graphics to draw on.

Definition at line 268 of file SpectrogramPanel.java.

void gui.SpectrogramPanel.setOffsetFactor double    offsetFactor [inline]
 

Updates the offset factor used to calculate the greyscale values from the intensities.

This also calculates and populates all the greyscale values in the image.

Parameters:
offsetFactor  the offset factor used to calculate the greyscale values from the intensities; this is used to adjust the level of background noise that shows up in the image

Definition at line 168 of file SpectrogramPanel.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 6 19:02:42 2007 for MEAPsoft by doxygen1.2.18