Class DefaultTitle
- java.lang.Object
-
- org.pepstock.charba.client.defaults.globals.DefaultTitle
-
- All Implemented Interfaces:
IsDefaultAbstractTitle
,IsDefaultFontContainer
,IsDefaultPluginElement
,IsDefaultTitle
public final class DefaultTitle extends Object implements IsDefaultTitle
CHART.JS default values for TITLE element.- Author:
- Andrea "Stock" Stocchero
-
-
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
isFullSize
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultFontContainer
getColorAsString
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultPluginElement
getAlign, getPosition, isDisplay
-
-
-
-
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.
-
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.
-
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
-
-