public class Title extends Object
Constructor and Description |
---|
Title() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getDisplay() |
Color |
getFontColor() |
String |
getFontFamily() |
Integer |
getFontSize() |
FontStyle |
getFontStyle() |
Boolean |
getFullWidth() |
Integer |
getPadding() |
TitlePosition |
getPosition() |
String |
getText() |
Title |
setDisplay(Boolean display)
Display the title block
|
Title |
setFontColor(Color fontColor)
Font color inherited from global configuration
|
Title |
setFontFamily(String fontFamily)
Font family inherited from global configuration
|
Title |
setFontSize(Integer fontSize)
Font size inherited from global configuration
|
Title |
setFontStyle(FontStyle fontStyle)
Font styling of the title, follows CSS font-style options (i.e.
|
Title |
setFullWidth(Boolean fullWidth)
Marks that this box should take the full width of the canvas (pushing
down other boxes)
|
Title |
setPadding(Integer padding)
Number of pixels to add above and below the title text
|
Title |
setPosition(TitlePosition position)
Position of the title.
|
Title |
setText(String text)
Title text
|
public Boolean getDisplay()
setDisplay(Boolean)
public TitlePosition getPosition()
setPosition(TitlePosition)
public Title setPosition(TitlePosition position)
Position of the title. Only 'top' or 'bottom' are currently allowed
Default 'top'
public Boolean getFullWidth()
setFullWidth(Boolean)
public Title setFullWidth(Boolean fullWidth)
Marks that this box should take the full width of the canvas (pushing down other boxes)
Default true
public Integer getFontSize()
setFontSize(Integer)
public Title setFontSize(Integer fontSize)
Font size inherited from global configuration
Default 12
public String getFontFamily()
setFontFamily(String)
public Title setFontFamily(String fontFamily)
Font family inherited from global configuration
Default "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"
public Color getFontColor()
setFontColor(Color)
public Title setFontColor(Color fontColor)
Font color inherited from global configuration
Default "#666"
public FontStyle getFontStyle()
setFontStyle(FontStyle)
public Title setFontStyle(FontStyle fontStyle)
Font styling of the title, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
Default 'bold'
public Integer getPadding()
setPadding(Integer)
public Title setPadding(Integer padding)
Number of pixels to add above and below the title text
Default 10
public String getText()
setText(String)
Copyright © 2020. All rights reserved.