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

public class Title extends Object
  • Field Details

    • align

      protected String align
    • color

      protected Color color
    • display

      protected Boolean display
    • fullSize

      protected Boolean fullSize
    • position

      protected String position
    • font

      protected Font font
    • padding

      protected Integer padding
    • text

      protected String text
  • Constructor Details

    • Title

      public Title()
  • Method Details

    • getAlign

      public String getAlign()
      See Also:
    • setAlign

      public Title setAlign(String align)
      Alignment of the title

      Default: center

    • getColor

      public Color getColor()
      See Also:
    • setColor

      public Title setColor(Color color)
      Color of text
    • getFullSize

      public Boolean getFullSize()
      See Also:
    • setFullSize

      public Title setFullSize(Boolean fullSize)
      Marks that this box should take the full width/height of the canvas. If false, the box is sized and placed above/beside the chart area.

      Default: true

    • getFont

      public Font getFont()
    • setFont

      public Title setFont(Font font)
    • getDisplay

      public Boolean getDisplay()
      See Also:
    • setDisplay

      public Title setDisplay(Boolean display)

      Display the title block

      Default false

    • getPosition

      public String getPosition()
      See Also:
    • setPosition

      public Title setPosition(String position)

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

      Default 'top'

    • 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 ""