Class LegendTitle
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.options.AbstractModel<Legend,IsDefaultLegendTitle>
- 
- org.pepstock.charba.client.options.LegendTitle
 
 
 
 
- 
- All Implemented Interfaces:
- IsDefaultFontContainer,- IsDefaultLegendTitle,- HasLegendText,- HasFont
 
 public final class LegendTitle extends AbstractModel<Legend,IsDefaultLegendTitle> implements IsDefaultLegendTitle, HasLegendText, HasFont This is the title configuration of the legend.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FontContainergetFontContainer()Returns a font container instance to use in the default methods of this interface.LegendTextHandlergetLegendTextHandler()Returns a legend text handler instance to use in the default methods of this interface.PaddinggetPadding()Returns the padding to apply around labels.booleanisDisplay()Returnstrueif the title is shown.voidsetDisplay(boolean display)Setstrueif the title is shown.- 
Methods inherited from class org.pepstock.charba.client.options.AbstractModelgetDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
 - 
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
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasFontgetColor, getColorAsString, getFont, setColor, setColor
 - 
Methods inherited from interface org.pepstock.charba.client.items.HasLegendTextgetText, getTextAsHtml, isHtmlText, setHtmlText, setText, setText
 
- 
 
- 
- 
- 
Method Detail- 
getFontContainerpublic FontContainer getFontContainer() Description copied from interface:HasFontReturns a font container instance to use in the default methods of this interface.- Specified by:
- getFontContainerin interface- HasFont
- Returns:
- a font container instance
 
 - 
getLegendTextHandlerpublic LegendTextHandler getLegendTextHandler() Description copied from interface:HasLegendTextReturns a legend text handler instance to use in the default methods of this interface.- Specified by:
- getLegendTextHandlerin interface- HasLegendText
- Returns:
- a legend text handler instance
 
 - 
getPaddingpublic Padding getPadding() Returns the padding to apply around labels. Only top and bottom are implemented.- Specified by:
- getPaddingin interface- IsDefaultLegendTitle
- Returns:
- padding to apply around labels. Only top and bottom are implemented.
 
 - 
setDisplaypublic void setDisplay(boolean display) Setstrueif the title is shown.- Parameters:
- display- if- truethe title is shown.
 
 - 
isDisplaypublic boolean isDisplay() Returnstrueif the title is shown.- Specified by:
- isDisplayin interface- IsDefaultLegendTitle
- Returns:
- if truethe title is shown.
 
 
- 
 
-