Class TreeMapElementOptions
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.items.ChartElementOptions
- 
- org.pepstock.charba.client.items.CommonElementOptions
- 
- org.pepstock.charba.client.treemap.TreeMapElementOptions
 
 
 
 
 
- 
 public final class TreeMapElementOptions extends CommonElementOptions Maps the out-of-the-box CHART.JS element options used to represents boxes for treemap on the charts.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Field SummaryFields Modifier and Type Field Description static ElementFactory<TreeMapElementOptions>FACTORYElement factory to get ""treemap"" element.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBorderRadius()Returns the border radius (in pixels).BarBorderRadiusgetBorderRadiusAsObject()Returns the border radius (in pixels).intgetBorderWidth()Returns the border width of the dataset item in pixels.BarBorderWidthgetBorderWidthAsObject()Returns the border width of the dataset item in pixels asBarBorderWidth.CaptionsgetCaptions()Returns the captions object.protected intgetDefaultBorderWidth()This method must be overrided by all element where the border width is stored in different object.DividersgetDividers()Returns the dividers object.LabelsgetLabels()Returns the labels object.doublegetSpacing()Returns the fixed spacing among rectangles.booleanisBorderWidthAsObject()Returnstrueif the border width is defined asBarBorderWidth.booleanisRtl()Returnstruefor rendering the rectangles from right to left.voidsetBorderRadius(int radius)Sets the border radius.voidsetBorderRadius(BarBorderRadius borderRadius)Sets the border radius (in pixels).voidsetBorderWidth(BarBorderWidth borderWidth)Sets the border width (in pixels).voidsetRtl(boolean rtl)Setstruefor rendering the rectangles from right to left.voidsetSpacing(double spacing)Sets the fixed spacing among rectangles.- 
Methods inherited from class org.pepstock.charba.client.items.CommonElementOptionscreateTooltipLabelColor, getBackgroundColor, getBackgroundColorAsCanvasGradient, getBackgroundColorAsCanvasPattern, getBackgroundColorAsGradient, getBackgroundColorAsPattern, getBackgroundColorAsString, getBorderColor, getBorderColorAsCanvasGradient, getBorderColorAsGradient, getBorderColorAsString, inRange, inXRange, inYRange, isBackgroundColorAsColor, isBackgroundColorAsGradient, isBackgroundColorAsPattern, isBorderColorAsColor, isBorderColorAsGradient, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckAndGetColor, checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Field Detail- 
FACTORYpublic static final ElementFactory<TreeMapElementOptions> FACTORY Element factory to get ""treemap"" element.
 
- 
 - 
Method Detail- 
getDividerspublic Dividers getDividers() Returns the dividers object.- Returns:
- the dividers object.
 
 - 
getCaptionspublic Captions getCaptions() Returns the captions object.- Returns:
- the captions object.
 
 - 
getLabelspublic Labels getLabels() Returns the labels object.- Returns:
- the labels object.
 
 - 
getDefaultBorderWidthprotected int getDefaultBorderWidth() Description copied from class:CommonElementOptionsThis method must be overrided by all element where the border width is stored in different object.- Overrides:
- getDefaultBorderWidthin class- CommonElementOptions
- Returns:
- an undefined integer
 
 - 
getBorderWidthpublic int getBorderWidth() Returns the border width of the dataset item in pixels.- Overrides:
- getBorderWidthin class- CommonElementOptions
- Returns:
- the border width of the dataset item in pixels.
 
 - 
isBorderWidthAsObjectpublic boolean isBorderWidthAsObject() Returnstrueif the border width is defined asBarBorderWidth.- Returns:
- trueif the border width is defined as- BarBorderWidth
 
 - 
getBorderWidthAsObjectpublic BarBorderWidth getBorderWidthAsObject() Returns the border width of the dataset item in pixels asBarBorderWidth.- Returns:
- the border width of the dataset item in pixels as BarBorderWidth.
 
 - 
setBorderWidthpublic void setBorderWidth(BarBorderWidth borderWidth) Sets the border width (in pixels).- Parameters:
- borderWidth- the border width (in pixels).
 
 - 
setRtlpublic void setRtl(boolean rtl) Setstruefor rendering the rectangles from right to left.- Parameters:
- rtl-- truefor rendering the rectangles from right to left
 
 - 
isRtlpublic boolean isRtl() Returnstruefor rendering the rectangles from right to left.- Returns:
- truefor rendering the rectangles from right to left.
 
 - 
setSpacingpublic void setSpacing(double spacing) Sets the fixed spacing among rectangles.- Parameters:
- spacing- the fixed spacing among rectangles
 
 - 
getSpacingpublic double getSpacing() Returns the fixed spacing among rectangles.- Returns:
- the fixed spacing among rectangles
 
 - 
getBorderRadiusAsObjectpublic BarBorderRadius getBorderRadiusAsObject() Returns the border radius (in pixels).- Returns:
- the border radius (in pixels).
 
 - 
setBorderRadiuspublic void setBorderRadius(BarBorderRadius borderRadius) Sets the border radius (in pixels).- Parameters:
- borderRadius- the border radius (in pixels).
 
 - 
setBorderRadiuspublic void setBorderRadius(int radius) Sets the border radius.- Parameters:
- radius- the border radius.
 
 - 
getBorderRadiuspublic int getBorderRadius() Returns the border radius (in pixels).- Returns:
- the border radius (in pixels).
 
 
- 
 
-