vipratech.beans.userbeans
Class FunctionPanel.SprungFunction

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

public class FunctionPanel.SprungFunction
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.SprungFunction()
           
 
Method Summary
 void dataChanged(AdjustmentFloatEvent event)
          This is the slider support In slider bean use following names: "baseValue" "amplitude" "highTime" "periodTime"
 void destroy()
          Terminates the thread
 float getAmp()
          Gets the amplitude value of the function
 float getBase()
          Gets the base value of the function
 int getDelay()
          Gets delay between calculations
 boolean getFlag()
          Gets the flag
 float getMax()
          Gets the maximum y value of the function
 void propertyChange(java.beans.PropertyChangeEvent event)
          This is the listener for something like the OnButton which sends a propertyChangeEvent called "Status" Invoked first time it starts the thread and the output.
 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 setFlag(boolean flag)
          Sets the flag of the function if flag's true the graph will be at high level
 void setMax(float max)
          Sets the maximum y value of the function
 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.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.SprungFunction

public FunctionPanel.SprungFunction()
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

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" Invoked first time it starts the thread and the output. Pushed a second time it sets the graph to high. Otherway use a MainButtons and hook it directly to start(). Use another button to set to true and therefore the graph to high level. Add another button and hook it to stop() to stop the output.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

reset

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

destroy

public final void destroy()
Terminates the thread

setDelay

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

getDelay

public final int getDelay()
Gets delay between calculations

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

setFlag

public final void setFlag(boolean flag)
Sets the flag of the function if flag's true the graph will be at high level

getFlag

public final boolean getFlag()
Gets the flag

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de