Class SwingDistributions<Row,Column,Value,Bin>
- java.lang.Object
-
- com.macrofocus.high_d.distributions.AbstractDistributions<javax.swing.JComponent,java.awt.Color,Row,Column,Value,Bin>
-
- com.macrofocus.high_d.distributions.swing.SwingDistributions<Row,Column,Value,Bin>
-
- All Implemented Interfaces:
Distributions<javax.swing.JComponent,java.awt.Color,Row,Column,Value,Bin>
public class SwingDistributions<Row,Column,Value,Bin> extends AbstractDistributions<javax.swing.JComponent,java.awt.Color,Row,Column,Value,Bin>
-
-
Field Summary
-
Fields inherited from class com.macrofocus.high_d.distributions.AbstractDistributions
controller, licenseModel, view
-
-
Constructor Summary
Constructors Constructor Description SwingDistributions()Creates a Distributions component with default settings and configuration.SwingDistributions(DistributionsModel model)Creates a Distributions component with the its native data model.SwingDistributions(com.macrofocus.molap.dataframe.DataFrame dataFrame)Creates a Distributions component with the specified Swing TableModel.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SwingDistributionsControllercreateController(DistributionsView view)Creates a controller that can be used by the parallel coordinates componentprotected DistributionsModelcreateModel(com.macrofocus.molap.dataframe.DataFrame dataFrame)Creates a model that can be used by the parallel coordinates componentprotected SwingDistributionsViewcreateView()Creates a view that can be used by the parallel coordinates componentjavax.swing.JComponentgetNativeComponent()static voidmain(java.lang.String[] args)Sort of a Hello World! application to demonstrate the most basic use of the ParallelCoordinates APIstatic voidsetLicenseKey(java.lang.String username, java.lang.String key)Register the license key that legally entitle the use of Distributions.voidsetView(DistributionsView<javax.swing.JComponent,java.awt.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 com.macrofocus.high_d.distributions.AbstractDistributions
getController, getModel, getView, load, setController, setModel
-
-
-
-
Constructor Detail
-
SwingDistributions
public SwingDistributions()
Creates a Distributions component with default settings and configuration.
-
SwingDistributions
public SwingDistributions(DistributionsModel model)
Creates a Distributions component with the its native data model.- Parameters:
model- a DistributionsModel
-
SwingDistributions
public SwingDistributions(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Creates a Distributions 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 Distributions. This should be called prior to the first instantiation of this component.- Parameters:
username- the user namekey- the license key
-
setView
public void setView(DistributionsView<javax.swing.JComponent,java.awt.Color,Row,Column,Value,Bin> view)
Description copied from interface:DistributionsSets 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.
-
createModel
protected DistributionsModel createModel(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Creates a model that can be used by the parallel coordinates component- Specified by:
createModelin classAbstractDistributions<javax.swing.JComponent,java.awt.Color,Row,Column,Value,Bin>- Parameters:
dataFrame- a Swing TableModel- Returns:
- a ParallelCoordinatesModel instance
-
createView
protected SwingDistributionsView createView()
Creates a view that can be used by the parallel coordinates component- Specified by:
createViewin classAbstractDistributions<javax.swing.JComponent,java.awt.Color,Row,Column,Value,Bin>- Returns:
- a ParallelCoordinatesView instance
-
createController
protected SwingDistributionsController createController(DistributionsView view)
Creates a controller that can be used by the parallel coordinates component- Specified by:
createControllerin classAbstractDistributions<javax.swing.JComponent,java.awt.Color,Row,Column,Value,Bin>- Parameters:
view- the view that should be controlled- Returns:
-
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
-
-