public class BarChart
extends java.lang.Object
Constructor and Description |
---|
BarChart()
Constructor for the BarChart object
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all data
|
BarColumnColor |
getBarColumnColor()
Returns the BarColumnColor instance of the BarChart object.
|
FunctionGraphsJPanel |
getGraphPanel()
Returns only the graph panel
|
javax.swing.JPanel |
getPanel()
Returns the JPanel instance with a Bar Chart
|
static void |
main(java.lang.String[] args)
Test method
|
void |
setAxisNameX(java.lang.String name)
Sets the new name of the X-axis
|
void |
setAxisNameY(java.lang.String name)
Sets the new name of the Y-axis
|
void |
setBarColumns(java.util.Vector<BarColumn> clmns)
Sets the list of bar columns to the BarChart object
|
void |
setFont(java.awt.Font fnt)
Sets the font of the Bar Chart
|
void |
setTitle(java.lang.String title)
Sets the title of the BarChart object
|
void |
setTitleColor(java.awt.Color color)
Sets the title color of the BarChart object
|
void |
updateChart()
Updates graphics part of the bar chart
|
public javax.swing.JPanel getPanel()
public FunctionGraphsJPanel getGraphPanel()
public void setAxisNameX(java.lang.String name)
name
- The new namepublic void setAxisNameY(java.lang.String name)
name
- The new namepublic BarColumnColor getBarColumnColor()
public void clear()
public void setBarColumns(java.util.Vector<BarColumn> clmns)
clmns
- The new list of bar columnspublic void updateChart()
public void setFont(java.awt.Font fnt)
fnt
- The new fontpublic void setTitle(java.lang.String title)
title
- The new titlepublic void setTitleColor(java.awt.Color color)
color
- The new title colorpublic static void main(java.lang.String[] args)
args
- No arguments needed