com.nchart3d.NChart.NChartTreeMapSeriesSettings Class Reference

NChartTreeMapSeriesSettings class provides global settings for NChartTreeMapSeries. More...

Inheritance diagram for com.nchart3d.NChart.NChartTreeMapSeriesSettings:
com.nchart3d.NChart.NChartTreeSeriesSettings com.nchart3d.NChart.NChartSolidSeriesSettings com.nchart3d.NChart.NChartSeriesSettings

Public Member Functions

boolean isPreventSmallBoxes ()
 Flag determining if small boxes should be enlarged to ensure some visible area (true) or not (false). More...
 
void setPreventSmallBoxes (boolean preventSmallBoxes)
 For details see isPreventSmallBoxes().
 
float getMinimalSizeApproximation ()
 Approximation for the minimal allowed size for the boxes. More...
 
void setMinimalSizeApproximation (float minimalSizeApproximation)
 For details see getMinimalSizeApproximation().
 
- Public Member Functions inherited from com.nchart3d.NChart.NChartTreeSeriesSettings
float getMargin ()
 Margin of the tree boxes in pixels (the default value is 5). More...
 
void setMargin (float margin)
 For details see getMargin().
 
int getChildrenInLine ()
 The number of children allowed to be placed in one line. More...
 
void setChildrenInLine (int childrenInLine)
 For details see getChildrenInLine().
 
- Public Member Functions inherited from com.nchart3d.NChart.NChartSolidSeriesSettings
float getFillRatio ()
 Fill ratio for series that determines the amount of place for one series. More...
 
void setFillRatio (float fillRatio)
 For details see getFillRatio().
 
- Public Member Functions inherited from com.nchart3d.NChart.NChartSeriesSettings
 NChartSeriesSettings ()
 Create instance of settings.
 
boolean isRudimentEnabled ()
 Flag determining if rudiment is allowed. More...
 
void setRudimentEnabled (boolean isRudimentEnabled)
 For details see isRudimentEnabled().
 

Detailed Description

NChartTreeMapSeriesSettings class provides global settings for NChartTreeMapSeries.

Member Function Documentation

float com.nchart3d.NChart.NChartTreeMapSeriesSettings.getMinimalSizeApproximation ( )
inline

Approximation for the minimal allowed size for the boxes.

The default value is 10.
This property has effect if isPreventSmallBoxes() is set to true only. This is only the approximation of the size in pixels, it is NOT an exact value. "Size" means linear dimension of the box, e.g. width and height.

boolean com.nchart3d.NChart.NChartTreeMapSeriesSettings.isPreventSmallBoxes ( )
inline

Flag determining if small boxes should be enlarged to ensure some visible area (true) or not (false).

The default value is false.
Sometimes for the trees with a huge difference in weights across children, some boxes may appear too small. For example, if you create a tree with two nodes weighted 99.9 and 0.1, then the first one will be very large, and the second one will barely be visible. This might look ugly. To prevent this, you can set this flag to true and tune the getMinimalSizeApproximation() property to achieve nicer results.