Class Title
java.lang.Object
software.xdev.chartjs.model.options.Title
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetText()
setDisplay
(Boolean display) Display the title blocksetFontColor
(Color fontColor) Font color inherited from global configurationsetFontFamily
(String fontFamily) Font family inherited from global configurationsetFontSize
(Integer fontSize) Font size inherited from global configurationsetFontStyle
(FontStyle fontStyle) Font styling of the title, follows CSS font-style options (i.e.setFullWidth
(Boolean fullWidth) Marks that this box should take the full width of the canvas (pushing down other boxes)setPadding
(Integer padding) Number of pixels to add above and below the title textsetPosition
(TitlePosition position) Position of the title.Title text
-
Field Details
-
display
-
position
-
fullWidth
-
fontSize
-
fontFamily
-
fontColor
-
fontStyle
-
padding
-
text
-
-
Constructor Details
-
Title
public Title()
-
-
Method Details
-
getDisplay
- See Also:
-
setDisplay
Display the title block
Default
false
-
getPosition
- See Also:
-
setPosition
Position of the title. Only 'top' or 'bottom' are currently allowed
Default
'top'
-
getFullWidth
- See Also:
-
setFullWidth
Marks that this box should take the full width of the canvas (pushing down other boxes)
Default
true
-
getFontSize
- See Also:
-
setFontSize
Font size inherited from global configuration
Default
12
-
getFontFamily
- See Also:
-
setFontFamily
Font family inherited from global configuration
Default
"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"
-
getFontColor
- See Also:
-
setFontColor
Font color inherited from global configuration
Default
"#666"
-
getFontStyle
- See Also:
-
setFontStyle
Font styling of the title, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
Default
'bold'
-
getPadding
- See Also:
-
setPadding
Number of pixels to add above and below the title text
Default
10
-
getText
- See Also:
-
setText
Title text
Default
""
-