Package com.treemap
Class AbstractTreeMap<C,N,Row,Column,Color,Font>
java.lang.Object
com.treemap.AbstractTreeMap<C,N,Row,Column,Color,Font>
- All Implemented Interfaces:
TreeMap<C,N, Row, Column, Color, Font>
- Direct Known Subclasses:
SwingTreeMap
@JsType
public abstract class AbstractTreeMap<C,N,Row,Column,Color,Font>
extends Object
implements TreeMap<C,N,Row,Column,Color,Font>
Created by luc on 03/02/16.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the controller used for the treemap.getModel()Returns the model used for the treemap.getView()Returns the view used for the treemap.voidsetAggregation(Aggregation aggregation) Defines the aggregation scheme to use to aggregate values of the treemap.voidsetAlgorithm(Algorithm algorithm) Defines the algorithm to use to lay out the treemap.voidsetBackground(int column) Defines the field to use for background labeling.voidsetBackgroundByName(String columnName) Defines the field to use for background labeling.voidsetColor(int column) Defines the field to use for coloring.voidsetColorByName(String columnName) Defines the field to use for coloring.voidsetController(TreeMapController<C, N, Row, Column, Color, Font> controller) Sets the controller to be used for the treemap and register the view currently in use.voidDefines the depth to use to lay out the treemap.voidsetGroupBy(int... columns) Defines the fields to be use for grouping.voidsetGroupByByNames(String... columnNames) Defines the fields to be use for grouping.voidsetHeaderBackgroundColor(com.macrofocus.igraphics.CPColor<Color> color) Sets the background color to use for drawing the headers.voidsetHeaderFont(com.macrofocus.igraphics.CPFont<Font> font) Sets the font used for labeling the headings.voidsetHeaderForegroundColor(com.macrofocus.igraphics.CPColor<Color> color) Sets the foreground color to use for drawing the headers.voidsetHeight(int column) Defines the field to use for mapping the height.voidsetHeightByName(String columnName) Defines the field to use for mapping the height.voidsetLabeling(Labeling labeling) Defines the labeling scheme to use to draw the treemap.voidsetLabelingBackgroundColor(com.macrofocus.igraphics.CPColor<Color> color) Sets the background color to use for drawing the labels.voidsetLabelingFont(com.macrofocus.igraphics.CPFont<Font> font) Sets the font used for labeling.voidsetLabelingForegroundColor(com.macrofocus.igraphics.CPColor<Color> color) Sets the foreground color to use for drawing the labels.voidsetLabels(int... columns) Defines the fields to be use for labeling.voidsetLabelsByNames(String... columnNames) Defines the fields to be use for labeling.static voidsetLicenseKey(String username, String key) Register the license key that legally entitle the use of CartoPlot.voidsetLightSourceAmbient(double value) Sets the light source ambient intensity used for drawing the cushions.voidsetLightSourceHeight(double value) Sets the light source height used for drawing the cushions.voidsetLightSourceX(double value) Sets the light source X position used for drawing the cushions.voidsetLightSourceY(double value) Sets the light source Y position used for drawing the cushions.voidsetLightSourceZ(double value) Sets the light source Z position used for drawing the cushions.voidSets the model to be used for the treemap and register it to the view.voidsetNesting(Nesting nesting) Defines the nesting to use to lay out the treemap.voidsetOrdering(Ordering ordering) Defines the ordering to use to lay out the treemap.voidsetRendering(Rendering rendering) Defines the rendering scheme to use to draw the treemap.voidDefines the scaling scheme to use to project values the treemap.voidsetSize(int column) Defines the field to use to represent the size.voidsetSizeByName(String columnName) Defines the field to use to represent the size.voidsetToolTip(int... columns) Defines the fields to be use for grouping.voidsetToolTipByNames(String... columnNames) Defines the fields to be use for grouping.voidSets the view to be used for the treemap and register the model currently in use.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.treemap.TreeMap
getNativeComponent
-
Field Details
-
view
-
controller
-
licenseModel
-
-
Constructor Details
-
AbstractTreeMap
public AbstractTreeMap()
-
-
Method Details
-
setLicenseKey
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
Returns the model used for the treemap. -
setModel
Sets the model to be used for the treemap and register it to the view. -
getView
Returns the view used for the treemap. -
setView
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
Returns the controller used for the treemap. -
setController
Sets the controller to be used for the treemap and register the view currently in use. -
setGroupBy
public void setGroupBy(int... columns) Defines the fields to be use for grouping. -
setGroupByByNames
Defines the fields to be use for grouping. -
setLabels
public void setLabels(int... columns) Defines the fields to be use for labeling. -
setLabelsByNames
Defines the fields to be use for labeling. -
setBackground
public void setBackground(int column) Defines the field to use for background labeling. -
setBackgroundByName
Defines the field to use for background labeling. -
setSize
public void setSize(int column) Defines the field to use to represent the size. -
setSizeByName
Defines the field to use to represent the size. -
setColor
public void setColor(int column) Defines the field to use for coloring. -
setColorByName
Defines the field to use for coloring. -
setHeight
public void setHeight(int column) Defines the field to use for mapping the height. -
setHeightByName
Defines the field to use for mapping the height. -
setToolTip
public void setToolTip(int... columns) Defines the fields to be use for grouping. -
setToolTipByNames
Defines the fields to be use for grouping. -
setAlgorithm
Defines the algorithm to use to lay out the treemap. -
setAggregation
Defines the aggregation scheme to use to aggregate values of the treemap. -
setScale
Defines the scaling scheme to use to project values the treemap. -
setNesting
Defines the nesting to use to lay out the treemap. -
setOrdering
Defines the ordering to use to lay out the treemap. -
setDepth
Defines the depth to use to lay out the treemap. -
setLabeling
Defines the labeling scheme to use to draw the treemap. -
setRendering
Defines the rendering scheme to use to draw the treemap. -
setLightSourceHeight
public void setLightSourceHeight(double value) Sets the light source height used for drawing the cushions. -
setLightSourceAmbient
public void setLightSourceAmbient(double value) Sets the light source ambient intensity used for drawing the cushions. -
setLightSourceX
public void setLightSourceX(double value) Sets the light source X position used for drawing the cushions. -
setLightSourceY
public void setLightSourceY(double value) Sets the light source Y position used for drawing the cushions. -
setLightSourceZ
public void setLightSourceZ(double value) Sets the light source Z position used for drawing the cushions. -
setLabelingFont
Sets the font used for labeling. -
setLabelingForegroundColor
Sets the foreground color to use for drawing the labels. -
setLabelingBackgroundColor
Sets the background color to use for drawing the labels. -
setHeaderFont
Sets the font used for labeling the headings. -
setHeaderForegroundColor
Sets the foreground color to use for drawing the headers. -
setHeaderBackgroundColor
Sets the background color to use for drawing the headers.
-