Class Subtitle
-
- All Implemented Interfaces:
IsDefaultAbstractTitle
,IsDefaultFontContainer
,IsDefaultPluginElement
,IsDefaultSubtitle
,HasFont
,IsTitle
public final class Subtitle extends AbstractTitle<IsDefaultSubtitle> implements IsDefaultSubtitle
Configures the default chart subtitle which defines text to draw at the top of the chart.- 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.Position
getPosition()
Returns the position of element.boolean
isDisplay()
Returnstrue
if the element is shown.void
setAlign(ElementAlign alignment)
Sets the alignment of the element.void
setDisplay(boolean display)
Setstrue
if the element is shown.void
setPosition(Position position)
Sets the position of element.-
Methods inherited from class org.pepstock.charba.client.options.AbstractTitle
getFont, getFontContainer, getPadding, getText, isFullSize, setColor, setFullSize, setText
-
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, setColor
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultAbstractTitle
isFullSize
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultPluginElement
getAlign, getPosition, isDisplay
-
Methods inherited from interface org.pepstock.charba.client.options.IsTitle
setAlign, setDisplay, setPosition
-
-
-
-
Method Detail
-
setDisplay
public void setDisplay(boolean display)
Setstrue
if the element is shown.- Parameters:
display
- iftrue
the element is shown.
-
isDisplay
public boolean isDisplay()
Returnstrue
if the element is shown.- Specified by:
isDisplay
in interfaceIsDefaultPluginElement
- Returns:
- if
true
the element is shown.
-
setPosition
public void setPosition(Position position)
Sets the position of element.- Parameters:
position
- the position of element.
-
getPosition
public Position getPosition()
Returns the position of element.- Specified by:
getPosition
in interfaceIsDefaultPluginElement
- Returns:
- the position of element.
-
setAlign
public void setAlign(ElementAlign alignment)
Sets the alignment of the element.- Parameters:
alignment
- alignment of the element.
-
getAlign
public ElementAlign getAlign()
Returns the alignment of the element.- Specified by:
getAlign
in interfaceIsDefaultPluginElement
- Returns:
- alignment of the element.
-
-