Class

cogdebugger.ui.fieldvisualizations.complexvector

ComplexVectorComponentsView

Related Doc: package complexvector

Permalink

class ComplexVectorComponentsView extends WrapPanel with EventDrivenViewer with ZoomProperty with RestorableState with ToolbarItems

A visualization for complex vector fields that renders the field by treating each vector component or plane as a separate field of complex numbers, which can in turn be rendered as a pair of grayscale images - one for the real component and one for the imaginary.

This is very similar to the VectorComponentsPanel, which renders each "plane" of the vector as a separate scalar field.

This visualization can take a lot of space. Consider wrapping it in a ScrollPane before installing it in a container panel.

Linear Supertypes
ToolbarItems, RestorableState, ZoomProperty, Zoomable, EventDrivenViewer, ProbeListener, Viewer, WrapPanel, FlowPanel, Wrapper, SequentialContainer, Panel, Wrapper, Container, Component, UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ComplexVectorComponentsView
  2. ToolbarItems
  3. RestorableState
  4. ZoomProperty
  5. Zoomable
  6. EventDrivenViewer
  7. ProbeListener
  8. Viewer
  9. WrapPanel
  10. FlowPanel
  11. Wrapper
  12. SequentialContainer
  13. Panel
  14. Wrapper
  15. Container
  16. Component
  17. UIElement
  18. LazyPublisher
  19. Publisher
  20. Reactor
  21. Proxy
  22. AnyRef
  23. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ComplexVectorComponentsView(fieldType: libcog.FieldType)

    Permalink

    fieldType

    The FieldType of the ComplexVectorField being visualized. Created by gonztobi on 3/5/14.

Type Members

  1. class Content extends BufferWrapper[Component]

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

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  3. class VectorComponentPanel extends BorderPanel with Zoomable

    Permalink

    A subpanel that is responsible for the visualization of a single vector component or plane.

    A subpanel that is responsible for the visualization of a single vector component or plane. Contains a pair of images for showing the real and imaginary parts of the component, as well as a label (for indicating the component index) and color key.

  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 BipolarProperty: BooleanProperty

    Permalink

    When true, force the value zero to map to the exact center of the grayscale spectrum - we push either the min or max away from zero until both have the same absolute value, and then shade from there.

    When true, force the value zero to map to the exact center of the grayscale spectrum - we push either the min or max away from zero until both have the same absolute value, and then shade from there. When false, the min and max used in shading correspond to the actual smallest and largest values present in the field.

  5. val FloatingMaxProperty: BooleanProperty

    Permalink

    When true, shade display based on the min/max values in the latest data only.

    When true, shade display based on the min/max values in the latest data only. When false, display based based on the min/max values since last reset.

  6. val InvertProperty: BooleanProperty

    Permalink

    If true, the color white represents a minimum value and black a maximum.

    If true, the color white represents a minimum value and black a maximum. If false, black is a minimum and white a maximum.

  7. val ZoomProperty: FloatProperty

    Permalink
    Definition Classes
    ZoomProperty
  8. val _contents: Content

    Permalink
    Attributes
    protected
    Definition Classes
    Wrapper
  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. var busy: Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. val contents: Buffer[Component]

    Permalink
    Definition Classes
    Wrapper → Wrapper → SequentialContainer → 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. var disallowNegativeZoom: Boolean

    Permalink
    Definition Classes
    ZoomProperty
  22. def displayable: Boolean

    Permalink
    Definition Classes
    UIElement
  23. def enabled: Boolean

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

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

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

    Permalink
    Definition Classes
    Proxy → Any
  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 hGap: Int

    Permalink
    Definition Classes
    FlowPanel
  36. def hGap_=(n: Int): Unit

    Permalink
    Definition Classes
    FlowPanel
  37. def hasFocus: Boolean

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

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

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

    Permalink
    Definition Classes
    UIElement
  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 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
    WrapPanel → FlowPanel → 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

    "Clears" the min/max histories (historical minimum is reset to Float.MaxValue and historical max to Float.minValue) for both the real and imaginary parts of all vector components.

    "Clears" the min/max histories (historical minimum is reset to Float.MaxValue and historical max to Float.minValue) for both the real and imaginary parts of all vector components.

    Definition Classes
    ComplexVectorComponentsViewViewer
  82. def restore(elem: Node): Unit

    Permalink

    Restore this object to the state described in the given XML node.

    Restore this object to the state described in the given XML node.

    Definition Classes
    ComplexVectorComponentsViewRestorableState
  83. def revalidate(): Unit

    Permalink
    Definition Classes
    Component
  84. def save: Elem

    Permalink

    Encode the state of this object into an XML node.

    Encode the state of this object into an XML node.

    Definition Classes
    ComplexVectorComponentsViewRestorableState
  85. def self: Component

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

    Permalink
    Definition Classes
    UIElement
  87. def size: Dimension

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

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

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

    Permalink
    Definition Classes
    Component → Proxy → AnyRef → Any
  91. def toolbarComponents: Seq[ComponentGroup]

    Permalink

    Controls for this visualization that container components may wish to make available to users somewhere on the UI.

    Controls for this visualization that container components may wish to make available to users somewhere on the UI.

    Definition Classes
    ComplexVectorComponentsViewToolbarItems
  92. def toolkit: Toolkit

    Permalink
    Definition Classes
    UIElement
  93. def tooltip: String

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

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

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  96. def update(data: libcog.ComplexVectorFieldReader, simTime: Long): Unit

    Permalink

    Update the visualization with new data.

  97. 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

    Definition Classes
    ComplexVectorComponentsViewViewer
  98. def vGap: Int

    Permalink
    Definition Classes
    FlowPanel
  99. def vGap_=(n: Int): Unit

    Permalink
    Definition Classes
    FlowPanel
  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. def xLayoutAlignment: Double

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

    Permalink
    Definition Classes
    Component
  107. 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
  108. def yLayoutAlignment: Double

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

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

    Permalink

    Increase zoom level by zDelta.

    Increase zoom level by zDelta.

    Definition Classes
    ZoomPropertyZoomable
  111. val zoomIncrement: Float

    Permalink

    Default zoom/unzoom increment

    Default zoom/unzoom increment

    Definition Classes
    ComplexVectorComponentsViewZoomProperty
  112. def zoomLevel: Float

    Permalink
    Definition Classes
    ZoomProperty
  113. def zoomLevel_=(value: Float): Unit

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

    Permalink

    Decrease zoom level by zDelta.

    Decrease zoom level by zDelta.

    Definition Classes
    ZoomPropertyZoomable
  115. var zoomType: ZoomType

    Permalink

    Controls how zDelta is applied to the current zoom level.

    Controls how zDelta is applied to the current zoom level. In Additive, a delta is added to the current zoom level; in Multiplicative mode, the zoom level is multiplied by delta when zooming in, and by its reciprocal when zooming out.

    Default zoom type is additive. If you change it to multiplicative, you should probably ensure that the default zDelta is something other than 1f, as multiplying by one probably won't do anything.

    Definition Classes
    ZoomProperty

Inherited from ToolbarItems

Inherited from RestorableState

Inherited from ZoomProperty

Inherited from Zoomable

Inherited from EventDrivenViewer

Inherited from ProbeListener

Inherited from Viewer

Inherited from WrapPanel

Inherited from FlowPanel

Inherited from Wrapper

Inherited from SequentialContainer

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