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.

source: Slider.scala
    see also:
  1. javax . swing.JSlider

Inherited
  1. Hide All
  2. Show all
  1. Wrapper
  2. Orientable
  3. Wrapper
  4. Oriented
  5. Component
  6. UIElement
  7. LazyPublisher
  8. Publisher
  9. Reactor
  10. Proxy
  11. AnyRef
  12. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new Slider()

Type Members

  1. type OrientedMixin = AnyRef {...}

  2. trait SuperMixin extends JComponent

    This trait is used to redirect certain calls from the peer to the wrapper and back .

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. lazy val Mouse: mouse

  9. def adjusting: Boolean

  10. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  11. def background: Color

  12. def background_=(c: Color): Unit

  13. def border: Border

  14. def border_=(b: Border): Unit

  15. def bounds: Rectangle

  16. def clone(): AnyRef

    This method creates and returns a copy of the receiver object .

  17. def cursor: Cursor

  18. def cursor_=(c: Cursor): Unit

  19. def deafTo(ps: Publisher*): Unit

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

  20. def displayable: Boolean

  21. def enabled: Boolean

  22. def enabled_=(b: Boolean): Unit

  23. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  24. def equals(that: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  25. def extent: Int

  26. def extent_=(v: Int): Unit

  27. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object .

  28. def focusable: Boolean

  29. def focusable_=(b: Boolean): Unit

  30. def font: Font

  31. def font_=(f: Font): Unit

  32. def foreground: Color

  33. def foreground_=(c: Color): Unit

  34. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object .

  35. def hasFocus: Boolean

  36. def hashCode(): Int

    Returns a hash code value for the object .

  37. def ignoreRepaint: Boolean

  38. def ignoreRepaint_=(b: Boolean): Unit

  39. var initP: JComponent

  40. def inputVerifier: (Component) ⇒ Boolean

  41. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit

  42. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  43. object keys extends Publisher

  44. def labels: Map[Int, Label]

  45. def labels_=(l: Map[Int, Label]): Unit

  46. def listenTo(ps: Publisher*): Unit

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

  47. val listeners: RefSet[PartialFunction[Event, Unit]] {...}

  48. def locale: Locale

  49. def location: Point

  50. def locationOnScreen: Point

  51. def majorTickSpacing: Int

  52. def majorTickSpacing_=(v: Int): Unit

  53. def max: Int

  54. def max_=(v: Int): Unit

  55. def maximumSize: Dimension

  56. def maximumSize_=(x: Dimension): Unit

  57. def min: Int

  58. def min_=(v: Int): Unit

  59. def minimumSize: Dimension

  60. def minimumSize_=(x: Dimension): Unit

  61. def minorTickSpacing: Int

  62. def minorTickSpacing_=(v: Int): Unit

  63. object mouse extends AnyRef

    Contains publishers for various mouse events .

  64. def name: String

  65. def name_=(s: String): Unit

  66. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  67. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor .

  68. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor .

  69. def onFirstSubscribe(): Unit

  70. def onLastUnsubscribe(): Unit

  71. def opaque: Boolean

  72. def opaque_=(b: Boolean): Unit

  73. def orientation: Value

  74. def orientation_=(o: Value): Unit

  75. def paint(g: Graphics2D): Unit

  76. def paintBorder(g: Graphics2D): Unit

  77. def paintChildren(g: Graphics2D): Unit

  78. def paintComponent(g: Graphics2D): Unit

    For custom painting, users should usually override this method .

  79. def paintLabels: Boolean

  80. def paintLabels_=(v: Boolean): Unit

  81. def paintTicks: Boolean

  82. def paintTicks_=(v: Boolean): Unit

  83. def paintTrack: Boolean

  84. def paintTrack_=(v: Boolean): Unit

  85. lazy val peer: JSlider

    The underlying Swing peer .

  86. def preferredSize: Dimension

  87. def preferredSize_=(x: Dimension): Unit

  88. def publish(e: Event): Unit

    Notify all registered reactions .

  89. val reactions: Reactions

    All reactions of this reactor .

  90. def repaint(rect: Rectangle): Unit

  91. def repaint(): Unit

  92. def requestFocus(): Unit

  93. def requestFocusInWindow(): Boolean

  94. def revalidate(): Unit

  95. def self: Component

  96. def showing: Boolean

  97. def size: Dimension

  98. def size_=(dim: Dimension): Unit

  99. def snapToTicks: Boolean

  100. def snapToTicks_=(v: Boolean): Unit

  101. def subscribe(listener: PartialFunction[Event, Unit]): Unit

  102. def synchronized[T0](arg0: T0): T0

  103. def toString(): String

    Returns a string representation of the object .

  104. def toolkit: Toolkit

  105. def tooltip: String

  106. def tooltip_=(t: String): Unit

  107. def unsubscribe(listener: PartialFunction[Event, Unit]): Unit

  108. def value: Int

  109. def value_=(v: Int): Unit

  110. def visible: Boolean

  111. def visible_=(b: Boolean): Unit

  112. def wait(): Unit

  113. def wait(arg0: Long, arg1: Int): Unit

  114. def wait(arg0: Long): Unit

  115. def xLayoutAlignment: Double

    Used by certain layout managers, e .

  116. def xLayoutAlignment_=(x: Double): Unit

  117. def yLayoutAlignment: Double

  118. def yLayoutAlignment_=(y: Double): Unit