Class DefaultChartTitle
- java.lang.Object
-
- org.pepstock.charba.client.defaults.chart.DefaultChartTitle
-
- All Implemented Interfaces:
IsDefaultAbstractTitle,IsDefaultFontContainer,IsDefaultPluginElement,IsDefaultTitle
public final class DefaultChartTitle extends Object implements IsDefaultTitle
Defaults for title option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description DefaultChartTitle(IsDefaultTitle title)Creates the object by title option element instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementAligngetAlign()Returns the alignment of the element.StringgetColorAsString()Returns the font color as string.IsDefaultFontgetFont()Returns the font element.IsDefaultPaddinggetPadding()Returns the padding to apply around labels.PositiongetPosition()Returns the position of element.booleanisDisplay()Returns if the element is shown.booleanisFullSize()Returns if marks that this box should take the full width/height of the canvas (moving other boxes).-
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.defaults.IsDefaultAbstractTitle
getPadding, isFullSize
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultFontContainer
getColorAsString, getFont
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultPluginElement
getAlign, getPosition, isDisplay
-
-
-
-
Constructor Detail
-
DefaultChartTitle
public DefaultChartTitle(IsDefaultTitle title)
Creates the object by title option element instance.- Parameters:
title- title option element instance.
-
-
Method Detail
-
getFont
public IsDefaultFont getFont()
Description copied from interface:IsDefaultFontContainerReturns the font element.- Specified by:
getFontin interfaceIsDefaultFontContainer- Returns:
- the font
-
getPadding
public IsDefaultPadding getPadding()
Description copied from interface:IsDefaultAbstractTitleReturns the padding to apply around labels. Only top and bottom are implemented.- Specified by:
getPaddingin interfaceIsDefaultAbstractTitle- Returns:
- Padding to apply around labels. Only top and bottom are implemented.
-
getColorAsString
public String getColorAsString()
Description copied from interface:IsDefaultFontContainerReturns the font color as string.- Specified by:
getColorAsStringin interfaceIsDefaultFontContainer- Returns:
- font color as string
-
isDisplay
public boolean isDisplay()
Description copied from interface:IsDefaultPluginElementReturns if the element is shown.- Specified by:
isDisplayin interfaceIsDefaultPluginElement- Returns:
- if the element is shown.
-
getPosition
public Position getPosition()
Description copied from interface:IsDefaultPluginElementReturns the position of element.- Specified by:
getPositionin interfaceIsDefaultPluginElement- Returns:
- the position of element.
-
isFullSize
public boolean isFullSize()
Description copied from interface:IsDefaultAbstractTitleReturns if marks that this box should take the full width/height of the canvas (moving other boxes).- Specified by:
isFullSizein interfaceIsDefaultAbstractTitle- Returns:
- Marks that this box should take the full width/height of the canvas (moving other boxes)
-
getAlign
public ElementAlign getAlign()
Description copied from interface:IsDefaultPluginElementReturns the alignment of the element.- Specified by:
getAlignin interfaceIsDefaultPluginElement- Returns:
- alignment of the element.
-
-