logo
Overview  First Applet  First Application   First Graph  First Project  Models  Loader  Keyframe  Linear Alg  Torus Knot  Picking  Camera Events  Color Selector  Slider  Ruler  Vector Field  Polygon Sets  Scalar Field   ODE  Root Finder  Parm Curve  Parm Surface  L-System  Texture  Refinement  4D Transform  Size Vertex  Size Polygon  Size Edge 

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 text field, 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 text field.

Controls in Configuration panel:

Text field "Minimum" Defines the minimum value, the slider can be set to.
Text field "Maximum" Defines the maximum value, the slider can be set to.
Text field "Unit Incr" Defines the increment or decrement for the value of the slider, when the right or left arrow button is pressed.
Text field "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.
Text field "Accuracy" The accuracy for the value shown in the text field 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.

View source code:
PaSlider.java of applet,
PjSlider.java of project,
PjSlider_IP.java of project panel.

 
© 1997-2017 Last modified: 22.06.2017 --- www.javaview.de --- The JavaView Project