Class SwingScatterPlot<Row,Column>
- java.lang.Object
-
- com.macrofocus.high_d.scatterplot.AbstractScatterPlot<javax.swing.JComponent,java.awt.Color,java.awt.Font,Row,Column>
-
- com.macrofocus.high_d.scatterplot.swing.SwingScatterPlot<Row,Column>
-
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<javax.swing.JComponent>,ScatterPlot<javax.swing.JComponent,java.awt.Color,java.awt.Font,Row,Column>
- Direct Known Subclasses:
SwingControlChart,SwingMDS
public class SwingScatterPlot<Row,Column> extends AbstractScatterPlot<javax.swing.JComponent,java.awt.Color,java.awt.Font,Row,Column>
-
-
Field Summary
-
Fields inherited from class com.macrofocus.high_d.scatterplot.AbstractScatterPlot
controller, licenseModel, view
-
-
Constructor Summary
Constructors Constructor Description SwingScatterPlot()Creates a ScatterPlot component with default settings and configuration.SwingScatterPlot(ScatterPlotModel<java.awt.Color,Row,Column> model)Creates a ScatterPlot component with the its native data model.SwingScatterPlot(com.macrofocus.molap.dataframe.DataFrame<Row,Column,?> dataFrame)Creates a ScatterPlot component with the specified Swing TableModel.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ScatterPlotControllercreateController(ScatterPlotView view)Creates a controller that can be used by the parallel coordinates componentprotected ScatterPlotModelcreateModel(com.macrofocus.molap.dataframe.DataFrame dataFrame)Creates a model that can be used by the parallel coordinates componentprotected ScatterPlotViewcreateView()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 APIvoidsetStyleClass(java.lang.String... styleClasses)voidsetView(ScatterPlotView<javax.swing.JComponent,java.awt.Color,java.awt.Font,Row,Column> view)Sets the view to be used by the scatter plot component and register the model currently in use.-
Methods inherited from class com.macrofocus.high_d.scatterplot.AbstractScatterPlot
getController, getModel, getView, load, setController, setLicenseKey, setModel
-
-
-
-
Constructor Detail
-
SwingScatterPlot
public SwingScatterPlot()
Creates a ScatterPlot component with default settings and configuration.
-
SwingScatterPlot
public SwingScatterPlot(ScatterPlotModel<java.awt.Color,Row,Column> model)
Creates a ScatterPlot component with the its native data model.- Parameters:
model- a ScatterPlotModel
-
-
Method Detail
-
setView
public void setView(ScatterPlotView<javax.swing.JComponent,java.awt.Color,java.awt.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.- Specified by:
setViewin interfaceScatterPlot<javax.swing.JComponent,java.awt.Color,java.awt.Font,Row,Column>- Overrides:
setViewin classAbstractScatterPlot<javax.swing.JComponent,java.awt.Color,java.awt.Font,Row,Column>- Parameters:
view- the view to be used
-
createModel
protected ScatterPlotModel createModel(com.macrofocus.molap.dataframe.DataFrame dataFrame)
Creates a model that can be used by the parallel coordinates component- Specified by:
createModelin classAbstractScatterPlot<javax.swing.JComponent,java.awt.Color,java.awt.Font,Row,Column>- Parameters:
dataFrame- a Swing TableModel- Returns:
- a ParallelCoordinatesModel instance
-
createView
protected ScatterPlotView createView()
Creates a view that can be used by the parallel coordinates component- Specified by:
createViewin classAbstractScatterPlot<javax.swing.JComponent,java.awt.Color,java.awt.Font,Row,Column>- Returns:
- a ParallelCoordinatesView instance
-
createController
protected ScatterPlotController createController(ScatterPlotView view)
Creates a controller that can be used by the parallel coordinates component- Specified by:
createControllerin classAbstractScatterPlot<javax.swing.JComponent,java.awt.Color,java.awt.Font,Row,Column>- Parameters:
view- the view that should be controlled- Returns:
-
setStyleClass
public void setStyleClass(java.lang.String... styleClasses)
-
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
-
-