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. If a
negative number of digits is requested, the text and the corresponding
text area are not drawn at all.
- Version:
- $Revision: 1.1.1.1 $, $Date: 1999/11/15 20:37:48 $.
- Author:
- Daren Stotler
- See Also:
- MightySlider
-
numDigits_
-
-
FormatSlider()
-
-
paint(Graphics)
- An internal method used to handle repaint events.
-
SetDoubleMode(boolean)
- Provided this method for backward compatibility in case it gets used.
-
SetNumDigits(int)
- Sets the number of digits to the right of the decimal to appear
in the slider value.
numDigits_
protected int numDigits_
FormatSlider
public FormatSlider()
paint
public void paint(Graphics g)
- An internal method used to handle repaint events.
- Overrides:
- paint in class MightySlider
SetNumDigits
public void SetNumDigits(int n)
- Sets the number of digits to the right of the decimal to appear
in the slider value.
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