Class BarChart

java.lang.Object
xal.extension.widgets.plot.barchart.BarChart

public class BarChart extends Object
The wrapper for the FunctionGraphsJPanel to show the bar chart
Author:
shishlo created October 10, 2005
  • Constructor Details

    • BarChart

      public BarChart()
      Constructor for the BarChart object
  • Method Details

    • getPanel

      public JPanel getPanel()
      Returns the JPanel instance with a Bar Chart
      Returns:
      The panel instance
    • getGraphPanel

      public FunctionGraphsJPanel getGraphPanel()
      Returns only the graph panel
      Returns:
      The graph panel instance which is inside of the BarChart panel
    • setAxisNameX

      public void setAxisNameX(String name)
      Sets the new name of the X-axis
      Parameters:
      name - The new name
    • setAxisNameY

      public void setAxisNameY(String name)
      Sets the new name of the Y-axis
      Parameters:
      name - The new name
    • getBarColumnColor

      public BarColumnColor getBarColumnColor()
      Returns the BarColumnColor instance of the BarChart object. User can use it if the color schema should be changed.
      Returns:
      The BarColumnColor instance
    • clear

      public void clear()
      Clear all data
    • setBarColumns

      public void setBarColumns(Vector<BarColumn> clmns)
      Sets the list of bar columns to the BarChart object
      Parameters:
      clmns - The new list of bar columns
    • updateChart

      public void updateChart()
      Updates graphics part of the bar chart
    • setFont

      public void setFont(Font fnt)
      Sets the font of the Bar Chart
      Parameters:
      fnt - The new font
    • setTitle

      public void setTitle(String title)
      Sets the title of the BarChart object
      Parameters:
      title - The new title
    • setTitleColor

      public void setTitleColor(Color color)
      Sets the title color of the BarChart object
      Parameters:
      color - The new title color
    • main

      public static void main(String[] args)
      Test method
      Parameters:
      args - No arguments needed