c

scala.swing

Slider

class Slider extends Component with Wrapper with Publisher

Lets users select a value from a given range. Visually, this is represented as a draggable knob on a horizontal or vertical bar.

Fires a ValueChanged event whenever the slider's value changes and when the knob is released.

See also

javax.swing.JSlider

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Slider
  2. Wrapper
  3. Orientable
  4. Wrapper
  5. Oriented
  6. Component
  7. UIElement
  8. LazyPublisher
  9. Publisher
  10. Reactor
  11. Proxy
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Slider()

Value Members

  1. object keys extends Publisher
    Definition Classes
    Component
  2. object mouse

    Contains publishers for various mouse events.

    Contains publishers for various mouse events. They are separated for efficiency reasons.

    Definition Classes
    Component
  3. def adjusting: Boolean
  4. def background: Color
    Definition Classes
    UIElement
  5. def background_=(c: Color): Unit
    Definition Classes
    UIElement
  6. def border: Border
    Definition Classes
    Component
  7. def border_=(b: Border): Unit
    Definition Classes
    Component
  8. def bounds: Rectangle
    Definition Classes
    UIElement
  9. def componentOrientation: ComponentOrientation
    Definition Classes
    UIElement
  10. def componentOrientation_=(x: ComponentOrientation): Unit
    Definition Classes
    UIElement
  11. def cursor: Cursor
    Definition Classes
    UIElement
  12. def cursor_=(c: Cursor): Unit
    Definition Classes
    UIElement
  13. def deafTo(ps: Publisher*): Unit

    Installed reaction won't receive events from the given publisher anylonger.

    Installed reaction won't receive events from the given publisher anylonger.

    Definition Classes
    Reactor
  14. def displayable: Boolean
    Definition Classes
    UIElement
  15. def enabled: Boolean
    Definition Classes
    Component
  16. def enabled_=(b: Boolean): Unit
    Definition Classes
    Component
  17. def equals(that: Any): Boolean
    Definition Classes
    Proxy → Any
  18. def extent: Int
  19. def extent_=(v: Int): Unit
  20. def focusable: Boolean
    Definition Classes
    Component
  21. def focusable_=(b: Boolean): Unit
    Definition Classes
    Component
  22. def font: Font
    Definition Classes
    UIElement
  23. def font_=(f: Font): Unit
    Definition Classes
    UIElement
  24. def foreground: Color
    Definition Classes
    UIElement
  25. def foreground_=(c: Color): Unit
    Definition Classes
    UIElement
  26. def hasFocus: Boolean
    Definition Classes
    Component
  27. def hashCode(): Int
    Definition Classes
    Proxy → Any
  28. def ignoreRepaint: Boolean
    Definition Classes
    UIElement
  29. def ignoreRepaint_=(b: Boolean): Unit
    Definition Classes
    UIElement
  30. var initP: JComponent
    Definition Classes
    Component
  31. def inputVerifier: (Component) ⇒ Boolean
    Definition Classes
    Component
  32. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit
    Definition Classes
    Component
  33. def labels: Map[Int, Label]
  34. def labels_=(l: Map[Int, Label]): Unit
  35. def listenTo(ps: Publisher*): Unit

    Listen to the given publisher as long as deafTo isn't called for them.

    Listen to the given publisher as long as deafTo isn't called for them.

    Definition Classes
    Reactor
  36. def locale: Locale
    Definition Classes
    UIElement
  37. def location: Point
    Definition Classes
    UIElement
  38. def locationOnScreen: Point
    Definition Classes
    UIElement
  39. def majorTickSpacing: Int
  40. def majorTickSpacing_=(v: Int): Unit
  41. def max: Int
  42. def max_=(v: Int): Unit
  43. def maximumSize: Dimension
    Definition Classes
    UIElement
  44. def maximumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  45. def min: Int
  46. def min_=(v: Int): Unit
  47. def minimumSize: Dimension
    Definition Classes
    UIElement
  48. def minimumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  49. def minorTickSpacing: Int
  50. def minorTickSpacing_=(v: Int): Unit
  51. def name: String
    Definition Classes
    Component
  52. def name_=(s: String): Unit
    Definition Classes
    Component
  53. def opaque: Boolean
    Definition Classes
    Component
  54. def opaque_=(b: Boolean): Unit
    Definition Classes
    Component
  55. def orientation: Orientation.Value
    Definition Classes
    WrapperOriented
  56. def orientation_=(o: Orientation.Value): Unit
    Definition Classes
    WrapperOrientable
  57. def paint(g: Graphics2D): Unit
    Definition Classes
    Component
  58. def paintLabels: Boolean
  59. def paintLabels_=(v: Boolean): Unit
  60. def paintTicks: Boolean
  61. def paintTicks_=(v: Boolean): Unit
  62. def paintTrack: Boolean
  63. def paintTrack_=(v: Boolean): Unit
  64. lazy val peer: JSlider

    The underlying Swing peer.

    The underlying Swing peer.

    Definition Classes
    SliderWrapperComponentUIElement
  65. def preferredSize: Dimension
    Definition Classes
    UIElement
  66. def preferredSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  67. def publish(e: Event): Unit

    Notify all registered reactions.

    Notify all registered reactions.

    Definition Classes
    Publisher
  68. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  69. def repaint(rect: Rectangle): Unit
    Definition Classes
    UIElement
  70. def repaint(): Unit
    Definition Classes
    UIElement
  71. def requestFocus(): Unit
    Definition Classes
    Component
  72. def requestFocusInWindow(): Boolean
    Definition Classes
    Component
  73. def revalidate(): Unit
    Definition Classes
    Component
  74. def self: java.awt.Component
    Definition Classes
    UIElement → Proxy
  75. def showing: Boolean
    Definition Classes
    UIElement
  76. def size: Dimension
    Definition Classes
    UIElement
  77. def snapToTicks: Boolean
  78. def snapToTicks_=(v: Boolean): Unit
  79. def subscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  80. def toString(): String
    Definition Classes
    Component → Proxy → AnyRef → Any
  81. def toolkit: Toolkit
    Definition Classes
    UIElement
  82. def tooltip: String
    Definition Classes
    Component
  83. def tooltip_=(t: String): Unit
    Definition Classes
    Component
  84. def unsubscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  85. def validate(): Unit
    Definition Classes
    UIElement
  86. def value: Int
  87. def value_=(v: Int): Unit
  88. def visible: Boolean
    Definition Classes
    UIElement
  89. def visible_=(b: Boolean): Unit
    Definition Classes
    UIElement
  90. def xLayoutAlignment: Double

    Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.

    Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.

    Definition Classes
    Component
  91. def xLayoutAlignment_=(x: Double): Unit
    Definition Classes
    Component
  92. def yLayoutAlignment: Double
    Definition Classes
    Component
  93. def yLayoutAlignment_=(y: Double): Unit
    Definition Classes
    Component