Up ] First Applet ] First Application ] First Project ] Models ] Keyframe ] Linear ] Torus Knot ] Pick Events ] Camera Events ] Color Selector ] [ Slider ] Ruler ] Vector Field ] Polygon Sets ] Scalar Field ] Ode ] Root Finder ] ParmSurface ] L-System ] Texture ] Refinement ] Images ] Transform ]

Sliders for integers and doubles in JavaView

This example shows, how to use the JavaView slider classes "PuInteger" and "PuDouble" for interactively manipulating integer and double values.

Each PuInteger or PuDouble slider consists of a label, a textfield, a slider with two arrow buttons, and a "C"-Button to get it's configuration panel. To change the value move the slider with left mouse button pressed, use the arrow buttons, click the mouse inside the slider bar or type a new value into the textfield.

Controls in Configuration panel:
Textfield "Minimum" Defines the minimum value, the slider can be set to.
Textfield "Maximum" Defines the maximum value, the slider can be set to.
Textfield "Unit Incr" Defines the increment or decrement for the value of the slider, when the right or left arrow button is pressed.
Textfield "Block Incr" Defines the increment or decrement for the value of the slider, when the left mouse button gets pressed inside the slider bar left or right from the slider.
Textfield "Accuracy" The accuracy for the value shown in the textfield in the left of the slider.
Button "OK" Confirm new adjusted configuration and destroy the configuration panel.
Button "Cancel" Destroy configuration panel without changing the configuration of the slider.

As an example how to use PuInteger or PuDouble in your own projects, view source code: PaSlider.java of applet, PjSlider.java of project, PjSlider_IP.java of info panel.