Class SwingDistributions<Row,Column,Value,Bin>
java.lang.Object
com.macrofocus.high_d.distributions.AbstractDistributions<JComponent,Color,Row,Column,Value,Bin>
com.macrofocus.high_d.distributions.swing.SwingDistributions<Row,Column,Value,Bin>
- All Implemented Interfaces:
Distributions<JComponent,Color, Row, Column, Value, Bin>
public class SwingDistributions<Row,Column,Value,Bin>
extends AbstractDistributions<JComponent,Color,Row,Column,Value,Bin>
-
Field Summary
Fields inherited from class com.macrofocus.high_d.distributions.AbstractDistributions
controller, licenseModel, view -
Constructor Summary
ConstructorsConstructorDescriptionCreates a Distributions component with default settings and configuration.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
Modifier and TypeMethodDescriptionprotected SwingDistributionsControllerCreates 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 SwingDistributionsViewCreates a view that can be used by the parallel coordinates componentstatic voidSort of a Hello World! application to demonstrate the most basic use of the ParallelCoordinates APIstatic voidsetLicenseKey(String username, String key) Register the license key that legally entitle the use of Distributions.voidsetView(DistributionsView<JComponent, 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 Details
-
SwingDistributions
public SwingDistributions()Creates a Distributions component with default settings and configuration. -
SwingDistributions
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 Details
-
setLicenseKey
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
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.- Specified by:
setViewin interfaceDistributions<JComponent,Color, Row, Column, Value, Bin> - Overrides:
setViewin classAbstractDistributions<JComponent,Color, Row, Column, Value, Bin> - Parameters:
view- the view to be used
-
createModel
Creates a model that can be used by the parallel coordinates component- Specified by:
createModelin classAbstractDistributions<JComponent,Color, Row, Column, Value, Bin> - Parameters:
dataFrame- a Swing TableModel- Returns:
- a ParallelCoordinatesModel instance
-
createView
Creates a view that can be used by the parallel coordinates component- Specified by:
createViewin classAbstractDistributions<JComponent,Color, Row, Column, Value, Bin> - Returns:
- a ParallelCoordinatesView instance
-
createController
Creates a controller that can be used by the parallel coordinates component- Specified by:
createControllerin classAbstractDistributions<JComponent,Color, Row, Column, Value, Bin> - Parameters:
view- the view that should be controlled- Returns:
-
getNativeComponent
-
main
Sort of a Hello World! application to demonstrate the most basic use of the ParallelCoordinates API
-