Packages

  • package root
    Definition Classes
    root
  • package scalax
    Definition Classes
    root
  • package chart

    This package contains a library for creating and working with charts.

    This package contains a library for creating and working with charts. It wraps JFreeChart, much like scala.swing does with the original javax.swing package.

    Getting Started

    There is an all you can eat import providing all the high-level functionality of this library:

    import scalax.chart.api._
    
    val data = for (i <- 1 to 5) yield (i,i)
    val chart = XYLineChart(data)
    chart.saveAsPNG("/tmp/chart.png")

    All of the functionality of the api object is also contained by module.Charting, which you can either import or use as a mixin:

    object MyChartApp extends App with scalax.chart.module.Charting {
      val data = for (i <- 1 to 5) yield (i,i)
      val chart = XYLineChart(data)
      chart.saveAsPNG("/tmp/chart.png")
    }

    The module package provides a la carte imports, which you can import or mix in for only parts of the API. To find out more about the modules in detail, have a look at the documentation of the module.Charting module. From there on you can discover the modules one by one.

    Definition Classes
    scalax
  • package event
    Definition Classes
    chart
  • package exporting
    Definition Classes
    chart
  • package module

    This package provides a la carte imports.

    This package provides a la carte imports. It is organized into modules following the Scala's Selfless Trait Pattern. Some of these modules depend on each other. In this case, there is often a short documentation in the higher-level module and links to the lower-level modules. Have a look for yourself and start at the highest-level all you can eat module Charting.

    Definition Classes
    chart
  • Axis
  • CategoryChart
  • Chart
  • ChartCompanion
  • DocMacros
  • MultiplePieChart
  • PieChart
  • RingChart
  • SpiderWebChart
  • XYChart
  • api

abstract class CategoryChart extends Chart with Orientable with Labels[chart.module.CategoryToolTipGenerators.CategoryLabelGenerator] with Tooltips[chart.module.CategoryToolTipGenerators.CategoryToolTipGenerator]

Represents categorized numeric data. These charts have a domain axis that consists of the categories and a numeric range axis.

Source
CategoryChart.scala
Linear Supertypes
Tooltips[module.CategoryToolTipGenerators.CategoryToolTipGenerator], Labels[module.CategoryToolTipGenerators.CategoryLabelGenerator], Orientable, Oriented, Chart, Publisher, Reactor, DisplayableChart, DocMacros, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CategoryChart
  2. Tooltips
  3. Labels
  4. Orientable
  5. Oriented
  6. Chart
  7. Publisher
  8. Reactor
  9. DisplayableChart
  10. DocMacros
  11. AnyRef
  12. 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 CategoryChart()
    Attributes
    protected

Type Members

  1. type Plot = CategoryPlot

    Returns the underlying plot type.

    Returns the underlying plot type.

    Definition Classes
    CategoryChartChart

Abstract Value Members

  1. abstract def peer: module.Imports.JFreeChart

    Returns the underlying chart.

    Returns the underlying chart.

    Definition Classes
    Chart

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from CategoryChart to any2stringadd[CategoryChart] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (CategoryChart, B)
    Implicit
    This member is added by an implicit conversion from CategoryChart to ArrowAssoc[CategoryChart] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def antiAlias: Boolean

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

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

    Definition Classes
    Chart
  7. def antiAlias_=(a: Boolean): Unit

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

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

    Definition Classes
    Chart
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def backgroundPaint: module.Imports.Paint

    Returns the paint used for the chart background.

    Returns the paint used for the chart background.

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

    Sets the paint used for the chart background.

    Sets the paint used for the chart background.

    Definition Classes
    Chart
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def deafTo(ps: Publisher*): Unit
    Definition Classes
    Reactor
  13. def ensuring(cond: (CategoryChart) ⇒ Boolean, msg: ⇒ Any): CategoryChart
    Implicit
    This member is added by an implicit conversion from CategoryChart to Ensuring[CategoryChart] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (CategoryChart) ⇒ Boolean): CategoryChart
    Implicit
    This member is added by an implicit conversion from CategoryChart to Ensuring[CategoryChart] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): CategoryChart
    Implicit
    This member is added by an implicit conversion from CategoryChart to Ensuring[CategoryChart] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): CategoryChart
    Implicit
    This member is added by an implicit conversion from CategoryChart to Ensuring[CategoryChart] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from CategoryChart to StringFormat[CategoryChart] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def labelGenerator: Option[module.CategoryToolTipGenerators.CategoryLabelGenerator]

    Optionally returns this charts label generator.

    Optionally returns this charts label generator.

    Definition Classes
    CategoryChart → Labels
  25. def labelGenerator_=(generator: Option[module.CategoryToolTipGenerators.CategoryLabelGenerator]): Unit

    Sets this charts label generator.

    Sets this charts label generator.

    Definition Classes
    CategoryChart → Labels
  26. final def labelGenerator_=(generator: module.CategoryToolTipGenerators.CategoryLabelGenerator): Unit

    Sets this charts label generator.

    Sets this charts label generator.

    Definition Classes
    Labels
  27. def listenTo(ps: Publisher*): Unit
    Definition Classes
    Reactor
  28. val listeners: RefSet[Reaction] { val underlying: scala.collection.mutable.HashSet[scala.ref.Reference[scala.swing.Reactions.Reaction]] }
    Attributes
    protected
    Definition Classes
    Publisher
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  32. def orientation: module.CategoryToolTipGenerators.Orientation
    Definition Classes
    CategoryChart → Oriented
  33. def orientation_=(orientation: module.CategoryToolTipGenerators.Orientation): Unit
    Definition Classes
    CategoryChart → Orientable
  34. def plot: module.CategoryToolTipGenerators.CategoryPlot

    Returns the underlying plot.

    Returns the underlying plot.

    Definition Classes
    CategoryChartChart
  35. def publish(e: Event): Unit
    Definition Classes
    Publisher
  36. val reactions: Reactions
    Definition Classes
    Reactor
  37. def show(): Unit

    [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

  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def title: String

    Returns the title of this chart.

    Returns the title of this chart.

    Definition Classes
    Chart
  40. def title_=(title: String): Unit

    Sets the title of this chart.

    Sets the title of this chart.

    Definition Classes
    Chart
  41. 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
  42. def toComponent: Component

    Wraps this chart in a swing component.

    Wraps this chart in a swing component.

    Definition Classes
    DisplayableChart
  43. def toFrame(): Frame

    [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

  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. def tooltipGenerator: Option[module.CategoryToolTipGenerators.CategoryToolTipGenerator]

    Optionally returns the tooltip generator.

    Optionally returns the tooltip generator.

    Definition Classes
    CategoryChart → Tooltips
  46. def tooltipGenerator_=(generator: Option[module.CategoryToolTipGenerators.CategoryToolTipGenerator]): Unit

    Optionally sets the tooltip generator.

    Optionally sets the tooltip generator.

    Definition Classes
    CategoryChart → Tooltips
  47. final def tooltipGenerator_=(generator: module.CategoryToolTipGenerators.CategoryToolTipGenerator): Unit

    Sets the tooltip generator.

    Sets the tooltip generator.

    Definition Classes
    Tooltips
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def [B](y: B): (CategoryChart, B)
    Implicit
    This member is added by an implicit conversion from CategoryChart to ArrowAssoc[CategoryChart] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
  52. object subtitles extends Buffer[Title]

    Contains this charts subtitles and legends.

    Contains this charts subtitles and legends.

    Definition Classes
    Chart

Inherited from Orientable

Inherited from Oriented

Inherited from Chart

Inherited from Publisher

Inherited from Reactor

Inherited from DisplayableChart

Inherited from DocMacros

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped