vipratech.beans.standardbeans
Class ScaleButton

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--vipratech.awt.VCanvas
                    |
                    +--vipratech.beans.standardbeans.ScaleButton

public class ScaleButton
extends VCanvas

This bean show a button which multiple some values in the selected range.

It communicate with other beans about PropertyValue "Scale", the first value is the actual displayed number.

Version:
0.9, July 25, 2001
Author:
Hendrik Dathe   dathe@chemie.uni-leipzig.de
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
ScaleButton()
          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)
          Allows property change listeners to be registered at design time.
 void drawButton(java.awt.Graphics g)
          Method which draw the button
 java.awt.Color getBackround()
          Method return the background
 java.awt.Dimension getMinimumSize()
          Method return the Minimumsize
 java.awt.Dimension getNewSize()
          Method return the Newsize
 int getScale()
          Method return the scalerange
 int getScaleend()
          Method return the scaleend
 int getScalestart()
          Method return the scalestart
 int getScalesteps()
          Method return scalesteps
 int getValue()
          Method return the value
 boolean isEnabled()
          Method return the status
 void paint(java.awt.Graphics g)
          Method for showing all on the screen
 void propertyChange(java.beans.PropertyChangeEvent event)
          Method for handling the propertychange events : locale
 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)
          Allows property change listeners to be de-registered at design time.
 void sendData()
          Method for sending the data
 void setBackround(java.awt.Color newBackround)
          Method for seting the background
 void setEnabled(boolean newEnabled)
          Method for set the bean enabled
 void setScaleend(int newScaleend)
          Method set the scaleend
 void setScalestart(int newScalestart)
          Method set the scalestart
 void setScalesteps(int newScalesteps)
          Method set scalesteps
 
Methods inherited from class java.awt.Canvas
addNotify
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, 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, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, 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, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, 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

ScaleButton

public ScaleButton()
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)
Allows property change listeners to be registered at design time.
Overrides:
addPropertyChangeListener in class java.awt.Component

removePropertyChangeListener

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

propertyChange

public final void propertyChange(java.beans.PropertyChangeEvent event)
Method for handling the propertychange events : locale

getNewSize

public final java.awt.Dimension getNewSize()
Method return the Newsize

getMinimumSize

public final java.awt.Dimension getMinimumSize()
Method return the Minimumsize
Overrides:
getMinimumSize in class java.awt.Component

paint

public void paint(java.awt.Graphics g)
Method for showing all on the screen
Overrides:
paint in class java.awt.Canvas

drawButton

public void drawButton(java.awt.Graphics g)
Method which draw the button

setEnabled

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

isEnabled

public boolean isEnabled()
Method return the status
Overrides:
isEnabled in class java.awt.Component

sendData

public void sendData()
Method for sending the data

setBackround

public void setBackround(java.awt.Color newBackround)
Method for seting the background

getBackround

public java.awt.Color getBackround()
Method return the background

getScale

public int getScale()
Method return the scalerange

setScalestart

public void setScalestart(int newScalestart)
Method set the scalestart

getScalestart

public int getScalestart()
Method return the scalestart

setScaleend

public void setScaleend(int newScaleend)
Method set the scaleend

getScaleend

public int getScaleend()
Method return the scaleend

setScalesteps

public void setScalesteps(int newScalesteps)
Method set scalesteps

getScalesteps

public int getScalesteps()
Method return scalesteps

getValue

public int getValue()
Method return the value

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de