vipratech.beans.standardbeans
Class SimpleDataSource

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--vipratech.awt.VPanel
                          |
                          +--vipratech.beans.standardbeans.SimpleDataSource

public class SimpleDataSource
extends VPanel
implements java.lang.Runnable

This bean is fopr sending simple datas to other connected beans to test something. it works with data from Propertychange , Adjusment and Adjustmentfloat, and gtenerate some values, which are sened through the propertychange to XYGraph or so on.

Version:
0.9, July 25, 2001
Author:
Hendrik Dathe   dathe@chemie.uni-leipzig.de
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
SimpleDataSource()
          Constructor.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Method to register property change listeners at design time.
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
          Sets the value of the pause for the thread sleep method.
 void destroy()
          Method to clean up thread.
 java.awt.Dimension getMinimumSize()
          Returns the minimum size of this component of width 200px, height 150px.
 void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Method to de-register property change listeners at design time.
 void reset()
          Resets to initial values.
 void run()
          The thread.
 void start()
          Starts the thread.
 void stop()
          Stops 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, 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, 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, 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

SimpleDataSource

public SimpleDataSource()
Constructor.
Method Detail

start

public final void start()
Starts the thread.

stop

public final void stop()
Stops the thread.

run

public final void run()
The thread.
Specified by:
run in interface java.lang.Runnable

adjustmentValueChanged

public final void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
Sets the value of the pause for the thread sleep method. This method can be used receive adjustment events from a slider control. Vipratech.beans.HorizontalSlider or Vipratech.beans.VertcialSlider can thus be wired up to this method at design time.

reset

public final void reset()
Resets to initial values.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Method to register property change listeners at design time.
Overrides:
addPropertyChangeListener in class java.awt.Component

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Method to de-register property change listeners at design time.
Overrides:
removePropertyChangeListener in class java.awt.Component

destroy

public final void destroy()
Method to clean up thread. Should be called by an applet destroy() method.

getMinimumSize

public final java.awt.Dimension getMinimumSize()
Returns the minimum size of this component of width 200px, height 150px.
Overrides:
getMinimumSize in class java.awt.Container

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de