Class SwingScatterPlotMatrix<R,​C>

  • All Implemented Interfaces:
    ScatterPlotMatrix<javax.swing.JComponent,​java.awt.Color,​R,​C>

    public class SwingScatterPlotMatrix<R,​C>
    extends AbstractScatterPlotMatrix<javax.swing.JComponent,​java.awt.Color,​R,​C>
    Created by luc on 25/04/16.
    • Constructor Detail

      • SwingScatterPlotMatrix

        public SwingScatterPlotMatrix()
        Creates a ScatterPlotMatrix component with default settings and configuration.
      • SwingScatterPlotMatrix

        public SwingScatterPlotMatrix​(ScatterPlotMatrixModel model)
        Creates a ScatterPlotMatrix component with the its native data model.
        Parameters:
        model - a ScatterPlotMatrixModel
      • SwingScatterPlotMatrix

        public SwingScatterPlotMatrix​(com.macrofocus.molap.dataframe.DataFrame dataFrame)
        Creates a ScatterPlotMatrix component with the specified Swing TableModel.
        Parameters:
        dataFrame - a Swing TableModel
    • 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 ScatterPlotMatrix. 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 Swing TableModel.
        Overrides:
        load in class AbstractScatterPlotMatrix<javax.swing.JComponent,​java.awt.Color,​R,​C>
        Parameters:
        dataFrame - a Swing TableModel
      • createScatterPlotMatrixModel

        protected ScatterPlotMatrixModel createScatterPlotMatrixModel​(com.macrofocus.molap.dataframe.DataFrame dataFrame)
        Creates a model that can be used by the parallel coordinates component
        Specified by:
        createScatterPlotMatrixModel in class AbstractScatterPlotMatrix<javax.swing.JComponent,​java.awt.Color,​R,​C>
        Parameters:
        dataFrame - a Swing TableModel
        Returns:
        a ParallelCoordinatesModel instance
      • getNativeComponent

        public javax.swing.JComponent getNativeComponent()
      • main

        public static void main​(java.lang.String[] args)
        Sort of a Hello World! application to demonstrate the most basic use of the ParallelCoordinates API