Class BarChart
java.lang.Object
xal.extension.widgets.plot.barchart.BarChart
The wrapper for the FunctionGraphsJPanel to show the bar chart
- Author:
- shishlo created October 10, 2005
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all dataReturns the BarColumnColor instance of the BarChart object.Returns only the graph panelgetPanel()Returns the JPanel instance with a Bar Chartstatic voidTest methodvoidsetAxisNameX(String name) Sets the new name of the X-axisvoidsetAxisNameY(String name) Sets the new name of the Y-axisvoidsetBarColumns(Vector<BarColumn> clmns) Sets the list of bar columns to the BarChart objectvoidSets the font of the Bar ChartvoidSets the title of the BarChart objectvoidsetTitleColor(Color color) Sets the title color of the BarChart objectvoidUpdates graphics part of the bar chart
-
Constructor Details
-
BarChart
public BarChart()Constructor for the BarChart object
-
-
Method Details
-
getPanel
Returns the JPanel instance with a Bar Chart- Returns:
- The panel instance
-
getGraphPanel
Returns only the graph panel- Returns:
- The graph panel instance which is inside of the BarChart panel
-
setAxisNameX
Sets the new name of the X-axis- Parameters:
name- The new name
-
setAxisNameY
Sets the new name of the Y-axis- Parameters:
name- The new name
-
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
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
Sets the font of the Bar Chart- Parameters:
fnt- The new font
-
setTitle
Sets the title of the BarChart object- Parameters:
title- The new title
-
setTitleColor
Sets the title color of the BarChart object- Parameters:
color- The new title color
-
main
Test method- Parameters:
args- No arguments needed
-