All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.highcharts.TitleOptions Maven / Gradle / Ivy

There is a newer version: 0.1.0-alpha2
Show newest version
package com.github.fluorumlabs.disconnect.highcharts;

import java.lang.String;
import javax.annotation.Nullable;
import js.extras.JsEnum;
import js.lang.Any;
import org.teavm.jso.JSProperty;

/**
 * (Highcharts, Highstock, Highmaps) The chart's main title.
 *
 * @see https://api.highcharts.com/highcharts/title
 * @see https://api.highcharts.com/highstock/title
 * @see https://api.highcharts.com/highmaps/title
 *
 */
public interface TitleOptions extends Any {
  /**
   * (Highcharts, Highstock, Highmaps) The horizontal alignment of the title.
   * Can be one of "left", "center" and "right".
   *
   * @see https://api.highcharts.com/highcharts/title.align
   * @see https://api.highcharts.com/highstock/title.align
   * @see https://api.highcharts.com/highmaps/title.align
   *
   * @implspec align?: ("center"|"left"|"right");
   *
   */
  @JSProperty("align")
  @Nullable
  Align getAlign();

  /**
   * (Highcharts, Highstock, Highmaps) The horizontal alignment of the title.
   * Can be one of "left", "center" and "right".
   *
   * @see https://api.highcharts.com/highcharts/title.align
   * @see https://api.highcharts.com/highstock/title.align
   * @see https://api.highcharts.com/highmaps/title.align
   *
   * @implspec align?: ("center"|"left"|"right");
   *
   */
  @JSProperty("align")
  void setAlign(Align value);

  /**
   * (Highcharts, Highstock, Highmaps) When the title is floating, the plot
   * area will not move to make space for it.
   *
   * @see https://api.highcharts.com/highcharts/title.floating
   * @see https://api.highcharts.com/highstock/title.floating
   * @see https://api.highcharts.com/highmaps/title.floating
   *
   * @implspec floating?: boolean;
   *
   */
  @JSProperty("floating")
  boolean getFloating();

  /**
   * (Highcharts, Highstock, Highmaps) When the title is floating, the plot
   * area will not move to make space for it.
   *
   * @see https://api.highcharts.com/highcharts/title.floating
   * @see https://api.highcharts.com/highstock/title.floating
   * @see https://api.highcharts.com/highmaps/title.floating
   *
   * @implspec floating?: boolean;
   *
   */
  @JSProperty("floating")
  void setFloating(boolean value);

  /**
   * (Highcharts, Highstock, Highmaps) The margin between the title and the
   * plot area, or if a subtitle is present, the margin between the subtitle
   * and the plot area.
   *
   * @see https://api.highcharts.com/highcharts/title.margin
   * @see https://api.highcharts.com/highstock/title.margin
   * @see https://api.highcharts.com/highmaps/title.margin
   *
   * @implspec margin?: number;
   *
   */
  @JSProperty("margin")
  double getMargin();

  /**
   * (Highcharts, Highstock, Highmaps) The margin between the title and the
   * plot area, or if a subtitle is present, the margin between the subtitle
   * and the plot area.
   *
   * @see https://api.highcharts.com/highcharts/title.margin
   * @see https://api.highcharts.com/highstock/title.margin
   * @see https://api.highcharts.com/highmaps/title.margin
   *
   * @implspec margin?: number;
   *
   */
  @JSProperty("margin")
  void setMargin(double value);

  /**
   * (Highcharts, Highstock, Highmaps) CSS styles for the title. Use this for
   * font styling, but use align, x and y for text alignment.
   *
   * In styled mode, the title style is given in the .highcharts-title
   * class.
   *
   * @see https://api.highcharts.com/highcharts/title.style
   * @see https://api.highcharts.com/highstock/title.style
   * @see https://api.highcharts.com/highmaps/title.style
   *
   * @implspec style?: CSSObject;
   *
   */
  @JSProperty("style")
  @Nullable
  CSSObject getStyle();

  /**
   * (Highcharts, Highstock, Highmaps) CSS styles for the title. Use this for
   * font styling, but use align, x and y for text alignment.
   *
   * In styled mode, the title style is given in the .highcharts-title
   * class.
   *
   * @see https://api.highcharts.com/highcharts/title.style
   * @see https://api.highcharts.com/highstock/title.style
   * @see https://api.highcharts.com/highmaps/title.style
   *
   * @implspec style?: CSSObject;
   *
   */
  @JSProperty("style")
  void setStyle(CSSObject value);

  /**
   * (Highcharts, Highstock, Highmaps) The title of the chart. To disable the
   * title, set the text to undefined.
   *
   * @see https://api.highcharts.com/highcharts/title.text
   * @see https://api.highcharts.com/highstock/title.text
   * @see https://api.highcharts.com/highmaps/title.text
   *
   * @implspec text?: string;
   *
   */
  @JSProperty("text")
  @Nullable
  String getText();

  /**
   * (Highcharts, Highstock, Highmaps) The title of the chart. To disable the
   * title, set the text to undefined.
   *
   * @see https://api.highcharts.com/highcharts/title.text
   * @see https://api.highcharts.com/highstock/title.text
   * @see https://api.highcharts.com/highmaps/title.text
   *
   * @implspec text?: string;
   *
   */
  @JSProperty("text")
  void setText(String value);

  /**
   * (Highcharts, Highstock, Highmaps) Whether to use HTML to render the text.
   *
   * @see https://api.highcharts.com/highcharts/title.useHTML
   * @see https://api.highcharts.com/highstock/title.useHTML
   * @see https://api.highcharts.com/highmaps/title.useHTML
   *
   * @implspec useHTML?: boolean;
   *
   */
  @JSProperty("useHTML")
  boolean getUseHTML();

  /**
   * (Highcharts, Highstock, Highmaps) Whether to use HTML to render the text.
   *
   * @see https://api.highcharts.com/highcharts/title.useHTML
   * @see https://api.highcharts.com/highstock/title.useHTML
   * @see https://api.highcharts.com/highmaps/title.useHTML
   *
   * @implspec useHTML?: boolean;
   *
   */
  @JSProperty("useHTML")
  void setUseHTML(boolean value);

  /**
   * (Highcharts, Highstock, Highmaps) The vertical alignment of the title.
   * Can be one of "top", "middle" and "bottom". When a value is given,
   * the title behaves as if floating were true.
   *
   * @see https://api.highcharts.com/highcharts/title.verticalAlign
   * @see https://api.highcharts.com/highstock/title.verticalAlign
   * @see https://api.highcharts.com/highmaps/title.verticalAlign
   *
   * @implspec verticalAlign?: ("bottom"|"middle"|"top");
   *
   */
  @JSProperty("verticalAlign")
  @Nullable
  VerticalAlign getVerticalAlign();

  /**
   * (Highcharts, Highstock, Highmaps) The vertical alignment of the title.
   * Can be one of "top", "middle" and "bottom". When a value is given,
   * the title behaves as if floating were true.
   *
   * @see https://api.highcharts.com/highcharts/title.verticalAlign
   * @see https://api.highcharts.com/highstock/title.verticalAlign
   * @see https://api.highcharts.com/highmaps/title.verticalAlign
   *
   * @implspec verticalAlign?: ("bottom"|"middle"|"top");
   *
   */
  @JSProperty("verticalAlign")
  void setVerticalAlign(VerticalAlign value);

  /**
   * (Highcharts, Highstock, Highmaps) Adjustment made to the title width,
   * normally to reserve space for the exporting burger menu.
   *
   * @see https://api.highcharts.com/highcharts/title.widthAdjust
   * @see https://api.highcharts.com/highstock/title.widthAdjust
   * @see https://api.highcharts.com/highmaps/title.widthAdjust
   *
   * @implspec widthAdjust?: number;
   *
   */
  @JSProperty("widthAdjust")
  double getWidthAdjust();

  /**
   * (Highcharts, Highstock, Highmaps) Adjustment made to the title width,
   * normally to reserve space for the exporting burger menu.
   *
   * @see https://api.highcharts.com/highcharts/title.widthAdjust
   * @see https://api.highcharts.com/highstock/title.widthAdjust
   * @see https://api.highcharts.com/highmaps/title.widthAdjust
   *
   * @implspec widthAdjust?: number;
   *
   */
  @JSProperty("widthAdjust")
  void setWidthAdjust(double value);

  /**
   * (Highcharts, Highstock, Highmaps) The x position of the title relative to
   * the alignment within chart.spacingLeft and chart.spacingRight.
   *
   * @see https://api.highcharts.com/highcharts/title.x
   * @see https://api.highcharts.com/highstock/title.x
   * @see https://api.highcharts.com/highmaps/title.x
   *
   * @implspec x?: number;
   *
   */
  @JSProperty("x")
  double getX();

  /**
   * (Highcharts, Highstock, Highmaps) The x position of the title relative to
   * the alignment within chart.spacingLeft and chart.spacingRight.
   *
   * @see https://api.highcharts.com/highcharts/title.x
   * @see https://api.highcharts.com/highstock/title.x
   * @see https://api.highcharts.com/highmaps/title.x
   *
   * @implspec x?: number;
   *
   */
  @JSProperty("x")
  void setX(double value);

  /**
   * (Highcharts, Highstock, Highmaps) The y position of the title relative to
   * the alignment within chart.spacingTop and chart.spacingBottom. By default
   * it depends on the font size.
   *
   * @see https://api.highcharts.com/highcharts/title.y
   * @see https://api.highcharts.com/highstock/title.y
   * @see https://api.highcharts.com/highmaps/title.y
   *
   * @implspec y?: number;
   *
   */
  @JSProperty("y")
  double getY();

  /**
   * (Highcharts, Highstock, Highmaps) The y position of the title relative to
   * the alignment within chart.spacingTop and chart.spacingBottom. By default
   * it depends on the font size.
   *
   * @see https://api.highcharts.com/highcharts/title.y
   * @see https://api.highcharts.com/highstock/title.y
   * @see https://api.highcharts.com/highmaps/title.y
   *
   * @implspec y?: number;
   *
   */
  @JSProperty("y")
  void setY(double value);

  /**
   */
  abstract class Align extends JsEnum {
    public static final Align CENTER = JsEnum.of("center");

    public static final Align LEFT = JsEnum.of("left");

    public static final Align RIGHT = JsEnum.of("right");
  }

  /**
   */
  abstract class VerticalAlign extends JsEnum {
    public static final VerticalAlign BOTTOM = JsEnum.of("bottom");

    public static final VerticalAlign MIDDLE = JsEnum.of("middle");

    public static final VerticalAlign TOP = JsEnum.of("top");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy