Class AbstractDistributions<Component,Color,Row,Column,Value,Bin>
- java.lang.Object
-
- com.macrofocus.high_d.distributions.AbstractDistributions<Component,Color,Row,Column,Value,Bin>
-
- All Implemented Interfaces:
Distributions<Component,Color,Row,Column,Value,Bin>
- Direct Known Subclasses:
SwingDistributions
public abstract class AbstractDistributions<Component,Color,Row,Column,Value,Bin> extends java.lang.Object implements Distributions<Component,Color,Row,Column,Value,Bin>
-
-
Field Summary
Fields Modifier and Type Field Description protected DistributionsController
controller
protected static LicenseModel
licenseModel
protected DistributionsView<Component,Color,Row,Column,Value,Bin>
view
-
Constructor Summary
Constructors Constructor Description AbstractDistributions()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract DistributionsController
createController(DistributionsView view)
Creates a controller that can be used by the parallel coordinates componentprotected abstract DistributionsModel<Color,Row,Column,Value,Bin>
createModel(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Creates a model that can be used by the parallel coordinates componentprotected abstract DistributionsView<Component,Color,Row,Column,?,?>
createView()
Creates a view that can be used by the parallel coordinates componentDistributionsController
getController()
Returns the controller used by the parallel coordinates component.DistributionsModel<Color,Row,Column,Value,Bin>
getModel()
Returns the model used by the parallel coordinates component.DistributionsView<Component,Color,Row,Column,Value,Bin>
getView()
Returns the view used by the parallel coordinates component.protected void
load(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Loads the specified data frame.void
setController(DistributionsController 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 Distributions.void
setModel(DistributionsModel<Color,Row,Column,Value,Bin> model)
Sets the model to be used for the parallel coordinates component and register it to the view.void
setView(DistributionsView<Component,Color,Row,Column,Value,Bin> 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.distributions.Distributions
getNativeComponent
-
-
-
-
Field Detail
-
licenseModel
protected static LicenseModel licenseModel
-
controller
protected DistributionsController 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 Distributions. 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 DistributionsModel<Color,Row,Column,Value,Bin> getModel()
Description copied from interface:Distributions
Returns the model used by the parallel coordinates component.
-
setModel
public void setModel(DistributionsModel<Color,Row,Column,Value,Bin> model)
Description copied from interface:Distributions
Sets the model to be used for the parallel coordinates component and register it to the view.
-
getView
public DistributionsView<Component,Color,Row,Column,Value,Bin> getView()
Description copied from interface:Distributions
Returns the view used by the parallel coordinates component.
-
setView
public void setView(DistributionsView<Component,Color,Row,Column,Value,Bin> view)
Description copied from interface:Distributions
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 DistributionsController getController()
Description copied from interface:Distributions
Returns the controller used by the parallel coordinates component.- Specified by:
getController
in interfaceDistributions<Component,Color,Row,Column,Value,Bin>
- Returns:
- the controller in use
-
setController
public void setController(DistributionsController controller)
Description copied from interface:Distributions
Sets the controller to be used by the parallel coordinates component and register the view currently in use.- Specified by:
setController
in interfaceDistributions<Component,Color,Row,Column,Value,Bin>
- Parameters:
controller
- the controller in use
-
createModel
protected abstract DistributionsModel<Color,Row,Column,Value,Bin> 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 DistributionsModel instance
-
createView
protected abstract DistributionsView<Component,Color,Row,Column,?,?> createView()
Creates a view that can be used by the parallel coordinates component- Returns:
- a DistributionsView instance
-
createController
protected abstract DistributionsController createController(DistributionsView view)
Creates a controller that can be used by the parallel coordinates component- Parameters:
view
- the view that should be controlled- Returns:
- a DistributionsController instance
-
-