Class

cogdebugger.ui.fieldvisualizations.scalar

GrayscaleImagePanel

Related Doc: package scalar

Permalink

class GrayscaleImagePanel extends FlowPanel with EventDrivenViewer with ZoomProperty with RestorableState

A viewer for ScalarFields that assumes that they're holding grayscale images. That is, the values in the ScalarField are in the range [0f, 1f], with values <= 0 to be represented as black, and values >= 1 as pure white.

The view presented can look quite similar to that of the ScalarMemoryView, but because this view makes assumptions about the possible range of values, it's potentially more performant.

Only accepts ScalarFields of 2 dimensions or lower.

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

Instance Constructors

  1. new GrayscaleImagePanel(target: AnyRef, fShape: libcog.Shape)

    Permalink

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 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def background: Color

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

    Permalink
    Definition Classes
    UIElement
  9. def border: Border

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

    Permalink
    Definition Classes
    Component
  11. def bounds: Rectangle

    Permalink
    Definition Classes
    UIElement
  12. var busy: Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. val cols: Int

    Permalink
  15. val contents: Buffer[Component]

    Permalink
    Definition Classes
    Wrapper → Wrapper → SequentialContainer → Container
  16. def cursor: Cursor

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

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

    Permalink
    Definition Classes
    Reactor
  19. var disallowNegativeZoom: Boolean

    Permalink
    Definition Classes
    ZoomProperty
  20. def displayable: Boolean

    Permalink
    Definition Classes
    UIElement
  21. def enabled: Boolean

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

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

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

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

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

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

    Permalink
    Definition Classes
    Component
  28. def font: Font

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

    Permalink
    Definition Classes
    UIElement
  30. def foreground: Color

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  33. def hGap: Int

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

    Permalink
    Definition Classes
    FlowPanel
  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. val imgPanel: DoubleBufferedImagePanel with PerElementTooltips

    Permalink
    Attributes
    protected
  40. var initP: JComponent

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

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

    Permalink
    Definition Classes
    Component
  43. def isBusy: Boolean

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

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

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

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

    Permalink
    Definition Classes
    UIElement
  48. def location: Point

    Permalink
    Definition Classes
    UIElement
  49. def locationOnScreen: Point

    Permalink
    Definition Classes
    UIElement
  50. def maximumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  52. def minimumSize: Dimension

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

    Permalink
    Definition Classes
    UIElement
  54. object mouse

    Permalink
    Definition Classes
    Component
  55. def name: String

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  69. lazy val peer: JPanel

    Permalink
    Definition Classes
    FlowPanel → Panel → Wrapper → Component → UIElement
  70. def preferredSize: Dimension

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

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

    Permalink
    Definition Classes
    Publisher
  75. val reactions: Reactions

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

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

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

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

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

    Permalink
    Definition Classes
    Component
  83. val rows: Int

    Permalink
  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
    GrayscaleImagePanelRestorableState
  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 toolkit: Toolkit

    Permalink
    Definition Classes
    UIElement
  92. def tooltip: String

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

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

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

    Permalink

    Update the view with new data.

    Update the view with new data. This method schedules a repaint of the view.

  96. def update(src: AnyRef, data: libcog.AbstractFieldMemory, time: Long): Unit

    Permalink

    Update the view with new data.

    Update the view with new data. This method schedules a repaint of the view.

    src

    The field or object that generated the data argument

    data

    New field data that needs to be rendered by this viewer

    Definition Classes
    GrayscaleImagePanelViewer
  97. def vGap: Int

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

    Permalink
    Definition Classes
    FlowPanel
  99. def visible: Boolean

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

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

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

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

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

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

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

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

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

    Permalink

    Increase zoom level by zDelta.

    Increase zoom level by zDelta.

    Definition Classes
    ZoomPropertyZoomable
  110. var zoomIncrement: Float

    Permalink

    Zoom increment.

    Zoom increment. This value is added/subtracted to the current zoomLevel when zooming in or out. At a zoomLevel of 1, the image is rendered suh that a single scalar element maps to exactly 1x1 pixel. A zoomLevel > 1 magnifies the image by that factor; e.g. a zoomLevel of 3 renders the image such that each scalar element maps to 3x3 pixels.

    Definition Classes
    GrayscaleImagePanelZoomProperty
  111. def zoomLevel: Float

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

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

    Permalink

    Decrease zoom level by zDelta.

    Decrease zoom level by zDelta.

    Definition Classes
    ZoomPropertyZoomable
  114. 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 RestorableState

Inherited from ZoomProperty

Inherited from Zoomable

Inherited from EventDrivenViewer

Inherited from ProbeListener

Inherited from Viewer

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