vipratech.beans.standardbeans.resources
Class VerticalSliderButton

java.lang.Object
  |
  +--vipratech.beans.standardbeans.resources.VerticalSliderButton

public class VerticalSliderButton
extends java.lang.Object
implements InterfaceProperties, java.io.Serializable

The VerticalSliderButton.class is used to instantiate a button object for vipratech.beans.VerticalSliderCanvas. Two button sytyles are available: VerticalSliderButton.BUTTON_KNOB and VerticalSliderButton.BUTTON_POINTER.

Version:
1.01, February, 2000
Author:
Warwick Bailey   warwick-bailey@bigfoot.com
See Also:
VerticalSlider, Serialized Form

Field Summary
static int BUTTON_KNOB
          A knob style button.
static int BUTTON_POINTER
          A pointer style button.
static int HEIGHT
           
static int WIDTH
           
 
Constructor Summary
VerticalSliderButton()
          Constructor.
 
Method Summary
 void draw(java.awt.Graphics g, int x, int y)
          Draws the thumb button at the required coordinates.
 void setActive(boolean active)
          Sets the thumb button dispay to active when a mouse is on the button.
 void setButtonStyle(int buttonStyle)
          Sets the thumb button dispay to either a knob or a pointer.
 void setEnabled(boolean enabled)
          Toggles enabled/disabled state.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUTTON_KNOB

public static final int BUTTON_KNOB
A knob style button.

BUTTON_POINTER

public static final int BUTTON_POINTER
A pointer style button.

WIDTH

public static final int WIDTH

HEIGHT

public static final int HEIGHT
Constructor Detail

VerticalSliderButton

public VerticalSliderButton()
Constructor.
Method Detail

draw

public void draw(java.awt.Graphics g,
                 int x,
                 int y)
Draws the thumb button at the required coordinates.

setActive

public final void setActive(boolean active)
Sets the thumb button dispay to active when a mouse is on the button.

setEnabled

public final void setEnabled(boolean enabled)
Toggles enabled/disabled state.

setButtonStyle

public final void setButtonStyle(int buttonStyle)
Sets the thumb button dispay to either a knob or a pointer.

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de