Class Layout
- java.lang.Object
- 
- org.pepstock.charba.client.configuration.Layout
 
- 
- All Implemented Interfaces:
- IsScriptablePaddingProvider<ChartContext>
 
 public class Layout extends Object implements IsScriptablePaddingProvider<ChartContext> The layout configuration is needed to set the padding.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IsChartgetChart()Returns the chart instanceprotected ExtendedOptionsgetConfiguration()Returns the configuration element.protected ConfigurationOptionsgetOptions()Returns the configuration options.PaddinggetPadding()Returns the padding element.PaddingCallback<ChartContext>getPaddingCallback()Returns the padding callback, if set, otherwisenull.booleanisAutoPadding()Returnstrueto apply automatic padding so visible elements are completely drawn.voidsetAutoPadding(boolean autoPadding)Setstrueto apply automatic padding so visible elements are completely drawn.voidsetPadding(NativeCallback paddingCallback)Sets the padding callback.voidsetPadding(PaddingCallback<ChartContext> paddingCallback)Sets the padding callback.
 
- 
- 
- 
Method Detail- 
getPaddingpublic Padding getPadding() Returns the padding element.- Returns:
- the padding
 
 - 
setAutoPaddingpublic void setAutoPadding(boolean autoPadding) Setstrueto apply automatic padding so visible elements are completely drawn.- Parameters:
- autoPadding-- trueto apply automatic padding so visible elements are completely drawn
 
 - 
isAutoPaddingpublic boolean isAutoPadding() Returnstrueto apply automatic padding so visible elements are completely drawn.- Returns:
- trueto apply automatic padding so visible elements are completely drawn
 
 - 
getPaddingCallbackpublic PaddingCallback<ChartContext> getPaddingCallback() Returns the padding callback, if set, otherwisenull.- Specified by:
- getPaddingCallbackin interface- IsScriptablePaddingProvider<ChartContext>
- Returns:
- the padding callback, if set, otherwise null.
 
 - 
setPaddingpublic void setPadding(PaddingCallback<ChartContext> paddingCallback) Sets the padding callback.- Specified by:
- setPaddingin interface- IsScriptablePaddingProvider<ChartContext>
- Parameters:
- paddingCallback- the padding callback to set
 
 - 
setPaddingpublic void setPadding(NativeCallback paddingCallback) Sets the padding callback.- Specified by:
- setPaddingin interface- IsScriptablePaddingProvider<ChartContext>
- Parameters:
- paddingCallback- the padding callback to set
 
 - 
getOptionsprotected final ConfigurationOptions getOptions() Returns the configuration options.- Returns:
- the configuration options.
 
 - 
getConfigurationprotected final ExtendedOptions getConfiguration() Returns the configuration element.- Returns:
- the configuration element.
 
 - 
getChartpublic final IsChart getChart() Returns the chart instance- Returns:
- the chart
 
 
- 
 
-