org.fraid.plugin.beans
Class SpectrumPlugIn

java.lang.Object
  extended by org.fraid.plugin.BehaviorBean
      extended by org.fraid.plugin.beans.SpectrumPlugIn
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, BehaviorBeanInterface, ChangeAwareObject

public class SpectrumPlugIn
extends BehaviorBean

See Also:
Serialized Form

Field Summary
 int magnification
           
 java.lang.String mFFTFunctionName
           
 int mFftLength
           
 DefinedFunction mFFTViewFunction
           
 double mFrequencyStep
           
 double mTimeStep
           
 int overlap
           
 ColorMap plotColors
           
 double threshold
           
 
Fields inherited from class org.fraid.plugin.BehaviorBean
autoScale, backgroundColor, bottomRight, frameSize, gridColor, mAutoScaleMenuItem, mGridCrossPoints, mPainterThread, mPanel, numberGridMarkerDigitsX, numberGridMarkerDigitsY, upperLeft
 
Constructor Summary
SpectrumPlugIn()
           
 
Method Summary
 java.lang.Object clone()
          Clone when saving to file.
 void completePopupMenu(javax.swing.JPopupMenu aPopup)
          See superclass.
 boolean doMouseDragged(java.awt.event.MouseEvent aE)
           
 boolean doMousePressed(java.awt.event.MouseEvent aE)
           
 void fftFunction(java.awt.event.MouseEvent aE, SpectrumThread vThread)
           
 void fftWindow()
           
 java.awt.Point freqTimeToPlane(DoublePoint aDoublePoint)
           
 PaintAlgorithmThread getAlgorithm()
          Returns the current algorithm
 int getMagnification()
           
 int getOverlap()
           
 ColorMap getPlotColors()
          Get the PlotColors value.
 java.lang.String getToolTipText(java.awt.event.MouseEvent aE)
           
 DoublePoint planeToFreqTime(java.awt.Point aPoint)
           
 void setGraphicsPanel(GraphicsUser aOwner)
          See superclass.
 void setMagnification(int aMagnification)
           
 void setOverlap(int aOverlap)
           
 void setPlotColors(ColorMap newPlotColors)
          Set the PlotColors value.
 
Methods inherited from class org.fraid.plugin.BehaviorBean
actionPerformed, copyAlgorithmStructures, doActionPerformed, doItemStateChanged, doKeyPressed, doKeyReleased, doKeyTyped, doMouseClicked, doMouseEntered, doMouseExited, doMouseMoved, doMouseReleased, doObjectChanged, getBackgroundColor, getBottomRight, getFrameSize, getGridColor, getNumberGridMarkerDigitsX, getNumberGridMarkerDigitsY, getUpperLeft, isAutoScale, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, objectChanged, setAutoScale, setBackgroundColor, setBottomRight, setFrameSize, setGridColor, setLimits, setNumberGridMarkerDigitsX, setNumberGridMarkerDigitsY, setUpperLeft
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plotColors

public ColorMap plotColors

magnification

public int magnification

overlap

public int overlap

threshold

public double threshold

mFftLength

public transient int mFftLength

mFrequencyStep

public transient double mFrequencyStep

mTimeStep

public transient double mTimeStep

mFFTFunctionName

public final transient java.lang.String mFFTFunctionName
See Also:
Constant Field Values

mFFTViewFunction

public transient DefinedFunction mFFTViewFunction
Constructor Detail

SpectrumPlugIn

public SpectrumPlugIn()
               throws ComplexFunctionException
Throws:
ComplexFunctionException
Method Detail

getPlotColors

public ColorMap getPlotColors()
Get the PlotColors value.

Returns:
the PlotColors value.

setPlotColors

public void setPlotColors(ColorMap newPlotColors)
Set the PlotColors value.

Parameters:
newPlotColors - The new PlotColors value.

getMagnification

public int getMagnification()

setMagnification

public void setMagnification(int aMagnification)

getOverlap

public int getOverlap()

setOverlap

public void setOverlap(int aOverlap)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from class: BehaviorBean
Clone when saving to file.

Overrides:
clone in class BehaviorBean
Returns:
an Object value
Throws:
java.lang.CloneNotSupportedException - if an error occurs

setGraphicsPanel

public void setGraphicsPanel(GraphicsUser aOwner)
                      throws PlugInException
Description copied from class: BehaviorBean
See superclass.

Specified by:
setGraphicsPanel in interface BehaviorBeanInterface
Overrides:
setGraphicsPanel in class BehaviorBean
Parameters:
aOwner - a GraphicsUser value
Throws:
PlugInException - if an error occurs

completePopupMenu

public void completePopupMenu(javax.swing.JPopupMenu aPopup)
Description copied from class: BehaviorBean
See superclass.

Specified by:
completePopupMenu in interface BehaviorBeanInterface
Overrides:
completePopupMenu in class BehaviorBean
Parameters:
aPopup - a JPopupMenu value

getAlgorithm

public PaintAlgorithmThread getAlgorithm()
Description copied from class: BehaviorBean
Returns the current algorithm

Specified by:
getAlgorithm in interface BehaviorBeanInterface
Overrides:
getAlgorithm in class BehaviorBean
Returns:
a PaintAlgorithmThread value

getToolTipText

public java.lang.String getToolTipText(java.awt.event.MouseEvent aE)
Overrides:
getToolTipText in class BehaviorBean

doMousePressed

public boolean doMousePressed(java.awt.event.MouseEvent aE)
Overrides:
doMousePressed in class BehaviorBean

doMouseDragged

public boolean doMouseDragged(java.awt.event.MouseEvent aE)
Overrides:
doMouseDragged in class BehaviorBean

planeToFreqTime

public DoublePoint planeToFreqTime(java.awt.Point aPoint)

freqTimeToPlane

public java.awt.Point freqTimeToPlane(DoublePoint aDoublePoint)

fftFunction

public void fftFunction(java.awt.event.MouseEvent aE,
                        SpectrumThread vThread)

fftWindow

public void fftWindow()


Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.