vipratech.beans.standardbeans.resources
Class HorizontalSliderButton
java.lang.Object
|
+--vipratech.beans.standardbeans.resources.HorizontalSliderButton
- public class HorizontalSliderButton
- extends java.lang.Object
- implements InterfaceProperties, java.io.Serializable
available: HorizontalSliderButton.BUTTON_KNOB and
The HorizontalSliderButton.class is used to instantiate a button object for
vipratech.beans.HorizontalSlider. Two button sytyles are
HorizontalSliderButton.BUTTON_POINTER.
- Version:
- 1.02, March 08, 2001
- Author:
- Warwick Bailey
warwick-bailey@bigfoot.com
- See Also:
HorizontalSlider
, Serialized Form
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 |
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
HorizontalSliderButton
public HorizontalSliderButton()
- Constructor.
draw
public final 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.
http://leipzig.vernetztes-studium.de