All Implemented Interfaces:
Serializable

public class Credits extends AbstractConfigurationObject
Highchart by default puts a credits label in the lower right corner of the chart. This can be changed using these options.
See Also:
  • Constructor Details

    • Credits

      public Credits()
    • Credits

      public Credits(Boolean enabled)
    • Credits

      public Credits(String text)
  • Method Details

    • getEnabled

      public Boolean getEnabled()
      See Also:
    • setEnabled

      public void setEnabled(Boolean enabled)
      Whether to show the credits text.

      Defaults to: true

    • getHref

      public String getHref()
      See Also:
    • setHref

      public void setHref(String href)
      The URL for the credits label.

      Defaults to: http://www.highcharts.com

    • setUnsafeHref

      public void setUnsafeHref(String href)
      Sets the URL for the credits label without validating its scheme.

      Unlike setHref(String), this method does not reject URLs based on the "com.vaadin.safeUrlSchemes" configuration. Use it only for URLs that are fully under your control and known to be safe. Passing untrusted input here can expose the application to cross-site scripting (XSS) attacks.

      Parameters:
      href - the URL for the credits label
      See Also:
    • getPosition

      public Position getPosition()
      See Also:
    • setPosition

      public void setPosition(Position position)
      Position configuration for the credits label.
    • getStyle

      public Style getStyle()
      See Also:
    • setStyle

      public void setStyle(Style style)
      CSS styles for the credits label.

      Defaults to: { "cursor": "pointer", "color": "#999999", "fontSize": "10px" }

    • getText

      public String getText()
      See Also:
    • setText

      public void setText(String text)
      The text for the credits label.

      Defaults to: Highcharts.com