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 ElementAlign
getAlign()
Returns the alignment of the element.String
getColorAsString()
Returns the font color as string.IsDefaultFont
getFont()
Returns the font element.IsDefaultPadding
getPadding()
Returns the padding to apply around labels.Position
getPosition()
Returns the position of element.boolean
isDisplay()
Returns if the element is shown.boolean
isFullSize()
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:IsDefaultFontContainer
Returns the font element.- Specified by:
getFont
in interfaceIsDefaultFontContainer
- Returns:
- the font
-
getPadding
public IsDefaultPadding getPadding()
Description copied from interface:IsDefaultAbstractTitle
Returns the padding to apply around labels. Only top and bottom are implemented.- Specified by:
getPadding
in interfaceIsDefaultAbstractTitle
- Returns:
- Padding to apply around labels. Only top and bottom are implemented.
-
getColorAsString
public String getColorAsString()
Description copied from interface:IsDefaultFontContainer
Returns the font color as string.- Specified by:
getColorAsString
in interfaceIsDefaultFontContainer
- Returns:
- font color as string
-
isDisplay
public boolean isDisplay()
Description copied from interface:IsDefaultPluginElement
Returns if the element is shown.- Specified by:
isDisplay
in interfaceIsDefaultPluginElement
- Returns:
- if the element is shown.
-
getPosition
public Position getPosition()
Description copied from interface:IsDefaultPluginElement
Returns the position of element.- Specified by:
getPosition
in interfaceIsDefaultPluginElement
- Returns:
- the position of element.
-
isFullSize
public boolean isFullSize()
Description copied from interface:IsDefaultAbstractTitle
Returns if marks that this box should take the full width/height of the canvas (moving other boxes).- Specified by:
isFullSize
in 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:IsDefaultPluginElement
Returns the alignment of the element.- Specified by:
getAlign
in interfaceIsDefaultPluginElement
- Returns:
- alignment of the element.
-
-