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

com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.Polygon Maven / Gradle / Ivy

There is a newer version: 0.0.7
Show newest version

package com.github.highcharts4gwt.model.highcharts.option.api.plotoptions;

import com.github.highcharts4gwt.model.array.api.ArrayNumber;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.DataLabels;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.Marker;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.Point;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.PolygonAfterAnimateHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.PolygonCheckboxClickHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.PolygonClickHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.PolygonHideHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.PolygonLegendItemClickHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.PolygonMouseOutHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.PolygonMouseOverHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.PolygonShowHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.States;
import com.github.highcharts4gwt.model.highcharts.option.api.plotoptions.polygon.Tooltip;


/**
 * A polygon series can be used to draw any freeform shape in the cartesian coordinate system. A fill is applied with the color option, and stroke is applied through lineWidth and lineColor options. Requires the highcharts-more.js file.
 * 
 */
public interface Polygon {


    /**
     * Allow this series' points to be selected by clicking on the markers, bars or pie slices.
     * 
     */
    boolean allowPointSelect();

    /**
     * Allow this series' points to be selected by clicking on the markers, bars or pie slices.
     * 
     */
    Polygon allowPointSelect(boolean allowPointSelect);

    /**
     * 

Enable or disable the initial animation when a series is displayed. The animation can also be set as a configuration object. Please note that this option only applies to the initial animation of the series itself. For other animations, see chart.animation and the animation parameter under the API methods. The following properties are supported:

*
*
duration
*
The duration of the animation in milliseconds.
*
easing
*
When using jQuery as the general framework, the easing can be set to linear or swing. More easing functions are available with the use of jQuery plug-ins, most notably the jQuery UI suite. See the jQuery docs. When using MooTools as the general framework, use the property name transition instead of easing.
*
*

* Due to poor performance, animation is disabled in old IE browsers for column charts and polar charts.

* */ boolean animation(); /** *

Enable or disable the initial animation when a series is displayed. The animation can also be set as a configuration object. Please note that this option only applies to the initial animation of the series itself. For other animations, see chart.animation and the animation parameter under the API methods. The following properties are supported:

*
*
duration
*
The duration of the animation in milliseconds.
*
easing
*
When using jQuery as the general framework, the easing can be set to linear or swing. More easing functions are available with the use of jQuery plug-ins, most notably the jQuery UI suite. See the jQuery docs. When using MooTools as the general framework, use the property name transition instead of easing.
*
*

* Due to poor performance, animation is disabled in old IE browsers for column charts and polar charts.

* */ Polygon animation(boolean animation); /** * The main color or the series. In line type series it applies to the line and the point markers unless otherwise specified. In bar type series it applies to the bars unless a color is specified per point. The default value is pulled from the options.colors array. * */ String color(); /** * The main color or the series. In line type series it applies to the line and the point markers unless otherwise specified. In bar type series it applies to the bars unless a color is specified per point. The default value is pulled from the options.colors array. * */ Polygon color(String color); /** * When the series contains less points than the crop threshold, all points are drawn, event if the points fall outside the visible plot area at the current zoom. The advantage of drawing all points (including markers and columns), is that animation is performed on updates. On the other hand, when the series contains more points than the crop threshold, the series data is cropped to only contain points that fall within the plot area. The advantage of cropping away invisible points is to increase performance on large series. . * */ double cropThreshold(); /** * When the series contains less points than the crop threshold, all points are drawn, event if the points fall outside the visible plot area at the current zoom. The advantage of drawing all points (including markers and columns), is that animation is performed on updates. On the other hand, when the series contains more points than the crop threshold, the series data is cropped to only contain points that fall within the plot area. The advantage of cropping away invisible points is to increase performance on large series. . * */ Polygon cropThreshold(double cropThreshold); /** * You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked. * */ String cursor(); /** * You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked. * */ Polygon cursor(String cursor); /** * A name for the dash style to use for the graph. Applies only to series type having a graph, like line, spline, area and scatter in case it has a lineWidth. The value for the dashStyle include: *
    *
  • Solid
  • *
  • ShortDash
  • *
  • ShortDot
  • *
  • ShortDashDot
  • *
  • ShortDashDotDot
  • *
  • Dot
  • *
  • Dash
  • *
  • LongDash
  • *
  • DashDot
  • *
  • LongDashDot
  • *
  • LongDashDotDot
  • *
* */ String dashStyle(); /** * A name for the dash style to use for the graph. Applies only to series type having a graph, like line, spline, area and scatter in case it has a lineWidth. The value for the dashStyle include: *
    *
  • Solid
  • *
  • ShortDash
  • *
  • ShortDot
  • *
  • ShortDashDot
  • *
  • ShortDashDotDot
  • *
  • Dot
  • *
  • Dash
  • *
  • LongDash
  • *
  • DashDot
  • *
  • LongDashDot
  • *
  • LongDashDotDot
  • *
* */ Polygon dashStyle(String dashStyle); /** * */ DataLabels dataLabels(); /** * */ Polygon dataLabels(DataLabels dataLabels); /** * Enable or disable the mouse tracking for a specific series. This includes point tooltips and click events on graphs and points. For large datasets it improves performance. * */ boolean enableMouseTracking(); /** * Enable or disable the mouse tracking for a specific series. This includes point tooltips and click events on graphs and points. For large datasets it improves performance. * */ Polygon enableMouseTracking(boolean enableMouseTracking); void addPolygonAfterAnimateHandler(PolygonAfterAnimateHandler polygonAfterAnimateHandler); void addPolygonCheckboxClickHandler(PolygonCheckboxClickHandler polygonCheckboxClickHandler); void addPolygonClickHandler(PolygonClickHandler polygonClickHandler); void addPolygonHideHandler(PolygonHideHandler polygonHideHandler); void addPolygonLegendItemClickHandler(PolygonLegendItemClickHandler polygonLegendItemClickHandler); void addPolygonMouseOutHandler(PolygonMouseOutHandler polygonMouseOutHandler); void addPolygonMouseOverHandler(PolygonMouseOverHandler polygonMouseOverHandler); void addPolygonShowHandler(PolygonShowHandler polygonShowHandler); /** * The width of the line connecting the data points. * */ double lineWidth(); /** * The width of the line connecting the data points. * */ Polygon lineWidth(double lineWidth); /** * The id of another series to link to. Additionally, the value can be ":previous" to link to the previous series. When two series are linked, only the first one appears in the legend. Toggling the visibility of this also toggles the linked series. * */ String linkedTo(); /** * The id of another series to link to. Additionally, the value can be ":previous" to link to the previous series. When two series are linked, only the first one appears in the legend. Toggling the visibility of this also toggles the linked series. * */ Polygon linkedTo(String linkedTo); /** * */ Marker marker(); /** * */ Polygon marker(Marker marker); /** * The color for the parts of the graph or points that are below the threshold. * */ String negativeColor(); /** * The color for the parts of the graph or points that are below the threshold. * */ Polygon negativeColor(String negativeColor); /** * Properties for each single point * */ Point point(); /** * Properties for each single point * */ Polygon point(Point point); /** *

If no x values are given for the points in a series, pointInterval defines * the interval of the x values. For example, if a series contains one value * every decade starting from year 0, set pointInterval to 10.

*

Since Highcharts 4.1, it can be combined with pointIntervalUnit to draw irregular intervals.

* */ double pointInterval(); /** *

If no x values are given for the points in a series, pointInterval defines * the interval of the x values. For example, if a series contains one value * every decade starting from year 0, set pointInterval to 10.

*

Since Highcharts 4.1, it can be combined with pointIntervalUnit to draw irregular intervals.

* */ Polygon pointInterval(double pointInterval); /** * On datetime series, this allows for setting the pointInterval to the two irregular time units, month and year. Combine it with pointInterval to draw quarters, 6 months, 10 years etc. * */ String pointIntervalUnit(); /** * On datetime series, this allows for setting the pointInterval to the two irregular time units, month and year. Combine it with pointInterval to draw quarters, 6 months, 10 years etc. * */ Polygon pointIntervalUnit(String pointIntervalUnit); /** * If no x values are given for the points in a series, pointStart defines on what value to start. For example, if a series contains one yearly value starting from 1945, set pointStart to 1945. * */ double pointStart(); /** * If no x values are given for the points in a series, pointStart defines on what value to start. For example, if a series contains one yearly value starting from 1945, set pointStart to 1945. * */ Polygon pointStart(double pointStart); /** * Whether to select the series initially. If showCheckbox is true, the checkbox next to the series name will be checked for a selected series. * */ boolean selected(); /** * Whether to select the series initially. If showCheckbox is true, the checkbox next to the series name will be checked for a selected series. * */ Polygon selected(boolean selected); /** * Whether to apply a drop shadow to the graph line. Since 2.3 the shadow can be an object configuration containing color, offsetX, offsetY, opacity and width. * */ boolean shadowAsBoolean(); /** * Whether to apply a drop shadow to the graph line. Since 2.3 the shadow can be an object configuration containing color, offsetX, offsetY, opacity and width. * */ Polygon shadowAsBoolean(boolean shadowAsBoolean); /** * Whether to apply a drop shadow to the graph line. Since 2.3 the shadow can be an object configuration containing color, offsetX, offsetY, opacity and width. * */ String shadowAsJsonString(); /** * Whether to apply a drop shadow to the graph line. Since 2.3 the shadow can be an object configuration containing color, offsetX, offsetY, opacity and width. * */ Polygon shadowAsJsonString(String shadowAsJsonString); /** * If true, a checkbox is displayed next to the legend item to allow selecting the series. The state of the checkbox is determined by the selected option. * */ boolean showCheckbox(); /** * If true, a checkbox is displayed next to the legend item to allow selecting the series. The state of the checkbox is determined by the selected option. * */ Polygon showCheckbox(boolean showCheckbox); /** * Whether to display this particular series or series type in the legend. The default value is true for standalone series, false for linked series. * */ boolean showInLegend(); /** * Whether to display this particular series or series type in the legend. The default value is true for standalone series, false for linked series. * */ Polygon showInLegend(boolean showInLegend); /** * A wrapper object for all the series options in specific states. * */ States states(); /** * A wrapper object for all the series options in specific states. * */ Polygon states(States states); /** * Sticky tracking of mouse events. When true, the mouseOut event on a series isn't triggered until the mouse moves over another series, or out of the plot area. When false, the mouseOut event on a series is triggered when the mouse leaves the area around the series' graph or markers. This also implies the tooltip. When stickyTracking is false and tooltip.shared is false, the tooltip will be hidden when moving the mouse between series. * */ boolean stickyTracking(); /** * Sticky tracking of mouse events. When true, the mouseOut event on a series isn't triggered until the mouse moves over another series, or out of the plot area. When false, the mouseOut event on a series is triggered when the mouse leaves the area around the series' graph or markers. This also implies the tooltip. When stickyTracking is false and tooltip.shared is false, the tooltip will be hidden when moving the mouse between series. * */ Polygon stickyTracking(boolean stickyTracking); /** * The threshold, also called zero level or base level. For line type series this is only used in conjunction with negativeColor. * */ double threshold(); /** * The threshold, also called zero level or base level. For line type series this is only used in conjunction with negativeColor. * */ Polygon threshold(double threshold); /** * A configuration object for the tooltip rendering of each single series. Properties are inherited from tooltip, but only the following properties can be defined on a series level. * */ Tooltip tooltip(); /** * A configuration object for the tooltip rendering of each single series. Properties are inherited from tooltip, but only the following properties can be defined on a series level. * */ Polygon tooltip(Tooltip tooltip); /** * When a series contains a data array that is longer than this, only one dimensional arrays of numbers, or two dimensional arrays with x and y values are allowed. Also, only the first point is tested, and the rest are assumed to be the same format. This saves expensive data checking and indexing in long series. Set it to 0 disable. * */ double turboThreshold(); /** * When a series contains a data array that is longer than this, only one dimensional arrays of numbers, or two dimensional arrays with x and y values are allowed. Also, only the first point is tested, and the rest are assumed to be the same format. This saves expensive data checking and indexing in long series. Set it to 0 disable. * */ Polygon turboThreshold(double turboThreshold); /** * Set the initial visibility of the series. * */ boolean visible(); /** * Set the initial visibility of the series. * */ Polygon visible(boolean visible); /** * Defines the Axis on which the zones are applied. * */ String zoneAxis(); /** * Defines the Axis on which the zones are applied. * */ Polygon zoneAxis(String zoneAxis); /** * An array defining zones within a series. * */ ArrayNumber zones(); /** * An array defining zones within a series. * */ Polygon zones(ArrayNumber zones); String getFieldAsJsonObject(String fieldName); Polygon setFieldAsJsonObject(String fieldName, String fieldValueAsJonObject); String getFunctionAsString(String fieldName); Polygon setFunctionAsString(String fieldName, String functionAsString); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy