Class

cogdebugger.ui.components

DoubleBufferedImagePanel

Related Doc: package components

Permalink

class DoubleBufferedImagePanel extends Panel with ZoomProperty

A double-buffered variant of ImagePanel. Meant to alleviate some of the screen-tearing seen using the old implementation. Note that there is currently no way to resize the internal buffers once they've been created.

The imgType argument should be one of the constants defined in java.awt.image.BufferedImage, e.g. BufferedImage.TYPE_3BYTE_BGR.

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

Instance Constructors

  1. new DoubleBufferedImagePanel(dim: Dimension, imgType: Int)

    Permalink

    dim

    The dimensions of the internal image buffers

    imgType

    The desired type of the internal buffers

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

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. var _back: BufferedImage

    Permalink
    Attributes
    protected
  6. val _contents: Content

    Permalink
    Attributes
    protected
    Definition Classes
    Wrapper
  7. var _front: BufferedImage

    Permalink
    Attributes
    protected
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def back: BufferedImage

    Permalink
  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 clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def contents: Seq[Component]

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

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

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

    Permalink
    Definition Classes
    Reactor
  20. var disallowNegativeZoom: Boolean

    Permalink
    Definition Classes
    ZoomProperty
  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 finalize(): Unit

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

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

    Permalink
    Definition Classes
    Component
  29. def font: Font

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

    Permalink
    Definition Classes
    UIElement
  31. def foreground: Color

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

    Permalink
    Definition Classes
    UIElement
  33. def front: BufferedImage

    Permalink
  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. val img1: BufferedImage

    Permalink
    Attributes
    protected
  40. val img2: BufferedImage

    Permalink
    Attributes
    protected
  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. 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. final def notify(): Unit

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

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

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

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

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

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

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

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

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

    Permalink

    Paints this component.

    Paints this component. Buffer swapping is prevented while the front buffer is being painted.

    Definition Classes
    DoubleBufferedImagePanel → Component
  68. lazy val peer: JPanel

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

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

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

    Permalink
    Definition Classes
    Publisher
  72. val reactions: Reactions

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

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

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

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

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

    Permalink
    Definition Classes
    Component
  78. val scaleXform: AffineTransform

    Permalink
    Attributes
    protected
  79. def self: Component

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

    Permalink
    Definition Classes
    UIElement
  81. def size: Dimension

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

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  83. val swapLock: Semaphore

    Permalink
    Attributes
    protected
  84. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink
    Definition Classes
    UIElement
  87. def tooltip: String

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

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

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  90. def update(op: (WritableRaster) ⇒ Unit): Unit

    Permalink

    Updates the back buffer by applying op to its raster, then swaps buffers and schedules a repaint.

  91. def visible: Boolean

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

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

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

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

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

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

    Permalink
    Definition Classes
    Component
  98. def yLayoutAlignment: Double

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

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

    Permalink

    Increase zoom level by zDelta.

    Increase zoom level by zDelta.

    Definition Classes
    ZoomPropertyZoomable
  101. var zoomIncrement: Float

    Permalink

    Default magnification step size when zooming in and out.

    Default magnification step size when zooming in and out.

    Definition Classes
    DoubleBufferedImagePanelZoomProperty
  102. def zoomLevel: Float

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

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

    Permalink

    Decrease zoom level by zDelta.

    Decrease zoom level by zDelta.

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