Class

cogdebugger.ui.components

StackedTimeseriesPlot

Related Doc: package components

Permalink

class StackedTimeseriesPlot extends BorderPanel with Zoomable

A data visualization that displays a number of timeseries plots stacked on top of each other. Each chart has its own set of y/range values and range axis, but all share the same x/domain values and axis. This class is intended to provide the same functionality as Cog 3's MultiXYPlot class.

All data is sorted according by the domain value prior to rendering. Thus, the lines drawn on the timeseries plots can never double back.

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

Instance Constructors

  1. new StackedTimeseriesPlot(title: String, xLabel: String, yLabels: Array[String])

    Permalink
  2. new StackedTimeseriesPlot(title: String, xLabel: String, yLabels: Array[String], initialXData: Array[Float], initialYData: Array[Array[Float]])

    Permalink

    title

    The chart's title, displayed at the top of the panel.

    xLabel

    Label for the domain axis

    yLabels

    An array of labels for the range axes, one per series.

    initialXData

    An array of Floats containing the initial domain values.

    initialYData

    A two dimension array of floats containing the range data for each series. The first index into the array selects the data for an individual series, the second/innermost index selects an element in that series.

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

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 PanFactor: Double

    Permalink
  5. def ZoomFactor: Float

    Permalink
  6. val _contents: Content

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

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

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

    Permalink
    Definition Classes
    Any
  10. def background: Color

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

    Permalink
    Definition Classes
    UIElement
  12. def border: Border

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

    Permalink
    Definition Classes
    Component
  14. def bounds: Rectangle

    Permalink
    Definition Classes
    UIElement
  15. def changeZoomLevel(delta: Float): Unit

    Permalink
  16. def changeZoomLevel(delta: Double): Unit

    Permalink
  17. val chart: JFreeChart

    Permalink
  18. def clone(): AnyRef

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

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

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

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

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

    Permalink
    Definition Classes
    Reactor
  24. def displayable: Boolean

    Permalink
    Definition Classes
    UIElement
  25. def enabled: Boolean

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

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

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

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

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

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

    Permalink
    Definition Classes
    Component
  32. def font: Font

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

    Permalink
    Definition Classes
    UIElement
  34. def foreground: Color

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

    Permalink
    Definition Classes
    UIElement
  36. val fullScaleXAxisLowerBound: Float

    Permalink
  37. val fullScaleXAxisUpperBound: Float

    Permalink
  38. final def getClass(): Class[_]

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

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

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

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

    Permalink
    Definition Classes
    UIElement
  43. var initP: JComponent

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

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

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

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

    Permalink
    Definition Classes
    LayoutContainer
  48. def layoutManager: BorderLayout

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

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

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

    Permalink
    Definition Classes
    UIElement
  52. def location: Point

    Permalink
    Definition Classes
    UIElement
  53. def locationOnScreen: Point

    Permalink
    Definition Classes
    UIElement
  54. def maximumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  56. def minimumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  58. object mouse

    Permalink
    Definition Classes
    Component
  59. def name: String

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

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

    Permalink
    Definition Classes
    AnyRef
  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. def panLeft(): Unit

    Permalink
  73. def panRight(): Unit

    Permalink
  74. lazy val peer: JPanel with SuperMixin

    Permalink
    Definition Classes
    BorderPanel → Panel → Wrapper → Component → UIElement
  75. val plot: CombinedDomainXYPlot

    Permalink
  76. def preferredSize: Dimension

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

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

    Permalink
    Definition Classes
    Publisher
  79. val reactions: Reactions

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

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

    Permalink
    Definition Classes
    UIElement
  82. def replaceYData(yData: Array[Array[Float]]): Unit

    Permalink

    Overwrites existing Y data with the contents of the given array.

    Overwrites existing Y data with the contents of the given array. Assumes (series, col) indexing. This translates into a chart that looke like this:

              +-----------+---------------+---------------+------
    series 0  | T - times | T - times + 1 | T - times + 2 | ...
              +-----------+---------------+---------------+------
    series 1  | T - times | T - times + 1 | T - times + 2 | ...
              +-----------+---------------+---------------+------
    ...       | ...
  83. def requestFocus(): Unit

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

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

    Permalink
    Definition Classes
    Component
  86. def self: Component

    Permalink
    Definition Classes
    UIElement → Proxy
  87. def shiftXAxisRange(shiftBy: Double): Unit

    Permalink

    Shifts the visible X-axis range by shiftBy units.

  88. def showing: Boolean

    Permalink
    Definition Classes
    UIElement
  89. def size: Dimension

    Permalink
    Definition Classes
    UIElement
  90. val subPlots: IndexedSeq[XYPlot]

    Permalink
  91. def subscribe(listener: Reaction): Unit

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

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

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

    Permalink
    Definition Classes
    UIElement
  95. def tooltip: String

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

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

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  98. def updateData(x: Float, yData: Array[Float]): Unit

    Permalink

    Updates the data set by dropping the first/left-most item from each data series and then appending the values given as arguments to this method.

    Updates the data set by dropping the first/left-most item from each data series and then appending the values given as arguments to this method. Keep in mind that the data will be sorted by domain value prior to rendering.

    E.g., consider the 2-series data set here:

    series 0 y values -- | 1 | 2 | 3 | 4 | 5 |
    series 1 y values -- | 4 | 7 | 2 | 9 | 1 |
    domain values     -- | 2 | 4 | 5 | 7 | 9 |

    Calling updateData with (3, Array(3, 4)) yields:

    series 0 y values -- | 3 | 4 | 5 | 3 | 3 |
    series 1 y values -- | 2 | 9 | 1 | 4 | 4 |
    domain values     -- | 4 | 5 | 7 | 9 | 3 |

    But sorting will cause values to be rendered in this order: *

    series 0 y values -- | 3 | 3 | 4 | 5 | 3 |
    series 1 y values -- | 4 | 2 | 9 | 1 | 4 |
    domain values     -- | 3 | 4 | 5 | 7 | 9 |
  99. def updateData(yData: Array[Float]): Unit

    Permalink

    Updates the data set by shifting the y value of each (x1, y) pair in each data series to the previous (x0, y) pair, and then dropping the yData argument values into the now vacant y component of the last xy pairs.

    Updates the data set by shifting the y value of each (x1, y) pair in each data series to the previous (x0, y) pair, and then dropping the yData argument values into the now vacant y component of the last xy pairs.

    E.g., consider the 2-series data set here:

    series 0 y values -- | 1 | 2 | 3 | 4 | 5 |
    series 1 y values -- | 4 | 7 | 2 | 9 | 1 |
    domain values     -- | 2 | 4 | 5 | 7 | 9 |

    Calling updateData with Array(3, 4) yields:

    series 0 y values -- | 2 | 3 | 4 | 5 | 3 |
    series 1 y values -- | 7 | 2 | 9 | 1 | 4 |
    domain values     -- | 2 | 4 | 5 | 7 | 9 |
  100. def visible: Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  105. val xAxis: ValueAxis

    Permalink
  106. def xLayoutAlignment: Double

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

    Permalink
    Definition Classes
    Component
  108. def xRangeSize: Double

    Permalink
  109. def xRangeSize_=(size: Double): Unit

    Permalink
  110. def yLayoutAlignment: Double

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

    Permalink
    Definition Classes
    Component
  112. def zDelta: Float

    Permalink
  113. def zoomIn(): Unit

    Permalink
    Definition Classes
    StackedTimeseriesPlotZoomable
  114. def zoomOut(): Unit

    Permalink
    Definition Classes
    StackedTimeseriesPlotZoomable

Inherited from Zoomable

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