vipratech.beans.userbeans
Class FunctionPanel.TriFunction

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--vipratech.awt.VCanvas
                    |
                    +--vipratech.beans.userbeans.FunctionPanel.TriFunction

public class FunctionPanel.TriFunction
extends VCanvas
implements java.lang.Runnable, java.beans.PropertyChangeListener

See Also:
Serialized Form

Fields inherited from class vipratech.awt.VCanvas
fm
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
FunctionPanel.TriFunction()
           
 
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 getHigh()
          Gets the time for the high phase
 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()
          Resets all data.
 void run()
          This method is called when the thread starts.
 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 setHigh(float high)
          Sets the time for the high phase
 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 and therefore the calculation and the output
 void stop()
          Stops, better pauses the thread.
 
Methods inherited from class java.awt.Canvas
addNotify, paint
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionPanel.TriFunction

public FunctionPanel.TriFunction()
Method Detail

start

public final void start()
Starts the thread and therefore the calculation and the output

stop

public final void stop()
Stops, better pauses the thread. Doesn't kill it!

run

public final void run()
This method is called when the thread starts. It increases a counter then calls calculate(). After that it calls sendData() to fire the values and pauses for a (at design time) specified amount of time declared in
Specified by:
run in interface java.lang.Runnable

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

dataChanged

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

reset

public final void reset()
Resets all data. SliderValues are unaffected.

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

setHigh

public final void setHigh(float high)
Sets the time for the high phase

getHigh

public final float getHigh()
Gets the time for the high phase

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