Class/Object

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

Source
Chart.scala
Linear Supertypes
Publisher, Reactor, DisplayableChart, DocMacros, AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Chart
  2. Publisher
  3. Reactor
  4. DisplayableChart
  5. DocMacros
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  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. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Chart to any2stringadd[Chart] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Chart, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Chart to ArrowAssoc[Chart] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def antiAlias: Boolean

    Permalink

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

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

    Permalink

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

  8. final def asInstanceOf[T0]: T0

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

    Permalink

    Returns the paint used for the chart background.

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

    Permalink

    Sets the paint used for the chart background.

  11. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Reactor
  13. def ensuring(cond: (Chart) ⇒ Boolean, msg: ⇒ Any): Chart

    Permalink
    Implicit information
    This member is added by an implicit conversion from Chart to Ensuring[Chart] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (Chart) ⇒ Boolean): Chart

    Permalink
    Implicit information
    This member is added by an implicit conversion from Chart to Ensuring[Chart] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): Chart

    Permalink
    Implicit information
    This member is added by an implicit conversion from Chart to Ensuring[Chart] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): Chart

    Permalink
    Implicit information
    This member is added by an implicit conversion from Chart to Ensuring[Chart] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Chart to StringFormat[Chart] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Publisher
  30. val reactions: Reactions

    Permalink
    Definition Classes
    Reactor
  31. 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

  32. object subtitles extends Buffer[Title]

    Permalink

    Contains this charts subtitles and legends.

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

    Permalink
    Definition Classes
    AnyRef
  34. def title: String

    Permalink

    Returns the title of this chart.

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

    Permalink

    Sets the title of this chart.

  36. 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
  37. def toComponent: Component

    Permalink

    Wraps this chart in a swing component.

    Wraps this chart in a swing component.

    Definition Classes
    DisplayableChart
  38. 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

  39. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def [B](y: B): (Chart, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Chart to ArrowAssoc[Chart] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Publisher

Inherited from Reactor

Inherited from DisplayableChart

Inherited from DocMacros

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Chart to any2stringadd[Chart]

Inherited by implicit conversion StringFormat from Chart to StringFormat[Chart]

Inherited by implicit conversion Ensuring from Chart to Ensuring[Chart]

Inherited by implicit conversion ArrowAssoc from Chart to ArrowAssoc[Chart]

Ungrouped