Class Title

All Implemented Interfaces:
Serializable

public class Title extends AbstractChartObject
Creates a title on above the chart, multiple can be assigned.
See documentation for properties of Title JS Object.
http://docs.amcharts.com/3/javascriptcharts/Title
See Also:
  • Constructor Details

    • Title

      public Title()
  • Method Details

    • getAlpha

      public Double getAlpha()
      Returns:
      opacity of a title
    • setAlpha

      @StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) Title setAlpha(Double alpha)
      Sets opacity of a title. If not set the default value is 1.
      Parameters:
      alpha - opacity
      Returns:
      title
    • getBold

      public Boolean getBold()
      Returns:
      true if title is bold
    • setBold

      @StudioProperty(defaultValue="true") public Title setBold(Boolean bold)
      Set bold to false if title shouldn't be bold. If not set the default value is true.
      Parameters:
      bold - bold option
      Returns:
      title
    • getColor

      public Color getColor()
      Returns:
      text color of a title
    • setColor

      @StudioProperty(type=OPTIONS) public Title setColor(Color color)
      Sets text color of a title.
      Parameters:
      color - color
      Returns:
      title
    • getSize

      public Integer getSize()
      Returns:
      text size of a title
    • setSize

      @StudioProperty public Title setSize(Integer size)
      Sets text size of a title.
      Parameters:
      size - text size
      Returns:
      title
    • getText

      public String getText()
      Returns:
      text of a title
    • setText

      @StudioProperty public Title setText(String text)
      Sets text of a title.
      Parameters:
      text - text
      Returns:
      title
    • getId

      public String getId()
      Returns:
      unique id of a title
    • setId

      @StudioProperty public Title setId(String id)
      Sets unique id of a title.
      Parameters:
      id - id
      Returns:
      title
    • getTabIndex

      public Integer getTabIndex()
      Returns:
      tab index
    • setTabIndex

      @StudioProperty public Title setTabIndex(Integer tabIndex)
      In case you set it to some number, the chart will set focus on the title when user clicks tab key. When a focus is set, screen readers like NVDA screen reader will read the title. Note, not all browsers and readers support this.
      Parameters:
      tabIndex - tab index
      Returns:
      title