Package com.macrofocus.treeplot.swing
Class SwingTreePlot<N,Row,Column>
- java.lang.Object
-
- com.macrofocus.treeplot.AbstractTreePlot<javax.swing.JComponent,N,Row,Column,java.awt.Color,java.awt.Font>
-
- com.macrofocus.treeplot.swing.SwingTreePlot<N,Row,Column>
-
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<javax.swing.JComponent>
,TreePlot<javax.swing.JComponent,N,Row,Column,java.awt.Color,java.awt.Font>
public class SwingTreePlot<N,Row,Column> extends AbstractTreePlot<javax.swing.JComponent,N,Row,Column,java.awt.Color,java.awt.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 aTreePlotModel
,SwingTreePlotView
, andSwingTreePlotController
together. It allows easy loading of the data and customization of the most common settings.
-
-
Field Summary
-
Fields inherited from class com.macrofocus.treeplot.AbstractTreePlot
controller, licenseModel, view
-
-
Constructor Summary
Constructors Constructor Description SwingTreePlot()
Creates 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(SwingTreeMapModel model)
Creates a TreePlot component using the data model used by TreeMap.SwingTreePlot(TreeMapModel model)
Creates a TreePlot component using the data model used by TreeMap.SwingTreePlot(SwingTreePlotModel model)
Creates a TreePlot component with the its native data model.SwingTreePlot(TreePlotModel model)
SwingTreePlot(javax.swing.table.TableModel tableModel)
Creates a TreePlot component with the specified Swing TableModel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwingTreePlotController
createController()
protected TreePlotController<javax.swing.JComponent,N,Row,Column,java.awt.Color,java.awt.Font>
createController(TreePlotView<javax.swing.JComponent,N,Row,Column,java.awt.Color,java.awt.Font> view)
protected SwingTreePlotView
createTreePlotView()
TreePlotModel<N,Row,Column,java.awt.Color,java.awt.Font>
getModel()
Returns the model used for the treemap.javax.swing.JComponent
getNativeComponent()
SwingTreePlotView<N,Row,Column>
getView()
Returns the view used for the treemap.void
setStyleClass(java.lang.String... styleClasses)
-
Methods inherited from class com.macrofocus.treeplot.AbstractTreePlot
getController, setController, setLicenseKey, setModel, setView
-
-
-
-
Constructor Detail
-
SwingTreePlot
public SwingTreePlot()
Creates a TreePlot component with default settings and configuration.
-
SwingTreePlot
public SwingTreePlot(SwingTreePlotModel model)
Creates a TreePlot component with the its native data model.- Parameters:
model
- a TreePlotModel
-
SwingTreePlot
public SwingTreePlot(TreePlotModel model)
-
SwingTreePlot
public SwingTreePlot(SwingTreeMapModel model)
Creates a TreePlot component using the data model used by TreeMap.- Parameters:
model
- a TreeMapModel
-
SwingTreePlot
public SwingTreePlot(TreeMapModel model)
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
public SwingTreePlot(javax.swing.table.TableModel tableModel)
Creates a TreePlot component with the specified Swing TableModel.- Parameters:
tableModel
- a Swing TableModel
-
-
Method Detail
-
createController
public SwingTreePlotController createController()
-
createTreePlotView
protected SwingTreePlotView createTreePlotView()
-
createController
protected TreePlotController<javax.swing.JComponent,N,Row,Column,java.awt.Color,java.awt.Font> createController(TreePlotView<javax.swing.JComponent,N,Row,Column,java.awt.Color,java.awt.Font> view)
-
getModel
public TreePlotModel<N,Row,Column,java.awt.Color,java.awt.Font> getModel()
Description copied from class:AbstractTreePlot
Returns the model used for the treemap.
-
getView
public SwingTreePlotView<N,Row,Column> getView()
Description copied from class:AbstractTreePlot
Returns the view used for the treemap.
-
setStyleClass
public void setStyleClass(java.lang.String... styleClasses)
-
getNativeComponent
public javax.swing.JComponent getNativeComponent()
-
-