Class AbstractScatterPlot<Component,Color,Font,Row,Column>
- java.lang.Object
-
- com.macrofocus.high_d.scatterplot.AbstractScatterPlot<Component,Color,Font,Row,Column>
-
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<Component>,ScatterPlot<Component,Color,Font,Row,Column>
- Direct Known Subclasses:
AbstractMDS,SwingScatterPlot
public abstract class AbstractScatterPlot<Component,Color,Font,Row,Column> extends java.lang.Object implements ScatterPlot<Component,Color,Font,Row,Column>
-
-
Field Summary
Fields Modifier and Type Field Description protected ScatterPlotControllercontrollerprotected static LicenseModellicenseModelprotected ScatterPlotView<Component,Color,Font,Row,Column>view
-
Constructor Summary
Constructors Constructor Description AbstractScatterPlot()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ScatterPlotControllercreateController(ScatterPlotView view)Creates a controller that can be used by the parallel coordinates componentprotected abstract ScatterPlotModel<Color,Row,Column>createModel(com.macrofocus.molap.dataframe.DataFrame dataFrame)Creates a model that can be used by the parallel coordinates componentprotected abstract ScatterPlotView<Component,Color,Font,Row,Column>createView()Creates a view that can be used by the parallel coordinates componentScatterPlotControllergetController()Returns the controller used by thescatter plot component.ScatterPlotModel<Color,Row,Column>getModel()Returns the model used by the scatter plot component.ScatterPlotView<Component,Color,Font,Row,Column>getView()Returns the view used by the parallel coordinates component.protected voidload(com.macrofocus.molap.dataframe.DataFrame dataFrame)Loads the specified data frame.voidsetController(ScatterPlotController controller)Sets the controller to be used by the scatter plot component and register the view currently in use.static voidsetLicenseKey(java.lang.String username, java.lang.String key)Register the license key that legally entitle the use of ScatterPlot.voidsetModel(ScatterPlotModel<Color,Row,Column> model)Sets the model to be used for the scatter plot component and register it to the view.voidsetView(ScatterPlotView<Component,Color,Font,Row,Column> view)Sets the view to be used by the scatter plot component and register the model currently in use.
-
-
-
Field Detail
-
controller
protected ScatterPlotController controller
-
licenseModel
protected static LicenseModel licenseModel
-
-
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 ScatterPlot. 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 data frame.- Parameters:
dataFrame- a data frame
-
getModel
public ScatterPlotModel<Color,Row,Column> getModel()
Description copied from interface:ScatterPlotReturns the model used by the scatter plot component.
-
setModel
public void setModel(ScatterPlotModel<Color,Row,Column> model)
Description copied from interface:ScatterPlotSets the model to be used for the scatter plot component and register it to the view.
-
getView
public ScatterPlotView<Component,Color,Font,Row,Column> getView()
Description copied from interface:ScatterPlotReturns the view used by the parallel coordinates component.
-
setView
public void setView(ScatterPlotView<Component,Color,Font,Row,Column> view)
Description copied from interface:ScatterPlotSets the view to be used by the scatter plot component and register the model currently in use. It will also register itself to the controller.
-
getController
public ScatterPlotController getController()
Description copied from interface:ScatterPlotReturns the controller used by thescatter plot component.- Specified by:
getControllerin interfaceScatterPlot<Component,Color,Font,Row,Column>- Returns:
- the controller in use
-
setController
public void setController(ScatterPlotController controller)
Description copied from interface:ScatterPlotSets the controller to be used by the scatter plot component and register the view currently in use.- Specified by:
setControllerin interfaceScatterPlot<Component,Color,Font,Row,Column>- Parameters:
controller- the controller in use
-
createModel
protected abstract ScatterPlotModel<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 ScatterPlotModel instance
-
createView
protected abstract ScatterPlotView<Component,Color,Font,Row,Column> createView()
Creates a view that can be used by the parallel coordinates component- Returns:
- a ScatterPlotView instance
-
createController
protected abstract ScatterPlotController createController(ScatterPlotView view)
Creates a controller that can be used by the parallel coordinates component- Parameters:
view- the view that should be controlled- Returns:
- a ScatterPlotController instance
-
-