Class MultiBarGraph


  • public class MultiBarGraph
    extends AbstractBarGraph

    A concrete subclass of AbstractBarGraph that describes Bar Graphs with multiple datasets plotted next to eachother on a single X axis. Useful to plot the same type of data as a DepthBarGraph but in two dimensions.

    As the usage of a MultiBarGraph is identical to a DepthBarGraph, please see that class for an example.

    Since:
    1.0.4
    • Constructor Detail

      • MultiBarGraph

        public MultiBarGraph()
    • Method Detail

      • setColor

        public void setColor​(java.lang.String set,
                             java.awt.Paint color)
        Set the color for an entry.
      • set

        public void set​(java.lang.String xset,
                        java.lang.String yset,
                        double val)
        Set the value of the specified entry.
        Parameters:
        xset - the entry on the X-axis to plot the value against
        yset - the position in the X-axis square to plot the value against
        val - the value to plot
        Throws:
        java.lang.IllegalArgumentException - if paramater val is infinite.
      • plotBar

        protected void plotBar​(int ix,
                               int iy,
                               int iz,
                               double endval)
        Description copied from class: AbstractBarGraph
        Needs to be completed by concrete subclasses of this class.
        Specified by:
        plotBar in class AbstractBarGraph
        Parameters:
        ix - The X position of this value
        iy - The Y position of this value
        iz - The Z position of this value
        endval - The value to plot.