Class SwingParallelCoordinatesMatrix<R,C>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.macrofocus.high_d.parallelcoordinatesmatrix.swing.SwingParallelCoordinatesMatrix<R,C>
All Implemented Interfaces:
ParallelCoordinatesMatrix<JComponent,Color,R,C>, ImageObserver, MenuContainer, Serializable

public class SwingParallelCoordinatesMatrix<R,C> extends JComponent implements ParallelCoordinatesMatrix<JComponent,Color,R,C>
See Also:
  • Constructor Details

    • SwingParallelCoordinatesMatrix

      public SwingParallelCoordinatesMatrix()
      Creates a ParallelCoordinates component with default settings and configuration.
    • SwingParallelCoordinatesMatrix

      public SwingParallelCoordinatesMatrix(ParallelCoordinatesMatrixModel model)
      Creates a ParallelCoordinates component with the its native data model.
      Parameters:
      model - a ParallelCoordinatesModel
    • SwingParallelCoordinatesMatrix

      public SwingParallelCoordinatesMatrix(com.macrofocus.molap.dataframe.DataFrame<R,C,?> dataFrame)
      Creates a ParallelCoordinates component with the specified Swing TableModel.
      Parameters:
      dataFrame - a Swing TableModel
  • Method Details

    • setLicenseKey

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

      public ParallelCoordinatesMatrixModel getModel()
      Returns the model used by the parallel coordinates component.
      Returns:
      the model in use
    • setModel

      public void setModel(ParallelCoordinatesMatrixModel model)
      Sets the model to be used for the parallel coordinates component and register it to the view.
      Specified by:
      setModel in interface ParallelCoordinatesMatrix<JComponent,Color,R,C>
      Parameters:
      model - the model to be used
    • getView

      Returns the view used by the parallel coordinates component.
      Specified by:
      getView in interface ParallelCoordinatesMatrix<JComponent,Color,R,C>
      Returns:
      the view in use
    • setView

      public void setView(ParallelCoordinatesMatrixView view)
      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.
      Parameters:
      view - the view to be used
    • getController

      public ParallelCoordinatesMatrixController getController()
      Returns the controller used by the parallel coordinates component.
      Returns:
      the controller in use
    • setController

      public void setController(ParallelCoordinatesMatrixController controller)
      Sets the controller to be used by the parallel coordinates component and register the view currently in use.
      Parameters:
      controller - the controller in use
    • createParallelCoordinatesMatrixModel

      protected ParallelCoordinatesMatrixModel createParallelCoordinatesMatrixModel(com.macrofocus.molap.dataframe.DataFrame<R,C,?> dataFrame)
      Creates a model that can be used by the parallel coordinates component
      Parameters:
      dataFrame - a Swing TableModel
      Returns:
      a ParallelCoordinatesModel instance
    • createView

      protected ParallelCoordinatesMatrixView createView()
      Creates a view that can be used by the parallel coordinates component
      Returns:
      a ParallelCoordinatesView instance
    • createController

      Creates a controller that can be used by the parallel coordinates component
      Parameters:
      view - the view that should be controlled
      Returns:
    • getNativeComponent

      public JComponent getNativeComponent()
      Specified by:
      getNativeComponent in interface ParallelCoordinatesMatrix<JComponent,Color,R,C>
    • main

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