Class AbstractBarChart<Component,​Color,​Row,​Column>

  • All Implemented Interfaces:
    BarChart<Component,​Color,​Row,​Column>
    Direct Known Subclasses:
    SwingBarChart

    public abstract class AbstractBarChart<Component,​Color,​Row,​Column>
    extends java.lang.Object
    implements BarChart<Component,​Color,​Row,​Column>
    • Method Detail

      • setLicenseKey

        public static void setLicenseKey​(java.lang.String username,
                                         java.lang.String key)
        Register the license key that legally entitle the use of BarChart. This should be called prior to the first instantiation of this component.
        Parameters:
        username - the user name
        key - the license key
      • load

        protected void load​(com.macrofocus.molap.dataframe.DataFrame dataFrame)
        Loads the specified data frame.
        Parameters:
        dataFrame - a data frame
      • setView

        public void setView​(BarChartView<Component,​Color,​Row,​Column> view)
        Description copied from interface: BarChart
        Sets the view to be used by the parallel coordinates component and register the model currently in use. It will also register itself to the controller.
        Specified by:
        setView in interface BarChart<Component,​Color,​Row,​Column>
        Parameters:
        view - the view to be used
      • setController

        public void setController​(BarChartController controller)
        Description copied from interface: BarChart
        Sets the controller to be used by the parallel coordinates component and register the view currently in use.
        Specified by:
        setController in interface BarChart<Component,​Color,​Row,​Column>
        Parameters:
        controller - the controller in use
      • createModel

        protected abstract BarChartModel<Color,​Row,​Column> createModel​(com.macrofocus.molap.dataframe.DataFrame dataFrame)
        Creates a model that can be used by the parallel coordinates component
        Parameters:
        dataFrame - a Swing TableModel
        Returns:
        a BarChartModel instance
      • createView

        protected abstract BarChartView<Component,​Color,​Row,​Column> createView()
        Creates a view that can be used by the parallel coordinates component
        Returns:
        a BarChartView instance
      • createController

        protected abstract BarChartController createController​(BarChartView view)
        Creates a controller that can be used by the parallel coordinates component
        Parameters:
        view - the view that should be controlled
        Returns:
        a BarChartController instance