Class/Object

de.sciss.chart

Chart

Related Docs: object Chart | package chart

Permalink

abstract class Chart extends DisplayableChart with Publisher

Generic graphical representation of data.

Swing Integration

This abstraction provides direct integration with the Scala Swing UI framework.

val component = chart.toComponent
val frame = chart.toFrame()

There is also a way to immediately display the chart in a new GUI window. This is intended for interactive usage, e.g. when working with the Scala REPL. The simplest form is:

chart.show()

Listen to UI mouse events:

import scalax.chart.event._

val chart = ???
val ui = chart.toComponent // or chart.toFrame()
val reactor = ???

reactor.listenTo(ui)
reactor.reactions += {
  case event: ChartMouseEvent =>
    // do something with event
}

Exporting Charts

See module.Exporting for more information.

Linear Supertypes
Publisher, Reactor, DisplayableChart, DocMacros, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Chart
  2. Publisher
  3. Reactor
  4. DisplayableChart
  5. DocMacros
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Chart()

    Permalink
    Attributes
    protected

Type Members

  1. abstract type Plot <: org.jfree.chart.plot.Plot

    Permalink

    Returns the underlying plot type.

Abstract Value Members

  1. abstract def peer: module.Imports.JFreeChart

    Permalink

    Returns the underlying chart.

  2. abstract def plot: Plot

    Permalink

    Returns the underlying plot.

Concrete 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. def antiAlias: Boolean

    Permalink

    Returns true if this chart is drawn with anti-aliasing.

  5. def antiAlias_=(a: Boolean): Unit

    Permalink

    Sets whether or not this chart is drawn with anti-aliasing.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def backgroundPaint: module.Imports.Paint

    Permalink

    Returns the paint used for the chart background.

  8. def backgroundPaint_=(p: module.Imports.Paint): Unit

    Permalink

    Sets the paint used for the chart background.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def deafTo(ps: Publisher*): Unit

    Permalink
    Definition Classes
    Reactor
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Publisher
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  22. def publish(e: Event): Unit

    Permalink
    Definition Classes
    Publisher
  23. val reactions: Reactions

    Permalink
    Definition Classes
    Reactor
  24. def show(): Unit

    Permalink

    [use case] Shows the chart in a window.

    [use case]

    Shows the chart in a window.

    Definition Classes
    DisplayableChart
    Full Signature

    def show(title: String = "", resolution: (Int, Int) = Chart.Default.Resolution, scrollable: Boolean = false): Unit

  25. object subtitles extends Buffer[Title]

    Permalink

    Contains this charts subtitles and legends.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def title: String

    Permalink

    Returns the title of this chart.

  28. def title_=(title: String): Unit

    Permalink

    Sets the title of this chart.

  29. def toComponent(useBuffer: Boolean = Chart.Default.BufferUsed): Component

    Permalink

    Wraps this chart in a swing component.

    Wraps this chart in a swing component.

    useBuffer

    whether or not to use an off-screen buffer

    Definition Classes
    DisplayableChart
  30. def toComponent: Component

    Permalink

    Wraps this chart in a swing component.

    Wraps this chart in a swing component.

    Definition Classes
    DisplayableChart
  31. def toFrame(): Frame

    Permalink

    [use case] Wraps a frame around this chart.

    [use case]

    Wraps a frame around this chart.

    Definition Classes
    DisplayableChart
    Full Signature

    def toFrame(title: String = "", scrollable: Boolean = true): Frame

  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Publisher

Inherited from Reactor

Inherited from DisplayableChart

Inherited from DocMacros

Inherited from AnyRef

Inherited from Any

Ungrouped