Package com.macrofocus.treeplot
Class AbstractTreePlot<C,N,Row,Column,Color,Font>
- java.lang.Object
-
- com.macrofocus.treeplot.AbstractTreePlot<C,N,Row,Column,Color,Font>
-
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<C>,TreePlot<C,N,Row,Column,Color,Font>
- Direct Known Subclasses:
SwingTreePlot
public abstract class AbstractTreePlot<C,N,Row,Column,Color,Font> extends java.lang.Object implements TreePlot<C,N,Row,Column,Color,Font>
-
-
Field Summary
Fields Modifier and Type Field Description protected TreePlotController<C,N,Row,Column,Color,Font>controllerprotected static LicenseModellicenseModelprotected TreePlotView<C,N,Row,Column,Color,Font>view
-
Constructor Summary
Constructors Constructor Description AbstractTreePlot()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TreePlotController<C,N,Row,Column,Color,Font>getController()Returns the controller used for the treemap.TreePlotModel<N,Row,Column,Color,Font>getModel()Returns the model used for the treemap.TreePlotView<C,N,Row,Column,Color,Font>getView()Returns the view used for the treemap.voidsetController(TreePlotController<C,N,Row,Column,Color,Font> controller)Sets the controller to be used for the treemap and register the view currently in use.static voidsetLicenseKey(java.lang.String username, java.lang.String key)Register the license key that legally entitle the use of CartoPlot.voidsetModel(TreePlotModel<N,Row,Column,Color,Font> model)Sets the model to be used for the treemap and register it to the view.voidsetView(TreePlotView<C,N,Row,Column,Color,Font> view)Sets the view to be used for the treemap and register the model currently in use.
-
-
-
Field Detail
-
licenseModel
protected static LicenseModel licenseModel
-
-
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 CartoPlot. This should be called prior to the first instantiation of this component.- Parameters:
username- the user namekey- the license key
-
getModel
public TreePlotModel<N,Row,Column,Color,Font> getModel()
Returns the model used for the treemap.
-
setModel
public void setModel(TreePlotModel<N,Row,Column,Color,Font> model)
Sets the model to be used for the treemap and register it to the view.
-
getView
@JsMethod public TreePlotView<C,N,Row,Column,Color,Font> getView()
Returns the view used for the treemap.
-
setView
public void setView(TreePlotView<C,N,Row,Column,Color,Font> view)
Sets the view to be used for the treemap and register the model currently in use. It will also register itself to the controller.
-
getController
public TreePlotController<C,N,Row,Column,Color,Font> getController()
Returns the controller used for the treemap.
-
-