Class JBarChart

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, org.jfree.chart.event.ChartChangeListener

    public class JBarChart
    extends AbstractCategoryChart
    A JavaBean that displays a bar chart.
    See Also:
    Serialized Form
    • Constructor Detail

      • JBarChart

        public JBarChart()
        Creates a new bar chart bean.
    • Method Detail

      • getDataset

        public org.jfree.data.category.CategoryDataset getDataset()
        Returns the dataset used by the chart.
        Returns:
        The dataset (possibly null).
        See Also:
        setDataset(CategoryDataset)
      • setDataset

        public void setDataset​(org.jfree.data.category.CategoryDataset dataset)
        Sets the dataset used by the chart and fires a PropertyChangeEvent for the dataset property.
        Parameters:
        dataset - the dataset (null permitted).
        See Also:
        getDataset()
      • setBarOutlineVisible

        public void setBarOutlineVisible​(boolean visible)
        Sets the flag that controls whether or not the bar outlines are drawn and fires a PropertyChangeEvent for the barOutlineVisible property.
        Parameters:
        visible - the new flag value.
        See Also:
        isBarOutlineVisible()
      • setBarItemMargin

        public void setBarItemMargin​(double margin)
        Sets the margin between items within each category and fires a PropertyChangeEvent for the barItemMargin property.
        Parameters:
        margin - the new margin value.
        See Also:
        getBarItemMargin()
      • setBarBaseValue

        public void setBarBaseValue​(double base)
        Sets the bar base value and fires a PropertyChangeEvent for the barBaseValue property.
        Parameters:
        base - the new base value.
        See Also:
        getBarBaseValue()