Class SwingScatterPlot<Row,Column>
java.lang.Object
com.macrofocus.high_d.scatterplot.AbstractScatterPlot<JComponent,Color,Font,Row,Column>
com.macrofocus.high_d.scatterplot.swing.SwingScatterPlot<Row,Column>
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<JComponent>,ScatterPlot<JComponent,Color, Font, Row, Column>
- Direct Known Subclasses:
SwingControlChart,SwingMDS
public class SwingScatterPlot<Row,Column>
extends AbstractScatterPlot<JComponent,Color,Font,Row,Column>
-
Field Summary
Fields inherited from class com.macrofocus.high_d.scatterplot.AbstractScatterPlot
controller, licenseModel, view -
Constructor Summary
ConstructorsConstructorDescriptionCreates a ScatterPlot component with default settings and configuration.SwingScatterPlot(ScatterPlotModel<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
Modifier and TypeMethodDescriptionprotected ScatterPlotControllerCreates 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 ScatterPlotViewCreates 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 APIvoidsetStyleClass(String... styleClasses) voidsetView(ScatterPlotView<JComponent, Color, 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 Details
-
SwingScatterPlot
public SwingScatterPlot()Creates a ScatterPlot component with default settings and configuration. -
SwingScatterPlot
Creates a ScatterPlot component with the its native data model.- Parameters:
model- a ScatterPlotModel
-
SwingScatterPlot
Creates a ScatterPlot component with the specified Swing TableModel.- Parameters:
dataFrame- a Swing TableModel
-
-
Method Details
-
setView
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<JComponent,Color, Font, Row, Column> - Overrides:
setViewin classAbstractScatterPlot<JComponent,Color, Font, Row, Column> - Parameters:
view- the view to be used
-
createModel
Creates a model that can be used by the parallel coordinates component- Specified by:
createModelin classAbstractScatterPlot<JComponent,Color, Font, Row, Column> - 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 classAbstractScatterPlot<JComponent,Color, Font, Row, Column> - Returns:
- a ParallelCoordinatesView instance
-
createController
Creates a controller that can be used by the parallel coordinates component- Specified by:
createControllerin classAbstractScatterPlot<JComponent,Color, Font, Row, Column> - Parameters:
view- the view that should be controlled- Returns:
-
setStyleClass
-
getNativeComponent
-
main
Sort of a Hello World! application to demonstrate the most basic use of the ParallelCoordinates API
-