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
- Alphabetic
- By Inheritance
- Chart
- Publisher
- Reactor
- DisplayableChart
- DocMacros
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Chart()
- Attributes
- protected
Type Members
-
abstract
type
Plot <: org.jfree.chart.plot.Plot
Returns the underlying plot type.
Abstract Value Members
-
abstract
def
peer: module.Imports.JFreeChart
Returns the underlying chart.
-
abstract
def
plot: Plot
Returns the underlying plot.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Chart, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
antiAlias: Boolean
Returns true if this chart is drawn with anti-aliasing.
-
def
antiAlias_=(a: Boolean): Unit
Sets whether or not this chart is drawn with anti-aliasing.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
backgroundPaint: module.Imports.Paint
Returns the paint used for the chart background.
-
def
backgroundPaint_=(p: module.Imports.Paint): Unit
Sets the paint used for the chart background.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
deafTo(ps: Publisher*): Unit
- Definition Classes
- Reactor
- def ensuring(cond: (Chart) ⇒ Boolean, msg: ⇒ Any): Chart
- def ensuring(cond: (Chart) ⇒ Boolean): Chart
- def ensuring(cond: Boolean, msg: ⇒ Any): Chart
- def ensuring(cond: Boolean): Chart
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
listenTo(ps: Publisher*): Unit
- Definition Classes
- Reactor
-
val
listeners: RefSet[Reaction] { val underlying: scala.collection.mutable.HashSet[scala.ref.Reference[scala.swing.Reactions.Reaction]] }
- Attributes
- protected
- Definition Classes
- Publisher
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
publish(e: Event): Unit
- Definition Classes
- Publisher
-
val
reactions: Reactions
- Definition Classes
- Reactor
-
def
show(): Unit
[use case] Shows the chart in a window.
[use case]Shows the chart in a window.
- Definition Classes
- DisplayableChart
Full Signaturedef show(title: String = "", resolution: (Int, Int) = Chart.Default.Resolution, scrollable: Boolean = false): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
title: String
Returns the title of this chart.
-
def
title_=(title: String): Unit
Sets the title of this chart.
-
def
toComponent(useBuffer: Boolean = Chart.Default.BufferUsed): Component
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
-
def
toComponent: Component
Wraps this chart in a swing component.
Wraps this chart in a swing component.
- Definition Classes
- DisplayableChart
-
def
toFrame(): Frame
[use case] Wraps a frame around this chart.
[use case]Wraps a frame around this chart.
- Definition Classes
- DisplayableChart
Full Signaturedef toFrame(title: String = "", scrollable: Boolean = true): Frame
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (Chart, B)
-
object
subtitles
extends Buffer[Title]
Contains this charts subtitles and legends.