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

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

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

import javax.annotation.Nullable;
import js.lang.Any;
import js.util.collections.Array;
import org.teavm.jso.JSProperty;

/**
 * (Highcharts, Highstock, Gantt) Series labels are placed as close to the
 * series as possible in a natural way, seeking to avoid other series. The goal
 * of this feature is to make the chart more easily readable, like if a human
 * designer placed the labels in the optimal position.
 *
 * The series labels currently work with series types having a graph or an
 * area.
 *
 * Requires the series-label.js module.
 *
 * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label
 * @see https://api.highcharts.com/highstock/plotOptions.mfi.label
 * @see https://api.highcharts.com/gantt/plotOptions.mfi.label
 *
 */
public interface PlotMfiLabelOptions extends Any {
  /**
   * (Highcharts, Highstock, Gantt) An array of boxes to avoid when laying out
   * the labels. Each item has a left, right, top and bottom property.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.boxesToAvoid
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.boxesToAvoid
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.boxesToAvoid
   *
   * @implspec boxesToAvoid?: Array;
   *
   */
  @JSProperty("boxesToAvoid")
  @Nullable
  Array getBoxesToAvoid();

  /**
   * (Highcharts, Highstock, Gantt) An array of boxes to avoid when laying out
   * the labels. Each item has a left, right, top and bottom property.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.boxesToAvoid
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.boxesToAvoid
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.boxesToAvoid
   *
   * @implspec boxesToAvoid?: Array;
   *
   */
  @JSProperty("boxesToAvoid")
  void setBoxesToAvoid(Array value);

  /**
   * (Highcharts, Highstock, Gantt) Allow labels to be placed distant to the
   * graph if necessary, and draw a connector line to the graph. Setting this
   * option to true may decrease the performance significantly, since the
   * algorithm with systematically search for open spaces in the while plot
   * area. Visually, it may also result in a more cluttered chart, though more
   * of the series will be labeled.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.connectorAllowed
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.connectorAllowed
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.connectorAllowed
   *
   * @implspec connectorAllowed?: boolean;
   *
   */
  @JSProperty("connectorAllowed")
  boolean getConnectorAllowed();

  /**
   * (Highcharts, Highstock, Gantt) Allow labels to be placed distant to the
   * graph if necessary, and draw a connector line to the graph. Setting this
   * option to true may decrease the performance significantly, since the
   * algorithm with systematically search for open spaces in the while plot
   * area. Visually, it may also result in a more cluttered chart, though more
   * of the series will be labeled.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.connectorAllowed
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.connectorAllowed
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.connectorAllowed
   *
   * @implspec connectorAllowed?: boolean;
   *
   */
  @JSProperty("connectorAllowed")
  void setConnectorAllowed(boolean value);

  /**
   * (Highcharts, Highstock, Gantt) If the label is closer than this to a
   * neighbour graph, draw a connector.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.connectorNeighbourDistance
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.connectorNeighbourDistance
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.connectorNeighbourDistance
   *
   * @implspec connectorNeighbourDistance?: number;
   *
   */
  @JSProperty("connectorNeighbourDistance")
  double getConnectorNeighbourDistance();

  /**
   * (Highcharts, Highstock, Gantt) If the label is closer than this to a
   * neighbour graph, draw a connector.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.connectorNeighbourDistance
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.connectorNeighbourDistance
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.connectorNeighbourDistance
   *
   * @implspec connectorNeighbourDistance?: number;
   *
   */
  @JSProperty("connectorNeighbourDistance")
  void setConnectorNeighbourDistance(double value);

  /**
   * (Highcharts, Highstock, Gantt) Enable the series label per series.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.enabled
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.enabled
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.enabled
   *
   * @implspec enabled?: boolean;
   *
   */
  @JSProperty("enabled")
  boolean getEnabled();

  /**
   * (Highcharts, Highstock, Gantt) Enable the series label per series.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.enabled
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.enabled
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.enabled
   *
   * @implspec enabled?: boolean;
   *
   */
  @JSProperty("enabled")
  void setEnabled(boolean value);

  /**
   * (Highcharts, Highstock, Gantt) For area-like series, allow the font size
   * to vary so that small areas get a smaller font size. The default applies
   * this effect to area-like series but not line-like series.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.maxFontSize
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.maxFontSize
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.maxFontSize
   *
   * @implspec maxFontSize?: (number|null);
   *
   */
  @JSProperty("maxFontSize")
  double getMaxFontSize();

  /**
   * (Highcharts, Highstock, Gantt) For area-like series, allow the font size
   * to vary so that small areas get a smaller font size. The default applies
   * this effect to area-like series but not line-like series.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.maxFontSize
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.maxFontSize
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.maxFontSize
   *
   * @implspec maxFontSize?: (number|null);
   *
   */
  @JSProperty("maxFontSize")
  void setMaxFontSize(double value);

  /**
   * (Highcharts, Highstock, Gantt) For area-like series, allow the font size
   * to vary so that small areas get a smaller font size. The default applies
   * this effect to area-like series but not line-like series.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.minFontSize
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.minFontSize
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.minFontSize
   *
   * @implspec minFontSize?: (number|null);
   *
   */
  @JSProperty("minFontSize")
  double getMinFontSize();

  /**
   * (Highcharts, Highstock, Gantt) For area-like series, allow the font size
   * to vary so that small areas get a smaller font size. The default applies
   * this effect to area-like series but not line-like series.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.minFontSize
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.minFontSize
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.minFontSize
   *
   * @implspec minFontSize?: (number|null);
   *
   */
  @JSProperty("minFontSize")
  void setMinFontSize(double value);

  /**
   * (Highcharts, Highstock, Gantt) Draw the label on the area of an area
   * series. By default it is drawn on the area. Set it to false to draw it
   * next to the graph instead.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.onArea
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.onArea
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.onArea
   *
   * @implspec onArea?: (boolean|null);
   *
   */
  @JSProperty("onArea")
  boolean getOnArea();

  /**
   * (Highcharts, Highstock, Gantt) Draw the label on the area of an area
   * series. By default it is drawn on the area. Set it to false to draw it
   * next to the graph instead.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.onArea
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.onArea
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.onArea
   *
   * @implspec onArea?: (boolean|null);
   *
   */
  @JSProperty("onArea")
  void setOnArea(boolean value);

  /**
   * (Highcharts, Highstock, Gantt) Styles for the series label. The color
   * defaults to the series color, or a contrast color if onArea.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.style
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.style
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.style
   *
   * @implspec style?: CSSObject;
   *
   */
  @JSProperty("style")
  @Nullable
  CSSObject getStyle();

  /**
   * (Highcharts, Highstock, Gantt) Styles for the series label. The color
   * defaults to the series color, or a contrast color if onArea.
   *
   * @see https://api.highcharts.com/highcharts/plotOptions.mfi.label.style
   * @see https://api.highcharts.com/highstock/plotOptions.mfi.label.style
   * @see https://api.highcharts.com/gantt/plotOptions.mfi.label.style
   *
   * @implspec style?: CSSObject;
   *
   */
  @JSProperty("style")
  void setStyle(CSSObject value);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy