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 SwingDistributionsController
createController(DistributionsView view)
Creates a controller that can be used by the parallel coordinates componentprotected DistributionsModel
createModel(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Creates a model that can be used by the parallel coordinates componentprotected SwingDistributionsView
createView()
Creates a view that can be used by the parallel coordinates componentjavax.swing.JComponent
getNativeComponent()
static void
main(java.lang.String[] args)
Sort of a Hello World! application to demonstrate the most basic use of the ParallelCoordinates APIstatic void
setLicenseKey(java.lang.String username, java.lang.String key)
Register the license key that legally entitle the use of Distributions.void
setView(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: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.
-
createModel
protected DistributionsModel createModel(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Creates a model that can be used by the parallel coordinates component- Specified by:
createModel
in 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:
createView
in 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:
createController
in 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
-
-