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 FontContainer
getFontContainer()
Returns a font container instance to use in the default methods of this interface.LegendTextHandler
getLegendTextHandler()
Returns a legend text handler instance to use in the default methods of this interface.Padding
getPadding()
Returns the padding to apply around labels.boolean
isDisplay()
Returnstrue
if the title is shown.void
setDisplay(boolean display)
Setstrue
if 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, 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.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, 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:HasFont
Returns a font container instance to use in the default methods of this interface.- Specified by:
getFontContainer
in interfaceHasFont
- Returns:
- a font container instance
-
getLegendTextHandler
public LegendTextHandler getLegendTextHandler()
Description copied from interface:HasLegendText
Returns a legend text handler instance to use in the default methods of this interface.- Specified by:
getLegendTextHandler
in 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:
getPadding
in interfaceIsDefaultLegendTitle
- Returns:
- padding to apply around labels. Only top and bottom are implemented.
-
setDisplay
public void setDisplay(boolean display)
Setstrue
if the title is shown.- Parameters:
display
- iftrue
the title is shown.
-
isDisplay
public boolean isDisplay()
Returnstrue
if the title is shown.- Specified by:
isDisplay
in interfaceIsDefaultLegendTitle
- Returns:
- if
true
the title is shown.
-
-