c

scala.swing

Label

class Label extends Component

A label component that display either a text, an icon, or both.

See also

javax.swing.JLabel

Linear Supertypes
Component, UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Label
  2. Component
  3. UIElement
  4. LazyPublisher
  5. Publisher
  6. Reactor
  7. Proxy
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Label(s: String)
  2. new Label()
  3. new Label(text0: String, icon0: Icon, align: Alignment.Value)

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 background: Color
    Definition Classes
    UIElement
  4. def background_=(c: Color): Unit
    Definition Classes
    UIElement
  5. def border: Border
    Definition Classes
    Component
  6. def border_=(b: Border): Unit
    Definition Classes
    Component
  7. def bounds: Rectangle
    Definition Classes
    UIElement
  8. def componentOrientation: ComponentOrientation
    Definition Classes
    UIElement
  9. def componentOrientation_=(x: ComponentOrientation): Unit
    Definition Classes
    UIElement
  10. def cursor: Cursor
    Definition Classes
    UIElement
  11. def cursor_=(c: Cursor): Unit
    Definition Classes
    UIElement
  12. 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
  13. def disabledIcon: Icon
  14. def disabledIcon_=(icon: Icon): Unit
  15. def displayable: Boolean
    Definition Classes
    UIElement
  16. def displayedMnemonicIndex: Int
  17. def displayedMnemonicIndex_=(index: Int): Unit
  18. def enabled: Boolean
    Definition Classes
    Component
  19. def enabled_=(b: Boolean): Unit
    Definition Classes
    Component
  20. def equals(that: Any): Boolean
    Definition Classes
    Proxy → Any
  21. def focusable: Boolean
    Definition Classes
    Component
  22. def focusable_=(b: Boolean): Unit
    Definition Classes
    Component
  23. def font: Font
    Definition Classes
    UIElement
  24. def font_=(f: Font): Unit
    Definition Classes
    UIElement
  25. def foreground: Color
    Definition Classes
    UIElement
  26. def foreground_=(c: Color): Unit
    Definition Classes
    UIElement
  27. def hasFocus: Boolean
    Definition Classes
    Component
  28. def hashCode(): Int
    Definition Classes
    Proxy → Any
  29. def horizontalAlignment: Alignment.Value

    See also

    javax.swing.JLabel#getHorizontalAlignment()

  30. def horizontalAlignment_=(x: Alignment.Value): Unit

    See also

    javax.swing.JLabel#setHorizontalAlignment()

  31. def horizontalTextPosition: Alignment.Value
  32. def horizontalTextPosition_=(x: Alignment.Value): Unit
  33. def icon: Icon
  34. def iconTextGap: Int
  35. def iconTextGap_=(gap: Int): Unit
  36. def icon_=(i: Icon): Unit
  37. def ignoreRepaint: Boolean
    Definition Classes
    UIElement
  38. def ignoreRepaint_=(b: Boolean): Unit
    Definition Classes
    UIElement
  39. var initP: JComponent
    Definition Classes
    Component
  40. def inputVerifier: (Component) ⇒ Boolean
    Definition Classes
    Component
  41. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit
    Definition Classes
    Component
  42. 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
  43. def locale: Locale
    Definition Classes
    UIElement
  44. def location: Point
    Definition Classes
    UIElement
  45. def locationOnScreen: Point
    Definition Classes
    UIElement
  46. def maximumSize: Dimension
    Definition Classes
    UIElement
  47. def maximumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  48. def minimumSize: Dimension
    Definition Classes
    UIElement
  49. def minimumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  50. def name: String
    Definition Classes
    Component
  51. def name_=(s: String): Unit
    Definition Classes
    Component
  52. def opaque: Boolean
    Definition Classes
    Component
  53. def opaque_=(b: Boolean): Unit
    Definition Classes
    Component
  54. def paint(g: Graphics2D): Unit
    Definition Classes
    Component
  55. lazy val peer: JLabel

    The underlying Swing peer.

    The underlying Swing peer.

    Definition Classes
    LabelComponentUIElement
  56. def preferredSize: Dimension
    Definition Classes
    UIElement
  57. def preferredSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  58. def publish(e: Event): Unit

    Notify all registered reactions.

    Notify all registered reactions.

    Definition Classes
    Publisher
  59. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  60. def repaint(rect: Rectangle): Unit
    Definition Classes
    UIElement
  61. def repaint(): Unit
    Definition Classes
    UIElement
  62. def requestFocus(): Unit
    Definition Classes
    Component
  63. def requestFocusInWindow(): Boolean
    Definition Classes
    Component
  64. def revalidate(): Unit
    Definition Classes
    Component
  65. def self: java.awt.Component
    Definition Classes
    UIElement → Proxy
  66. def showing: Boolean
    Definition Classes
    UIElement
  67. def size: Dimension
    Definition Classes
    UIElement
  68. def subscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  69. def text: String
  70. def text_=(s: String): Unit
  71. def toString(): String
    Definition Classes
    Component → Proxy → AnyRef → Any
  72. def toolkit: Toolkit
    Definition Classes
    UIElement
  73. def tooltip: String
    Definition Classes
    Component
  74. def tooltip_=(t: String): Unit
    Definition Classes
    Component
  75. def unsubscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  76. def validate(): Unit
    Definition Classes
    UIElement
  77. def verticalAlignment: Alignment.Value
  78. def verticalAlignment_=(x: Alignment.Value): Unit
  79. def verticalTextPosition: Alignment.Value
  80. def verticalTextPosition_=(x: Alignment.Value): Unit
  81. def visible: Boolean
    Definition Classes
    UIElement
  82. def visible_=(b: Boolean): Unit
    Definition Classes
    UIElement
  83. def xAlignment: Alignment.Value

    The alignment of the label's contents relative to its bounding box.

  84. def xAlignment_=(x: Alignment.Value): Unit
  85. 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
  86. def xLayoutAlignment_=(x: Double): Unit
    Definition Classes
    Component
  87. def yAlignment: Alignment.Value
  88. def yAlignment_=(x: Alignment.Value): Unit
  89. def yLayoutAlignment: Double
    Definition Classes
    Component
  90. def yLayoutAlignment_=(y: Double): Unit
    Definition Classes
    Component