Class/Object

cogdebugger.ui.components

PanPane

Related Docs: object PanPane | package components

Permalink

class PanPane extends ScrollPane

A ScrollPane that scrolls in response to mouse drags on its viewport, in addition to the standard interactions with its scrollbars. The captured mouse drag events act on the scrollbars directly, so mouse-pan and scrollbar-pan should stay in sync.

---

Note: This is the most robust implementation so far, in that children with tooltips enabled won't interfere with the mouse drag. It's built using an AWTEventListener, which gets ALL mouse events produced by the app, regardless of whether another listener somewhere is getting the events first (e.g. a tooltip enabled child). One small quirk of this approach is that you can initiate a pan by dragging from the blank corner formed by the horizontal and vertical scrollbars.

Created by gonztobi on 3/11/14.

Linear Supertypes
ScrollPane, Container, Component, UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PanPane
  2. ScrollPane
  3. Container
  4. Component
  5. UIElement
  6. LazyPublisher
  7. Publisher
  8. Reactor
  9. Proxy
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PanPane(c: Component)

    Permalink
  2. new PanPane()

    Permalink

Type Members

  1. trait SuperMixin extends JComponent

    Permalink
    Attributes
    protected
    Definition Classes
    Component

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def background: Color

    Permalink
    Definition Classes
    UIElement
  6. def background_=(c: Color): Unit

    Permalink
    Definition Classes
    UIElement
  7. def border: Border

    Permalink
    Definition Classes
    Component
  8. def border_=(b: Border): Unit

    Permalink
    Definition Classes
    Component
  9. def bounds: Rectangle

    Permalink
    Definition Classes
    UIElement
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def columnHeaderView: Option[Component]

    Permalink
    Definition Classes
    ScrollPane
  12. def columnHeaderView_=(c: Option[Component]): Unit

    Permalink
    Definition Classes
    ScrollPane
  13. def columnHeaderView_=(c: Component): Unit

    Permalink
    Definition Classes
    ScrollPane
  14. def contents: Seq[Component]

    Permalink
    Definition Classes
    ScrollPane → Container
  15. def contents_=(c: Component): Unit

    Permalink
    Definition Classes
    ScrollPane
  16. def cursor: Cursor

    Permalink
    Definition Classes
    UIElement
  17. def cursor_=(c: Cursor): Unit

    Permalink
    Definition Classes
    UIElement
  18. def deafTo(ps: Publisher*): Unit

    Permalink
    Definition Classes
    Reactor
  19. def displayable: Boolean

    Permalink
    Definition Classes
    UIElement
  20. def enabled: Boolean

    Permalink
    Definition Classes
    Component
  21. def enabled_=(b: Boolean): Unit

    Permalink
    Definition Classes
    Component
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    Proxy → Any
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def focusable: Boolean

    Permalink
    Definition Classes
    Component
  26. def focusable_=(b: Boolean): Unit

    Permalink
    Definition Classes
    Component
  27. def font: Font

    Permalink
    Definition Classes
    UIElement
  28. def font_=(f: Font): Unit

    Permalink
    Definition Classes
    UIElement
  29. def foreground: Color

    Permalink
    Definition Classes
    UIElement
  30. def foreground_=(c: Color): Unit

    Permalink
    Definition Classes
    UIElement
  31. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  32. def hasFocus: Boolean

    Permalink
    Definition Classes
    Component
  33. def hashCode(): Int

    Permalink
    Definition Classes
    Proxy → Any
  34. def horizontalScrollBar: ScrollBar

    Permalink
    Definition Classes
    ScrollPane
  35. def horizontalScrollBarPolicy: Value

    Permalink
    Definition Classes
    ScrollPane
  36. def horizontalScrollBarPolicy_=(p: Value): Unit

    Permalink
    Definition Classes
    ScrollPane
  37. def ignoreRepaint: Boolean

    Permalink
    Definition Classes
    UIElement
  38. def ignoreRepaint_=(b: Boolean): Unit

    Permalink
    Definition Classes
    UIElement
  39. var initP: JComponent

    Permalink
    Definition Classes
    Component
  40. def inputVerifier: (Component) ⇒ Boolean

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

    Permalink
    Definition Classes
    Component
  42. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  43. def listenTo(ps: Publisher*): Unit

    Permalink
    Definition Classes
    Reactor
  44. val listeners: RefSet[Reaction] { val underlying: scala.collection.mutable.HashSet[scala.ref.Reference[scala.swing.Reactions.Reaction]] }

    Permalink
    Attributes
    protected
    Definition Classes
    Publisher
  45. def locale: Locale

    Permalink
    Definition Classes
    UIElement
  46. def location: Point

    Permalink
    Definition Classes
    UIElement
  47. def locationOnScreen: Point

    Permalink
    Definition Classes
    UIElement
  48. def maximumSize: Dimension

    Permalink
    Definition Classes
    UIElement
  49. def maximumSize_=(x: Dimension): Unit

    Permalink
    Definition Classes
    UIElement
  50. def minimumSize: Dimension

    Permalink
    Definition Classes
    UIElement
  51. def minimumSize_=(x: Dimension): Unit

    Permalink
    Definition Classes
    UIElement
  52. object mouse

    Permalink
    Definition Classes
    Component
  53. def name: String

    Permalink
    Definition Classes
    Component
  54. def name_=(s: String): Unit

    Permalink
    Definition Classes
    Component
  55. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  56. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  57. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  58. def onFirstSubscribe(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component → UIElement → LazyPublisher
  59. def onLastUnsubscribe(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    UIElement → LazyPublisher
  60. def opaque: Boolean

    Permalink
    Definition Classes
    Component
  61. def opaque_=(b: Boolean): Unit

    Permalink
    Definition Classes
    Component
  62. def paint(g: Graphics2D): Unit

    Permalink
    Definition Classes
    Component
  63. def paintBorder(g: Graphics2D): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  64. def paintChildren(g: Graphics2D): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  65. def paintComponent(g: Graphics2D): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  66. lazy val peer: JScrollPane

    Permalink
    Definition Classes
    ScrollPane → Component → UIElement
  67. def preferredSize: Dimension

    Permalink
    Definition Classes
    UIElement
  68. def preferredSize_=(x: Dimension): Unit

    Permalink
    Definition Classes
    UIElement
  69. def publish(e: Event): Unit

    Permalink
    Definition Classes
    Publisher
  70. val reactions: Reactions

    Permalink
    Definition Classes
    Reactor
  71. def repaint(rect: Rectangle): Unit

    Permalink
    Definition Classes
    UIElement
  72. def repaint(): Unit

    Permalink
    Definition Classes
    UIElement
  73. def requestFocus(): Unit

    Permalink
    Definition Classes
    Component
  74. def requestFocusInWindow(): Boolean

    Permalink
    Definition Classes
    Component
  75. def revalidate(): Unit

    Permalink
    Definition Classes
    Component
  76. def rowHeaderView: Option[Component]

    Permalink
    Definition Classes
    ScrollPane
  77. def rowHeaderView_=(c: Option[Component]): Unit

    Permalink
    Definition Classes
    ScrollPane
  78. def rowHeaderView_=(c: Component): Unit

    Permalink
    Definition Classes
    ScrollPane
  79. def self: Component

    Permalink
    Definition Classes
    UIElement → Proxy
  80. def showing: Boolean

    Permalink
    Definition Classes
    UIElement
  81. def size: Dimension

    Permalink
    Definition Classes
    UIElement
  82. def subscribe(listener: Reaction): Unit

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  83. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  84. def toString(): String

    Permalink
    Definition Classes
    Component → Proxy → AnyRef → Any
  85. def toolkit: Toolkit

    Permalink
    Definition Classes
    UIElement
  86. def tooltip: String

    Permalink
    Definition Classes
    Component
  87. def tooltip_=(t: String): Unit

    Permalink
    Definition Classes
    Component
  88. def unsubscribe(listener: Reaction): Unit

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  89. def verticalScrollBar: ScrollBar

    Permalink
    Definition Classes
    ScrollPane
  90. def verticalScrollBarPolicy: Value

    Permalink
    Definition Classes
    ScrollPane
  91. def verticalScrollBarPolicy_=(p: Value): Unit

    Permalink
    Definition Classes
    ScrollPane
  92. def viewportView: Option[Component]

    Permalink
    Definition Classes
    ScrollPane
  93. def viewportView_=(c: Option[Component]): Unit

    Permalink
    Definition Classes
    ScrollPane
  94. def viewportView_=(c: Component): Unit

    Permalink
    Definition Classes
    ScrollPane
  95. def visible: Boolean

    Permalink
    Definition Classes
    UIElement
  96. def visible_=(b: Boolean): Unit

    Permalink
    Definition Classes
    UIElement
  97. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  98. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. def xLayoutAlignment: Double

    Permalink
    Definition Classes
    Component
  101. def xLayoutAlignment_=(x: Double): Unit

    Permalink
    Definition Classes
    Component
  102. def yLayoutAlignment: Double

    Permalink
    Definition Classes
    Component
  103. def yLayoutAlignment_=(y: Double): Unit

    Permalink
    Definition Classes
    Component

Inherited from ScrollPane

Inherited from Container

Inherited from Component

Inherited from UIElement

Inherited from LazyPublisher

Inherited from Publisher

Inherited from Reactor

Inherited from Proxy

Inherited from AnyRef

Inherited from Any

Ungrouped