Class dpscomponents.slider.FormatSlider
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dpscomponents.slider.FormatSlider

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----dpscomponents.slider.MightySlider
                           |
                           +----dpscomponents.slider.FormatSlider

public class FormatSlider
extends MightySlider
Simple class to override the paint method of MightySlider so as to format the slider value with a specified number of digits.
Version:
1.0 04-09-97
Author:
Daren Stotler
See Also:
MightySlider, RoundedDouble

Variable Index

 o numDigits_

Constructor Index

 o FormatSlider()

Method Index

 o paint(Graphics)
An internal method used to handle repaint events.
 o SetDoubleMode(boolean)
Provided this method for backward compatibility in case it gets used.
 o SetNumDigits(int)
Sets the number of digits to the right of the decimal to appear in the slider value.

Variables

 o numDigits_
  protected int numDigits_

Constructors

 o FormatSlider
  public FormatSlider()

Methods

 o paint
  public void paint(Graphics g)
An internal method used to handle repaint events.
Overrides:
paint in class MightySlider
 o SetNumDigits
  public void SetNumDigits(int n)
Sets the number of digits to the right of the decimal to appear in the slider value.
 o SetDoubleMode
  public void SetDoubleMode(boolean theMode)
Provided this method for backward compatibility in case it gets used. Note that setting the number of digits = 0 is the same as doubleMode = false and that setting the number of digits = 4 will fill the string, unlike the original.
Overrides:
SetDoubleMode in class MightySlider
See Also:
SetDoubleMode

All Packages  Class Hierarchy  This Package  Previous  Next  Index