vipratech.beans.userbeans
Class FunctionPanel.SinFunction

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--vipratech.awt.VPanel
                          |
                          +--vipratech.beans.userbeans.FunctionPanel.SinFunction

public class FunctionPanel.SinFunction
extends VPanel
implements java.lang.Runnable, java.beans.PropertyChangeListener

See Also:
Serialized Form

Fields inherited from class vipratech.awt.VPanel
fm
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
FunctionPanel.SinFunction()
           
 
Method Summary
 void dataChanged(AdjustmentFloatEvent event)
          This is the slider support In slider bean use following names: "baseValue" "amplitude" "highTime" periodTime"
 void destroy()
           
 float getAmp()
          Gets the amplitude value of the function
 float getBase()
          Gets the base value of the function
 int getDelay()
          Gets delay between calculations
 float getMax()
          Gets the maximum y value of the function
 float getPeriod()
          Gets the time for one period
 void propertyChange(java.beans.PropertyChangeEvent event)
          This is the listener for something like the OnButton which sends a propertyChangeEvent called "Status" This switches the funtion to on or off.
 void reset()
           
 void run()
          Basic method.
 void setAmp(float amp)
          Sets the amplitude value of the function
 void setBase(float base)
          Sets the base value of the function
 void setDelay(int pause)
          Sets delay between calculations
 void setMax(float max)
          Sets the maximum y value of the function
 void setPeriod(float period)
          Sets the time for one period
 void start()
          Starts the thread for the calculation
 void stop()
          Stops the thread -> stops data output
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionPanel.SinFunction

public FunctionPanel.SinFunction()
Method Detail

start

public final void start()
Starts the thread for the calculation

stop

public final void stop()
Stops the thread -> stops data output

run

public final void run()
Basic method. Called by Start(). Calls function() which calculates the value pairs, calls sendData() which fires these pairs and waits ms before loop starts again.
Specified by:
run in interface java.lang.Runnable

dataChanged

public final void dataChanged(AdjustmentFloatEvent event)
This is the slider support In slider bean use following names: "baseValue" "amplitude" "highTime" periodTime"

propertyChange

public final void propertyChange(java.beans.PropertyChangeEvent event)
This is the listener for something like the OnButton which sends a propertyChangeEvent called "Status" This switches the funtion to on or off. Otherway use MainButtons and hook them directly to start(), stop(), and reset()

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

reset

public final void reset()

destroy

public final void destroy()

setDelay

public final void setDelay(int pause)
Sets delay between calculations

getDelay

public final int getDelay()
Gets delay between calculations

setPeriod

public final void setPeriod(float period)
Sets the time for one period

getPeriod

public final float getPeriod()
Gets the time for one period

setBase

public final void setBase(float base)
Sets the base value of the function

getBase

public final float getBase()
Gets the base value of the function

setAmp

public final void setAmp(float amp)
Sets the amplitude value of the function

getAmp

public final float getAmp()
Gets the amplitude value of the function

setMax

public final void setMax(float max)
Sets the maximum y value of the function

getMax

public final float getMax()
Gets the maximum y value of the function

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de