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 Summary
All 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.AbstractModel
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, 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.NativeObjectContainer
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, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.options.HasFont
getColor, getColorAsString, getFont, setColor, setColor
-
Methods inherited from interface org.pepstock.charba.client.items.HasLegendText
getText, getTextAsHtml, isHtmlText, setHtmlText, setText, setText
-
-
-
-
Method Detail
-
getFontContainer
public FontContainer getFontContainer()
Description copied from interface:HasFontReturns a font container instance to use in the default methods of this interface.- Specified by:
getFontContainerin interfaceHasFont- Returns:
- a font container instance
-
getLegendTextHandler
public LegendTextHandler getLegendTextHandler()
Description copied from interface:HasLegendTextReturns a legend text handler instance to use in the default methods of this interface.- Specified by:
getLegendTextHandlerin interfaceHasLegendText- Returns:
- a legend text handler instance
-
getPadding
public Padding getPadding()
Returns the padding to apply around labels. Only top and bottom are implemented.- Specified by:
getPaddingin interfaceIsDefaultLegendTitle- Returns:
- padding to apply around labels. Only top and bottom are implemented.
-
setDisplay
public void setDisplay(boolean display)
Setstrueif the title is shown.- Parameters:
display- iftruethe title is shown.
-
isDisplay
public boolean isDisplay()
Returnstrueif the title is shown.- Specified by:
isDisplayin interfaceIsDefaultLegendTitle- Returns:
- if
truethe title is shown.
-
-