java.lang.Object
software.xdev.chartjs.model.options.Title

public class Title extends Object
  • Field Details

    • display

      protected Boolean display
    • position

      protected TitlePosition position
    • fullWidth

      protected Boolean fullWidth
    • fontSize

      protected Integer fontSize
    • fontFamily

      protected String fontFamily
    • fontColor

      protected Color fontColor
    • fontStyle

      protected FontStyle fontStyle
    • padding

      protected Integer padding
    • text

      protected String text
  • Constructor Details

    • Title

      public Title()
  • Method Details

    • getDisplay

      public Boolean getDisplay()
      See Also:
    • setDisplay

      public Title setDisplay(Boolean display)

      Display the title block

      Default false

    • getPosition

      public TitlePosition getPosition()
      See Also:
    • setPosition

      public Title setPosition(TitlePosition position)

      Position of the title. Only 'top' or 'bottom' are currently allowed

      Default 'top'

    • getFullWidth

      public Boolean getFullWidth()
      See Also:
    • setFullWidth

      public Title setFullWidth(Boolean fullWidth)

      Marks that this box should take the full width of the canvas (pushing down other boxes)

      Default true

    • getFontSize

      public Integer getFontSize()
      See Also:
    • setFontSize

      public Title setFontSize(Integer fontSize)

      Font size inherited from global configuration

      Default 12

    • getFontFamily

      public String getFontFamily()
      See Also:
    • setFontFamily

      public Title setFontFamily(String fontFamily)

      Font family inherited from global configuration

      Default "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"

    • getFontColor

      public Color getFontColor()
      See Also:
    • setFontColor

      public Title setFontColor(Color fontColor)

      Font color inherited from global configuration

      Default "#666"

    • getFontStyle

      public FontStyle getFontStyle()
      See Also:
    • setFontStyle

      public Title setFontStyle(FontStyle fontStyle)

      Font styling of the title, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).

      Default 'bold'

    • getPadding

      public Integer getPadding()
      See Also:
    • setPadding

      public Title setPadding(Integer padding)

      Number of pixels to add above and below the title text

      Default 10

    • getText

      public String getText()
      See Also:
    • setText

      public Title setText(String text)

      Title text

      Default ""