vipratech.beans.vtbeans
Class DreierMagnetVentil

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--vipratech.awt.VPanel
                          |
                          +--vipratech.beans.vtbeans.DreierMagnetVentil

public class DreierMagnetVentil
extends VPanel

The DreierMagnetVentil class display MagnetVentil that can be changed by mouse pressed events by changing its color of the round in the middle of the Ventil

On mouse release the button generates an action event object which is sent to any registered action listeners.It sends a vector with the value for open and closed in/outputs

The Input is selected and the other two ways are the outputs which is selected on the connected beans like gaslines or so on.

For using this with tubes you must connect one tube through propertychange to the DreierMagnetventil, then connect the DreierMagnetVentil with the other two tubes and selecte on the tubes the number where the tubes are connected.

Version:
1.0, May 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
DreierMagnetVentil()
          The Constructor
 
Method Summary
 void addActionListener(java.awt.event.ActionListener listener)
          Allows this component to be wired at design time with action listeners
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Method to register property change listeners at design time.
 int getDesign()
          Method to get the Design
 int getEingang()
          Method to get the input
 int getGasname()
          Method for getting the Gasname which is selected
 java.awt.Dimension getMinimumSize()
          Method for getting the minium size
 java.awt.Dimension getNewSize()
          Method for getting the new size
 int getVentilnummer()
           
 boolean isEnabled()
          Method to get the kettle Status
 boolean isShownumber()
          Method to getting information about the showing of the numbers
 void paint(java.awt.Graphics g)
          Method to draw all on the screen
 void propertyChange(java.beans.PropertyChangeEvent event)
          Method for property change, interprets the GasArt and the Status
 void removeActionListener(java.awt.event.ActionListener listener)
          Allows this component to be un-wired at design time with action listeners
 void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Method to de-register property change listeners at design time.
 void sendData()
          Method to send the data in the Vector v1values
 void setDesign(int newDesign)
          Method to set the Design between 1;2;3;4
 void setEingang(int newEingang)
          Method to set the input
 void setEnabled(boolean newEnabled)
          Method to set the kettle enabled
 void setGasname(int newGasname)
          Method to set the Gasname which is getting from propertychange
 void setShownumber(boolean newShownumber)
          Method to set the number in kettle shown
 void setVentilnummer(int newVentilnummer)
          Method to set the kettlenumber between 1 - 3
 
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, 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, 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, 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

DreierMagnetVentil

public DreierMagnetVentil()
The Constructor
Method Detail

addActionListener

public void addActionListener(java.awt.event.ActionListener listener)
Allows this component to be wired at design time with action listeners

removeActionListener

public void removeActionListener(java.awt.event.ActionListener listener)
Allows this component to be un-wired at design time with action listeners

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

propertyChange

public final void propertyChange(java.beans.PropertyChangeEvent event)
Method for property change, interprets the GasArt and the Status

paint

public final void paint(java.awt.Graphics g)
Method to draw all on the screen
Overrides:
paint in class java.awt.Container

getNewSize

public final java.awt.Dimension getNewSize()
Method for getting the new size

getMinimumSize

public final java.awt.Dimension getMinimumSize()
Method for getting the minium size
Overrides:
getMinimumSize in class java.awt.Container

setVentilnummer

public void setVentilnummer(int newVentilnummer)
Method to set the kettlenumber between 1 - 3

getVentilnummer

public int getVentilnummer()

sendData

public void sendData()
Method to send the data in the Vector v1values

setGasname

public void setGasname(int newGasname)
Method to set the Gasname which is getting from propertychange

getGasname

public int getGasname()
Method for getting the Gasname which is selected

setEingang

public void setEingang(int newEingang)
Method to set the input

getEingang

public int getEingang()
Method to get the input

setDesign

public void setDesign(int newDesign)
Method to set the Design between 1;2;3;4

getDesign

public int getDesign()
Method to get the Design

setEnabled

public void setEnabled(boolean newEnabled)
Method to set the kettle enabled
Overrides:
setEnabled in class java.awt.Component

isEnabled

public boolean isEnabled()
Method to get the kettle Status
Overrides:
isEnabled in class java.awt.Component

setShownumber

public void setShownumber(boolean newShownumber)
Method to set the number in kettle shown

isShownumber

public boolean isShownumber()
Method to getting information about the showing of the numbers

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de