Package com.treemap.swing.treeplot
Class SwingTreePlot<N,Row,Column>
java.lang.Object
com.treemap.treeplot.AbstractTreePlot<JComponent,N,Row,Column,Color,Font>
com.treemap.swing.treeplot.SwingTreePlot<N,Row,Column>
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<JComponent>
,TreePlot<JComponent,
N, Row, Column, Color, Font>
public class SwingTreePlot<N,Row,Column>
extends AbstractTreePlot<JComponent,N,Row,Column,Color,Font>
A facade to the TreeMap model-view-controller (MVC) architecture. In brief, the controller collects user input,
the model manipulates application data, and the view presents results to the user. This class wraps a
TreePlotModel
, SwingTreePlotView
, and
SwingTreePlotController
together. It allows easy loading of the data and
customization of the most common settings.-
Field Summary
Fields inherited from class com.treemap.treeplot.AbstractTreePlot
controller, licenseModel, view
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a TreePlot component with default settings and configuration.SwingTreePlot
(com.macrofocus.molap.dataframe.DataFrame dataFrame) Creates a TreePlot component with the specified Swing TableModel.SwingTreePlot
(SwingTreePlotModel model) Creates a TreePlot component with the its native data model.SwingTreePlot
(TreeMapModel model) Creates a TreePlot component using the data model used by TreeMap.SwingTreePlot
(TreePlotModel model) SwingTreePlot
(TableModel tableModel) Creates a TreePlot component with the specified Swing TableModel. -
Method Summary
Modifier and TypeMethodDescriptionprotected TreePlotController<JComponent,
N, Row, Column, Color, Font> protected SwingTreePlotView
getModel()
Returns the model used for the treemap.getView()
Returns the view used for the treemap.void
setStyleClass
(String... styleClasses) Methods inherited from class com.treemap.treeplot.AbstractTreePlot
getController, setController, setLicenseKey, setModel, setView
-
Constructor Details
-
SwingTreePlot
public SwingTreePlot()Creates a TreePlot component with default settings and configuration. -
SwingTreePlot
Creates a TreePlot component with the its native data model.- Parameters:
model
- a TreePlotModel
-
SwingTreePlot
-
SwingTreePlot
Creates a TreePlot component using the data model used by TreeMap.- Parameters:
model
- a TreeMapModel
-
SwingTreePlot
public SwingTreePlot(com.macrofocus.molap.dataframe.DataFrame dataFrame) Creates a TreePlot component with the specified Swing TableModel.- Parameters:
dataFrame
- a DataFrame
-
SwingTreePlot
Creates a TreePlot component with the specified Swing TableModel.- Parameters:
tableModel
- a Swing TableModel
-
-
Method Details
-
createController
-
createTreePlotView
-
createController
protected TreePlotController<JComponent,N, createControllerRow, Column, Color, Font> (TreePlotView<JComponent, N, Row, Column, Color, Font> view) -
getModel
Description copied from class:AbstractTreePlot
Returns the model used for the treemap. -
getView
Description copied from class:AbstractTreePlot
Returns the view used for the treemap. -
setStyleClass
-
getNativeComponent
-