Class BarChart

java.lang.Object
com.googlecode.lanterna.gui2.AbstractComponent<BarChart>
net.thevpc.common.lanterna.BarChart
All Implemented Interfaces:
com.googlecode.lanterna.gui2.Component, com.googlecode.lanterna.gui2.TextGUIElement, ComponentExt

public class BarChart extends com.googlecode.lanterna.gui2.AbstractComponent<BarChart> implements ComponentExt
  • Constructor Details

    • BarChart

      public BarChart()
    • BarChart

      public BarChart(int size)
  • Method Details

    • getModelCount

      public int getModelCount()
    • getMinimumSize

      public com.googlecode.lanterna.TerminalSize getMinimumSize()
      Specified by:
      getMinimumSize in interface ComponentExt
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface com.googlecode.lanterna.gui2.Component
      Specified by:
      isVisible in interface ComponentExt
      Overrides:
      isVisible in class com.googlecode.lanterna.gui2.AbstractComponent<BarChart>
    • setVisible

      public BarChart setVisible(boolean visible)
      Specified by:
      setVisible in interface com.googlecode.lanterna.gui2.Component
      Specified by:
      setVisible in interface ComponentExt
      Overrides:
      setVisible in class com.googlecode.lanterna.gui2.AbstractComponent<BarChart>
    • getMinValuesCount

      public int getMinValuesCount()
    • setMinValuesCount

      public BarChart setMinValuesCount(int minValuesCount)
    • rollValue

      public void rollValue(double value, String label)
    • rollValue

      public void rollValue(double[] value, String[] label)
    • rollValue

      public void rollValue(double value, String label, int maxValues)
    • rollValue

      public void rollValue(double[] value, String[] label, int maxValues)
    • isShowLabelsOnBars

      public boolean isShowLabelsOnBars()
    • setShowLabelsOnBars

      public BarChart setShowLabelsOnBars(boolean showLabelsOnBars)
    • isShowLabelsInLegend

      public boolean isShowLabelsInLegend()
    • setShowLabelsInLegend

      public BarChart setShowLabelsInLegend(boolean showLabelsInLegend)
    • isShowLegend

      public boolean isShowLegend()
    • setShowLegend

      public BarChart setShowLegend(boolean showLegend)
    • getLabelSize

      public int getLabelSize()
    • setLabelSize

      public BarChart setLabelSize(int labelSize)
    • getRangeMin

      public double getRangeMin()
    • setRangeMin

      public BarChart setRangeMin(double rangeMin)
    • getLegendSize

      public int getLegendSize()
    • setLegendSize

      public BarChart setLegendSize(int legendSize)
    • setRange

      public BarChart setRange(double min, double max)
    • getRangeMax

      public double getRangeMax()
    • setRangeMax

      public BarChart setRangeMax(double rangeMax)
    • addValue

      public void addValue(double value)
    • addValue

      public void addValue(double[] value)
    • addValue

      public void addValue(double value, String label)
    • addValue

      public void addValue(double[] value, String[] label)
    • addLegendValue

      public void addLegendValue(double value, String label)
    • setValue

      public void setValue(int index, double value, String label)
    • setValue

      public void setValue(int index, double[] value, String[] label)
    • reset

      public void reset()
    • size

      public int size()
    • getFormatter

      public BarValueFormatter getFormatter()
    • setFormatter

      public void setFormatter(BarValueFormatter formatter)
    • getPreferredHeight

      public int getPreferredHeight()
    • setPreferredHeight

      public void setPreferredHeight(int preferredHeight)
    • createDefaultRenderer

      protected com.googlecode.lanterna.gui2.ComponentRenderer<BarChart> createDefaultRenderer()
      Specified by:
      createDefaultRenderer in class com.googlecode.lanterna.gui2.AbstractComponent<BarChart>