Class

cogdebugger.ui.fieldvisualizations.scalar

StackedTimeSeriesPanel

Related Doc: package scalar

Permalink

class StackedTimeSeriesPanel extends BorderPanel with EventDrivenViewer with Zoomable

A visualization for SalarFields of two or fewer dimensions that renders the field as a number of stacked timeseries plots, one per field element. This visaulization's performance is quite sensitive to the target field's size; it is not recommened for fields with a large number of elements, as it will render quite slowly.

This implementation keeps a fixed size history of the last 500 steps. The oldest value is at the left end of the chart, the most recent at the right. (This history is part of the reason this visualization can't handle large fields; the field size is effecitvely multiplied by 500.))

This visualization is based off the old Cog 3.x MultiXYPlot, which was not particularly efficient. This visualization also takes a long time to update, especially if its tracking many values from a large field. If the target field is updating more rapidly than the visualization, there will be gaps in the history. The most recently recorded value is extended into these gaps (which has the tendency to cause the timeseries to render as a stepped line).

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

Instance Constructors

  1. new StackedTimeSeriesPanel(target: ProbedField)

    Permalink
  2. new StackedTimeSeriesPanel(fieldType: libcog.FieldType)

    Permalink

    fieldType

    A FieldType describing the shape of the ScalarField being visualized.

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 HistorySize: Int

    Permalink
  5. val _contents: Content

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

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

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

    Permalink
    Definition Classes
    Any
  9. def background: Color

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

    Permalink
    Definition Classes
    UIElement
  11. def border: Border

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

    Permalink
    Definition Classes
    Component
  13. def bounds: Rectangle

    Permalink
    Definition Classes
    UIElement
  14. var busy: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    EventDrivenViewer
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def constraintsFor(comp: Component): scala.swing.BorderPanel.Position.Value

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

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

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

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

    Permalink
    Definition Classes
    Reactor
  21. def displayable: Boolean

    Permalink
    Definition Classes
    UIElement
  22. def enabled: Boolean

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

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

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

    Permalink
    Definition Classes
    Proxy → Any
  26. def extractYData(data: libcog.ScalarFieldReader, time: Long): Unit

    Permalink
  27. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Component
  30. def font: Font

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

    Permalink
    Definition Classes
    UIElement
  32. def foreground: Color

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

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

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

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

    Permalink
    Definition Classes
    Proxy → Any
  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. def isBusy: Boolean

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

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

    Permalink
    Definition Classes
    LayoutContainer
  45. def layoutManager: BorderLayout

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

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

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

    Permalink
    Definition Classes
    UIElement
  49. def location: Point

    Permalink
    Definition Classes
    UIElement
  50. def locationOnScreen: Point

    Permalink
    Definition Classes
    UIElement
  51. def maximumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  53. def minimumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  55. object mouse

    Permalink
    Definition Classes
    Component
  56. def name: String

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    UIElement
  73. 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
  74. 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
  75. def publish(e: Event): Unit

    Permalink
    Definition Classes
    Publisher
  76. val reactions: Reactions

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

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

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

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

    Permalink
    Definition Classes
    Component
  81. 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
  82. def revalidate(): Unit

    Permalink
    Definition Classes
    Component
  83. def self: Component

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

    Permalink
    Definition Classes
    UIElement
  85. def size: Dimension

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

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

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

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

    Permalink
    Definition Classes
    UIElement
  90. def tooltip: String

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

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

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

    Permalink
  94. 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
    StackedTimeSeriesPanelViewer
  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 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
  103. def yLayoutAlignment: Double

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

    Permalink
    Definition Classes
    Component
  105. def zoomIn(): Unit

    Permalink
    Definition Classes
    StackedTimeSeriesPanelZoomable
  106. def zoomIncrement: Float

    Permalink
  107. def zoomOut(): Unit

    Permalink
    Definition Classes
    StackedTimeSeriesPanelZoomable

Inherited from Zoomable

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