The slider Bean has the following information and Customizer functions.
See
"Package Guide"- JFSlider
Property information
Name | Type | Reference | Setting | Explanation |
---|---|---|---|---|
background | java.awt | Y | Y | Background color |
blockIncrement | int | Y | Y | Amount of knob moved by key operation |
componentOrientation | java.awt | Y | Y | The orientation of the string. It depends on the language |
drawFocus | boolean | Y | Y | Whether to draw focus border |
enableMenu | boolean | Y | Y | Whether to display the popup menu |
enableToolTip | boolean | Y | Y | Whether to display the tool tip |
enabled | boolean | Y | Y | Whether enabled |
focusTraversalKeysEnabled | boolean | Y | Y | Whether the focus traversal key is available |
focusable | boolean | Y | Y | Whether the focus can be set |
font | java.awt | Y | Y | Font |
foreground | java.awt | Y | Y | Foreground color |
graduationInterval | int | Y | Y | Scale value interval |
graduationStyle | int | Y | Y | Scale display style |
ignoreRepaint | boolean | Y | Y | Whether the paint message of the operating system should be ignored |
knobHeight | int | Y | Y | Knob height |
knobStyle | int | Y | Y | Knob display style |
knobWidth | int | Y | Y | Knob width |
locale | java.util | Y | Y | Locale information |
maximum | int | Y | Y | Maximum value |
minimum | int | Y | Y | Minimum value |
name | java.lang | Y | Y | Name |
numGraduation | int | Y | Number of scales | |
orientation | int | Y | Y | Orientation |
remoteFont | boolean | Y | Whether the registered font is a remote font | |
selectEnd | int | Y | Y | Last value in the selected range |
selectRange | boolean | Y | Y | Range selection enabled/disabled |
selectStart | int | Y | Y | First value in the selected range |
sliderSpace | int | Y | Y | Between the component boundary and slider |
toolTipText | java.lang | Y | Y | Tool tip text |
unitIncrement | int | Y | Y | Amount of knob moved by mouse operation |
value | int | Y | Y | Value pointed to by the knob |
visible | boolean | Y | Y | Whether visible |
visibleAmount | int | Y | Y | Length selected from the beginning of the range |
wheelScrollingEnabled | boolean | Y | Y | Whether to enable knob's operations of mouse wheel |
Event information
Name | Listener | Addition/removal | Method | Explanation |
---|---|---|---|---|
adjustment | java.awt.event | addAdjustmentListener | adjustmentValueChanged | Is issued when the value is changed by the mouse or key. |
component | java.awt.event | addComponentListener | componentResized | Is issued when the component status changes. |
componentMoved | ||||
componentShown | ||||
componentHidden | ||||
focus | java.awt.event | addFocusListener | focusGained | Is issued when the focus moves. |
focusLost | ||||
inputMethod | java.awt.event | addInputMethodListener | caretPositionChanged | Is issued when the input method status changes. |
inputMethodTextChanged | ||||
key | java.awt.event | addKeyListener | keyTyped | Is issued by key operation. |
keyPressed | ||||
keyReleased | ||||
mouse | java.awt.event | addMouseListener | mouseClicked | Is issued by mouse operation. |
mousePressed | ||||
mouseReleased | ||||
mouseEntered | ||||
mouseExited | ||||
mouseMotion | java.awt.event | addMouseMotionListener | mouseDragged | Is issued when the mouse moves. |
mouseMoved | ||||
mouseWheel | java.awt.event | addMouseWheelListener | mouseWheelMoved | Is issued by mouse wheel operation. |
propertyChange | java.beans | addPropertyChangeListener | propertyChange | Is issued when the property changes. |
Method information
Name | Parameters | Explanation |
---|---|---|
hideToolTip | Erases the tool tip. | |
requestFocus | Requests an input focus. | |
showToolTip | java.lang | Displays the tool tip. |
java.awt | ||
java.awt | ||
long | ||
transferFocus | Moves the focus to the next component. |
Customizer
Scale
Set the slider scale.
Set the slider scale interval. Specify from 1 to (maximum value minus minimum value) as the slider scale interval.
Select the slider scale display position from Top/Left, Bottom/Right, Both, and None.
Knob
Set the slider knob information.
Set the amount of knob moved by key operation. Specify from 1 to 2147483647 as the amount of knob moved by key operation.
Set the amount of knob moved by mouse operation. Specify from 1 to 2147483647 as the amount of knob moved by mouse operation.
Set the knob width with a pixel value. Specify from 1 to 2147483647 as the knob width.
Note
A system sometimes becomes unstable when very big value is established in the knob width.
Set the knob height with a pixel value. Specify from 1 to 2147483647 as the knob height.
Note
A system sometimes becomes unstable when very big value is established in the knob height.
Select the display style of knob from Top/Left orientation, Bottom/Right orientation, Both orientations, and Rectangle.
Mode
Set the slider mode.
Set whether to draw the focus border. If this item is checked, the focus border is drawn.
Set whether to enable range selection. If this item is checked, the range can be selected.
Set whether to enable the knob's move with mouse wheel. If checked, the knob's moving is enabled with mouse wheel operation.
Paint
Set the slider draw information.
Select the slider orientation from Vertical/Horizontal.
Set the distance between the component boundary and the slider with a pixel value. In case of Horizontal specify from 0 to (component width minus 10)/2 , in case of Vertical specify from 0 to (component height minus 10)/2 as the distance between the component boundary and the slider.
Value
Set the slider value information.
Set the current value of the slider. Specify from -2147483648 to 2147483647 as the value.
Set the maximum value of the slider. Specify from -2147483648 to 2147483647 as the maximum value.
Set the minimum value of the slider. Specify from -2147483648 to 2147483647 as the minimum value.
Note
A system sometimes becomes unstable when very big value is established in 'Value' of the slider, 'Maximum Value' and 'Minimum Value' of range of value.
When the range can be selected (when the 'Range Selection' of the 'mode' property is checked), set the first value in the selected range. Specify from the minimum value to the maximum value as the first value in the selected range.
When the range can be selected (when the 'Range Selection' of the 'mode' property is checked), set the last value in the selected range. Specify from the minimum value to the maximum value as the last value in the selected range.