Class

cogdebugger.ui.fieldvisualizations

CompositeViewer

Related Doc: package fieldvisualizations

Permalink

class CompositeViewer extends BorderPanel with EventDrivenViewer

An experiment to see if I can't set up a visualization that combines the data from two fields into a single visualization.

The idea stems from Matthew + Ben's tracker app, where they had to render a circular target on top of a webcam feed. Originally, that required a lot of hacking and pixel twiddling; but with the right probe framework, it should be simple to define a viewer that does the same sort of thing, e.g. by interpreting the contents of fieldA as an image and the contents of fieldB as the coordinates of a target that needs to be overlaid on top.

---

Sudden realization - how do we actually build one of these in response to user input? They can only click on one field at a time...

Linear Supertypes
EventDrivenViewer, ProbeListener, Viewer, BorderPanel, LayoutContainer, Panel, Wrapper, Container, Component, UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CompositeViewer
  2. EventDrivenViewer
  3. ProbeListener
  4. Viewer
  5. BorderPanel
  6. LayoutContainer
  7. Panel
  8. Wrapper
  9. Container
  10. Component
  11. UIElement
  12. LazyPublisher
  13. Publisher
  14. Reactor
  15. Proxy
  16. AnyRef
  17. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CompositeViewer(backgroundField: AnyRef, targetField: AnyRef, initBackground: libcog.ScalarFieldReader)

    Permalink

Type Members

  1. type Constraints = scala.swing.BorderPanel.Position.Value

    Permalink
    Definition Classes
    BorderPanel → LayoutContainer
  2. class Content extends BufferWrapper[Component]

    Permalink
    Attributes
    protected
    Definition Classes
    Wrapper
  3. trait SuperMixin extends JComponent

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  4. class Worker extends SwingWorker[Unit, Unit]

    Permalink
    Definition Classes
    EventDrivenViewer

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. val _contents: Content

    Permalink
    Attributes
    protected
    Definition Classes
    Wrapper
  5. def add(c: Component, l: Constraints): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BorderPanel → LayoutContainer
  6. def areValid(c: Constraints): (Boolean, String)

    Permalink
    Attributes
    protected
    Definition Classes
    BorderPanel → LayoutContainer
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def background: Color

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

    Permalink
    Definition Classes
    UIElement
  10. def border: Border

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

    Permalink
    Definition Classes
    Component
  12. def bounds: Rectangle

    Permalink
    Definition Classes
    UIElement
  13. var busy: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    EventDrivenViewer
  14. val circle: Float

    Permalink
  15. val circleColor: Color

    Permalink
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def cols: Int

    Permalink
  18. def constraintsFor(comp: Component): scala.swing.BorderPanel.Position.Value

    Permalink
    Attributes
    protected
    Definition Classes
    BorderPanel → LayoutContainer
  19. def contents: Seq[Component]

    Permalink
    Definition Classes
    Wrapper → Container
  20. def cursor: Cursor

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

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

    Permalink
    Definition Classes
    Reactor
  23. def displayable: Boolean

    Permalink
    Definition Classes
    UIElement
  24. def enabled: Boolean

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

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

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

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

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

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

    Permalink
    Definition Classes
    Component
  31. def font: Font

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

    Permalink
    Definition Classes
    UIElement
  33. def foreground: Color

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

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

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

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

    Permalink
    Definition Classes
    Proxy → Any
  38. def ignoreRepaint: Boolean

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

    Permalink
    Definition Classes
    UIElement
  40. val imgPanel: DoubleBufferedImagePanel

    Permalink
  41. var initP: JComponent

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

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

    Permalink
    Definition Classes
    Component
  44. def isBusy: Boolean

    Permalink
    Definition Classes
    EventDrivenViewerProbeListener
  45. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  46. def layout: Map[Component, Constraints]

    Permalink
    Definition Classes
    LayoutContainer
  47. def layoutManager: BorderLayout

    Permalink
    Definition Classes
    BorderPanel
  48. def listenTo(ps: Publisher*): Unit

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

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

    Permalink
    Definition Classes
    UIElement
  51. def location: Point

    Permalink
    Definition Classes
    UIElement
  52. def locationOnScreen: Point

    Permalink
    Definition Classes
    UIElement
  53. def maximumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  55. def minimumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  57. object mouse

    Permalink
    Definition Classes
    Component
  58. def name: String

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

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

    Permalink
    Definition Classes
    AnyRef
  61. def notify(event: ProbeEvent): Unit

    Permalink
    Definition Classes
    EventDrivenViewerProbeListener
  62. final def notify(): Unit

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

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  72. lazy val peer: JPanel with SuperMixin

    Permalink
    Definition Classes
    BorderPanel → Panel → Wrapper → Component → UIElement
  73. def preferredSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  75. val properties: ArrayBuffer[Property[_]]

    Permalink

    A list of properties that should be persisted when the app closes, and restored the next time it's launched.

    A list of properties that should be persisted when the app closes, and restored the next time it's launched. A common example of a persistent is the zoom/magnification level of the viewer. Be sure to add any relevenant properties to this list in your Viewer subclasses!

    Definition Classes
    Viewer
  76. def propertiesTag: NodeSeq

    Permalink

    Returns the XML representation of this viewer's properties, suitable for saving into a file.

    Returns the XML representation of this viewer's properties, suitable for saving into a file.

    Definition Classes
    Viewer
  77. def publish(e: Event): Unit

    Permalink
    Definition Classes
    Publisher
  78. var r: Float

    Permalink
    Attributes
    protected
  79. var rScale: Int

    Permalink
    Attributes
    protected
  80. val reactions: Reactions

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

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

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

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

    Permalink
    Definition Classes
    Component
  85. def reset(): Unit

    Permalink

    Reset the visualization.

    Reset the visualization. An optional operation; subclasses must override this method or else it does nothing.

    Definition Classes
    Viewer
  86. def revalidate(): Unit

    Permalink
    Definition Classes
    Component
  87. def rows: Int

    Permalink
  88. def self: Component

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

    Permalink
    Definition Classes
    UIElement
  90. def size: Dimension

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

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

    Permalink
    Definition Classes
    AnyRef
  93. val targets: Set[AnyRef]

    Permalink

    The (Cog4) fields this viewer is visualizing.

  94. def toString(): String

    Permalink
    Definition Classes
    Component → Proxy → AnyRef → Any
  95. val toolbar: ToolBar

    Permalink

    Zoom in/out step size

    Zoom in/out step size

    Attributes
    protected
  96. def toolkit: Toolkit

    Permalink
    Definition Classes
    UIElement
  97. def tooltip: String

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

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

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  100. def update(src: AnyRef, data: libcog.ScalarFieldReader): Unit

    Permalink

    Updates the visualization based on the contents of data.

  101. def update(src: AnyRef, data: libcog.AbstractFieldMemory, time: Long): Unit

    Permalink

    Updates the visualization based on the contents of data.

    Updates the visualization based on the contents of data.

    The src argument was orignally meant to reference the kernel/field/object that generated the data, in order to support composite visualizations (that is, viewers that produce a visual based on the data from several different sources), but launching such viewers in the current UI is clunky at beset, so this feature isn't used. Viewers that only visualize a single field's data can probably safely ignore this arument (and indeed, most of the current ones do).

    src

    The field or object that generated the data argument

    data

    New field data that needs to be rendered by this viewer

    Definition Classes
    CompositeViewerViewer
  102. def visible: Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  107. var x: Float

    Permalink
    Attributes
    protected
  108. def xLayoutAlignment: Double

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

    Permalink
    Definition Classes
    Component
  110. def xmlToProperties(node: Node): Unit

    Permalink

    Parses the XML tag produced by the propertiesTag method and restores any saved valued to this Viewer.

    Parses the XML tag produced by the propertiesTag method and restores any saved valued to this Viewer.

    Definition Classes
    Viewer
  111. var y: Float

    Permalink
    Attributes
    protected
  112. def yLayoutAlignment: Double

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

    Permalink
    Definition Classes
    Component

Inherited from EventDrivenViewer

Inherited from ProbeListener

Inherited from Viewer

Inherited from BorderPanel

Inherited from LayoutContainer

Inherited from Panel

Inherited from Wrapper

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