Class DefaultChartSubtitle
- java.lang.Object
-
- org.pepstock.charba.client.defaults.chart.DefaultChartSubtitle
-
- All Implemented Interfaces:
IsDefaultAbstractTitle,IsDefaultFontContainer,IsDefaultPluginElement,IsDefaultSubtitle
public final class DefaultChartSubtitle extends Object implements IsDefaultSubtitle
Defaults for subtitle option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description DefaultChartSubtitle(IsDefaultSubtitle subtitle)Creates the object by subtitle 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
-
DefaultChartSubtitle
public DefaultChartSubtitle(IsDefaultSubtitle subtitle)
Creates the object by subtitle option element instance.- Parameters:
subtitle- subtitle 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.
-
-