Class/Object

cogdebugger.ui.fieldvisualizations.vector

VectorFieldComponentsPanel

Related Docs: object VectorFieldComponentsPanel | package vector

Permalink

class VectorFieldComponentsPanel extends BorderPanel with EventDrivenViewer with ZoomProperty

A VectorField display that collects together the same-indexed components of the vectors and shows them like we do ScalarFields.

E.g., for a vector field of vectors with three compnents, x, y, and z, all the x's will be grouped together and displayed like a single ScalarField, as will the y's and z's.

Note that this sort of visualization can be made with a bit of field slicing in the Cog model itself.

Linear Supertypes
ZoomProperty, 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. VectorFieldComponentsPanel
  2. ZoomProperty
  3. Zoomable
  4. EventDrivenViewer
  5. ProbeListener
  6. Viewer
  7. BorderPanel
  8. LayoutContainer
  9. Panel
  10. Wrapper
  11. Container
  12. Component
  13. UIElement
  14. LazyPublisher
  15. Publisher
  16. Reactor
  17. Proxy
  18. AnyRef
  19. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VectorFieldComponentsPanel(target: ProbedField)

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

    Permalink

Type Members

  1. class ComponentsViewToolbar extends ToolBar

    Permalink
  2. type Constraints = scala.swing.BorderPanel.Position.Value

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  5. 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 ZoomProperty: FloatProperty

    Permalink
    Definition Classes
    ZoomProperty
  5. val _contents: Content

    Permalink
    Attributes
    protected
    Definition Classes
    Wrapper
  6. var _data: libcog.AbstractFieldMemory

    Permalink
    Attributes
    protected
  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. 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 columns: Int

    Permalink
  18. val componentDisplays: Array[BorderPanel]

    Permalink
  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 data: libcog.VectorFieldReader

    Permalink
    Attributes
    protected
  24. def deafTo(ps: Publisher*): Unit

    Permalink
    Definition Classes
    Reactor
  25. var disallowNegativeZoom: Boolean

    Permalink
    Definition Classes
    ZoomProperty
  26. def displayable: Boolean

    Permalink
    Definition Classes
    UIElement
  27. def enabled: Boolean

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

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

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

    Permalink
    Definition Classes
    Proxy → Any
  31. def extractLayers(vectorField: libcog.VectorFieldReader): Seq[Array[Array[Float]]]

    Permalink
    Attributes
    protected
  32. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Component
  35. def font: Font

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

    Permalink
    Definition Classes
    UIElement
  37. def foreground: Color

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

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

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

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

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

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

    Permalink
    Definition Classes
    UIElement
  44. var initP: JComponent

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

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

    Permalink
    Definition Classes
    Component
  47. def isBusy: Boolean

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

    Permalink
    Definition Classes
    Any
  49. val layers: Int

    Permalink
  50. def layout: Map[Component, Constraints]

    Permalink
    Definition Classes
    LayoutContainer
  51. def layoutManager: BorderLayout

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

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

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

    Permalink
    Definition Classes
    UIElement
  55. def location: Point

    Permalink
    Definition Classes
    UIElement
  56. def locationOnScreen: Point

    Permalink
    Definition Classes
    UIElement
  57. def maximumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  59. def minimumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  61. object mouse

    Permalink
    Definition Classes
    Component
  62. def name: String

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    UIElement
  79. 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
  80. 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
  81. def publish(e: Event): Unit

    Permalink
    Definition Classes
    Publisher
  82. val reactions: Reactions

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

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

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

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

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

    Permalink
    Definition Classes
    Component
  89. val rows: Int

    Permalink
  90. val scalarPanels: Array[scalar.ScalarMemoryView]

    Permalink
  91. def self: Component

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

    Permalink
    Definition Classes
    UIElement
  93. def size: Dimension

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

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

    Permalink
    Definition Classes
    AnyRef
  96. val tmpVector: Vector

    Permalink

    Workaround for the fact that sliceTensor doesn't yet exist in Cog 4.

    Workaround for the fact that sliceTensor doesn't yet exist in Cog 4.

    Attributes
    protected
  97. def toString(): String

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

    Permalink
    Definition Classes
    UIElement
  99. def tooltip: String

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

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

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

    Permalink
  103. 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
    VectorFieldComponentsPanelViewer
  104. val vectorLength: Int

    Permalink
  105. val viewPanel: FlowPanel

    Permalink
  106. def visible: Boolean

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

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

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

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

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

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

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

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

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

    Permalink

    Increase zoom level by zDelta.

    Increase zoom level by zDelta.

    Definition Classes
    ZoomPropertyZoomable
  117. val zoomIncrement: Float

    Permalink

    Default zoom/unzoom increment used by zoomIn and zoomOut.

    Default zoom/unzoom increment used by zoomIn and zoomOut. When the ZoomType is Additive, this value is added to or substracted from the current zoomLevel. In multiplicative mode, zoomLevel is multipled by zDelta on zooming in or by its reciprocal on zooming out.

    Definition Classes
    VectorFieldComponentsPanelZoomProperty
  118. def zoomLevel: Float

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

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

    Permalink

    Decrease zoom level by zDelta.

    Decrease zoom level by zDelta.

    Definition Classes
    ZoomPropertyZoomable
  121. 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 ZoomProperty

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