Trait

cogdebugger.ui.fieldvisualizations

Viewer

Related Doc: package fieldvisualizations

Permalink

trait Viewer extends Component

Base trait for classes that visualize field data.

One of the design goals for Viewers is to have any of their user configurable options persist across invocations of the debugger. To this end, all Viewers maintain a list of properties that wrap the values they need to save across debugger sessions. Each cogdebugger.Property is capable of generating an XML tag describing the state of that property, and Viewers are capable of collecting those tags and nesting them inside another tag specific to the Viewer instance.

Linear Supertypes
Component, UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Viewer
  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

Type Members

  1. trait SuperMixin extends JComponent

    Permalink
    Attributes
    protected
    Definition Classes
    Component

Abstract Value Members

  1. abstract def update(src: AnyRef, data: libcog.AbstractFieldMemory, simTime: 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

    simTime

    The ComputeGraph's step count at the time the data argument was generated

Concrete 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 cursor: Cursor

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

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

    Permalink
    Definition Classes
    Reactor
  14. def displayable: Boolean

    Permalink
    Definition Classes
    UIElement
  15. def enabled: Boolean

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

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

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

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

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

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

    Permalink
    Definition Classes
    Component
  22. def font: Font

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

    Permalink
    Definition Classes
    UIElement
  24. def foreground: Color

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

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

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

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

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

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

    Permalink
    Definition Classes
    UIElement
  31. var initP: JComponent

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

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

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

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

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

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

    Permalink
    Definition Classes
    UIElement
  38. def location: Point

    Permalink
    Definition Classes
    UIElement
  39. def locationOnScreen: Point

    Permalink
    Definition Classes
    UIElement
  40. def maximumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  42. def minimumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  44. object mouse

    Permalink
    Definition Classes
    Component
  45. def name: String

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  58. lazy val peer: JComponent

    Permalink
    Definition Classes
    Component → UIElement
  59. def preferredSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  61. 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!

  62. def propertiesTag: NodeSeq

    Permalink

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

  63. def publish(e: Event): Unit

    Permalink
    Definition Classes
    Publisher
  64. val reactions: Reactions

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

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

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

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

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

    Permalink

    Reset the visualization.

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

  70. def revalidate(): Unit

    Permalink
    Definition Classes
    Component
  71. def self: Component

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

    Permalink
    Definition Classes
    UIElement
  73. def size: Dimension

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

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

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

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

    Permalink
    Definition Classes
    UIElement
  78. def tooltip: String

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

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

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  81. def visible: Boolean

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

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

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

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

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

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

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

    Permalink

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

  89. def yLayoutAlignment: Double

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

    Permalink
    Definition Classes
    Component

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