Packages

case class BarChart[T](parent: FramePanel, values: Varying[Seq[T]], labels: Seq[String] = Seq(), min: Option[Int] = None, max: Option[Int] = None, palette: Seq[Int] = Palettes.default, showLabels: Boolean = true, showValues: Boolean = true)(implicit evidence$1: Numeric[T], screen: Scurses) extends Widget with Product with Serializable

Widget that displays a horizontal bar chart, given a sequence of values.

parent

Parent panel in which the widget will be added

values

Sequence of values to display on the chart

labels

Sequence of names (labels) associated with each value, in order

min

Minimum value to display on the chart (scales to content by default)

max

Maximum value to display on the chart (scales to content by default)

palette

Color palette to use for the bars

showLabels

Enables the display of the labels

showValues

Enables the display of the axis values

screen

Implicit Scurses screen

Linear Supertypes
Serializable, Serializable, Product, Equals, Widget, Component, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BarChart
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Widget
  7. Component
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BarChart(parent: FramePanel, values: Varying[Seq[T]], labels: Seq[String] = Seq(), min: Option[Int] = None, max: Option[Int] = None, palette: Seq[Int] = Palettes.default, showLabels: Boolean = true, showValues: Boolean = true)(implicit arg0: Numeric[T], screen: Scurses)

    parent

    Parent panel in which the widget will be added

    values

    Sequence of values to display on the chart

    labels

    Sequence of names (labels) associated with each value, in order

    min

    Minimum value to display on the chart (scales to content by default)

    max

    Maximum value to display on the chart (scales to content by default)

    palette

    Color palette to use for the bars

    showLabels

    Enables the display of the labels

    showValues

    Enables the display of the axis values

    screen

    Implicit Scurses screen

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. val df: DecimalFormat
  7. def draw(focus: Boolean, theme: ColorScheme): Unit
    Definition Classes
    Widget
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def focusable: Boolean
    Definition Classes
    BarChartWidget
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. val gridWidth: Int
  13. def handleKeypress(keypress: Int): Unit
    Definition Classes
    BarChartWidget
  14. def innerHeight: Int
    Definition Classes
    BarChartComponent
  15. def innerWidth: Int
    Definition Classes
    WidgetComponent
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val labels: Seq[String]
  18. val max: Option[Int]
  19. val min: Option[Int]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. var needsRedraw: Boolean
    Definition Classes
    Widget
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val palette: Seq[Int]
  25. val parent: FramePanel
  26. def redraw(focus: Boolean, theme: ColorScheme): Unit
    Definition Classes
    BarChartWidget
  27. def redraw(): Unit
    Definition Classes
    Component
  28. val showLabels: Boolean
  29. val showValues: Boolean
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    Widget → AnyRef → Any
  32. def topLevel: Component
    Definition Classes
    Component
  33. val values: Varying[Seq[T]]
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Widget

Inherited from Component

Inherited from AnyRef

Inherited from Any

Ungrouped