Class AbstractScatterPlotMatrix<Component,Color,R,C>
- java.lang.Object
-
- com.macrofocus.high_d.scatterplotmatrix.AbstractScatterPlotMatrix<Component,Color,R,C>
-
- All Implemented Interfaces:
ScatterPlotMatrix<Component,Color,R,C>
- Direct Known Subclasses:
SwingScatterPlotMatrix
public abstract class AbstractScatterPlotMatrix<Component,Color,R,C> extends java.lang.Object implements ScatterPlotMatrix<Component,Color,R,C>
Created by luc on 25/04/16.
-
-
Field Summary
Fields Modifier and Type Field Description protected ScatterPlotMatrixController
controller
protected static LicenseModel
licenseModel
protected ScatterPlotMatrixView<Component,Color,R,C>
view
-
Constructor Summary
Constructors Constructor Description AbstractScatterPlotMatrix()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ScatterPlotMatrixController
createController(ScatterPlotMatrixView view)
Creates a controller that can be used by the parallel coordinates componentprotected abstract ScatterPlotMatrixModel
createScatterPlotMatrixModel(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Creates a model that can be used by the parallel coordinates componentprotected abstract ScatterPlotMatrixView
createView()
Creates a view that can be used by the parallel coordinates componentScatterPlotMatrixController
getController()
Returns the controller used by the parallel coordinates component.ScatterPlotMatrixModel
getModel()
Returns the model used by the scatter plot component.ScatterPlotMatrixView<Component,Color,R,C>
getView()
Returns the view used by the parallel coordinates component.protected void
load(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Loads the specified Swing TableModel.void
setController(ScatterPlotMatrixController controller)
Sets the controller to be used by the parallel coordinates component and register the view currently in use.static void
setLicenseKey(java.lang.String username, java.lang.String key)
Register the license key that legally entitle the use of ScatterPlotMatrix.void
setModel(ScatterPlotMatrixModel model)
Sets the model to be used for the scatter plot component and register it to the view.void
setView(ScatterPlotMatrixView<Component,Color,R,C> view)
Sets the view to be used by the parallel coordinates component and register the model currently in use.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.high_d.scatterplotmatrix.ScatterPlotMatrix
getNativeComponent
-
-
-
-
Field Detail
-
licenseModel
protected static LicenseModel licenseModel
-
view
protected ScatterPlotMatrixView<Component,Color,R,C> view
-
controller
protected ScatterPlotMatrixController controller
-
-
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 namekey
- the license key
-
load
protected void load(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Loads the specified Swing TableModel.- Parameters:
dataFrame
- a Swing TableModel
-
getModel
public ScatterPlotMatrixModel getModel()
Returns the model used by the scatter plot component.
-
setModel
public void setModel(ScatterPlotMatrixModel model)
Sets the model to be used for the scatter plot component and register it to the view.
-
getView
public ScatterPlotMatrixView<Component,Color,R,C> getView()
Returns the view used by the parallel coordinates component.
-
setView
public void setView(ScatterPlotMatrixView<Component,Color,R,C> 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.
-
getController
public ScatterPlotMatrixController getController()
Returns the controller used by the parallel coordinates component.- Specified by:
getController
in interfaceScatterPlotMatrix<Component,Color,R,C>
- Returns:
- the controller in use
-
setController
public void setController(ScatterPlotMatrixController controller)
Sets the controller to be used by the parallel coordinates component and register the view currently in use.- Specified by:
setController
in interfaceScatterPlotMatrix<Component,Color,R,C>
- Parameters:
controller
- the controller in use
-
createScatterPlotMatrixModel
protected abstract ScatterPlotMatrixModel createScatterPlotMatrixModel(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 ParallelCoordinatesModel instance
-
createView
protected abstract ScatterPlotMatrixView createView()
Creates a view that can be used by the parallel coordinates component- Returns:
- a ParallelCoordinatesView instance
-
createController
protected abstract ScatterPlotMatrixController createController(ScatterPlotMatrixView view)
Creates a controller that can be used by the parallel coordinates component- Parameters:
view
- the view that should be controlled- Returns:
-
-