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
- Alphabetic
- By Inheritance
- BarChart
- Serializable
- Serializable
- Product
- Equals
- Widget
- Component
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val df: DecimalFormat
-
def
draw(focus: Boolean, theme: ColorScheme): Unit
- Definition Classes
- Widget
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def focusable: Boolean
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val gridWidth: Int
- def handleKeypress(keypress: Int): Unit
- def innerHeight: Int
- def innerWidth: Int
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val labels: Seq[String]
- val max: Option[Int]
- val min: Option[Int]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
var
needsRedraw: Boolean
- Definition Classes
- Widget
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val palette: Seq[Int]
- val parent: FramePanel
- def redraw(focus: Boolean, theme: ColorScheme): Unit
-
def
redraw(): Unit
- Definition Classes
- Component
- val showLabels: Boolean
- val showValues: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Widget → AnyRef → Any
-
def
topLevel: Component
- Definition Classes
- Component
- val values: Varying[Seq[T]]
-
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
- @native() @throws( ... )