Main: Elements Slider

Properties

Slider  
Main  
Name Description Values accepted Default
Variable The value displayed by the element. A constant or variable of type double or int.
Initial Value The initial value. A constant or variable of type double or int.
Minimum The minimum value that can be displayed. A constant or variable of type double or int.
Maximum The maximum value that can be displayed. A constant or variable of type double or int.
Format The format used to display the value, i.e. the number of decimal digits with which to display the value. Type 0.0 with one or more zeros after the point. or 0.00E00 for scientific notation
Orientation Either vertical or horizontal. Type VERTICAL or HORIZONTAL or use the editor provided.
Ticks  
Name Description Values accepted Default
Ticks The number of ticks to be displayed between the extrema. A constant or variable of type int.
Ticks Format The format used to display the ticks. Type 0.0 with one or more zeros after the point.
Closest Whether the knob resolves to the closest tick. A boolean variable or one of the constants true or false.
Interaction  
Name Description Values accepted Default
Enabled Whether the element is responsive to the user action. A boolean variable or one of the constants true or false.
On Press The action to invoke when the element is pressed. The Java code to invoke for the action.
On Drag The action to invoke when the element is dragged. The Java code to invoke for the action.
On Release The action to invoke when the element is released. The Java code to invoke for the action.
Graphical Aspect  
Name Description Values accepted Default
Visible The visibility of the element. A boolean variable or one of the constants true or false.
Size The double[] array with the size of the frame in each direction. Type the two size values or use the editor provided.
Background The background color for the element. Use the editor provided or read about colors.
Foreground The color to use when drawing or writing in the element. Use the editor provided or read about colors.
Font The font used to display text in the element. Use the editor provided to select name, style and size of the font.
Tooltip Text displayed when the mouse is over the element. A string constant or variable.

 

Copyright © 2007–2017 Francisco Esquembre et al.

Retrieved from http://www.um.es/fem/EjsWiki/Main/ElementsSlider

Page last modified on October 17, 2010, at 07:45 PM