Class Pane

  • All Implemented Interfaces:
    Serializable

    public class Pane
    extends AbstractConfigurationObject
    Applies only to polar charts and angular gauges. This configuration object holds general options for the combined X and Y axes set. Each xAxis or yAxis can reference the pane by index.
    See Also:
    Serialized Form
    • Constructor Detail

      • Pane

        public Pane()
      • Pane

        public Pane​(Number startAngle,
                    Number endAngle)
    • Method Detail

      • setBackground

        public void setBackground​(Background... background)
        An object, or array of objects, for backgrounds.
      • removeBackground

        public void removeBackground​(Background background)
        Removes first occurrence of background in background array
        Parameters:
        background - to remove
        See Also:
        setBackground(Background...)
      • setCenter

        public void setCenter​(String[] center)
        The center of a polar chart or angular gauge, given as an array of [x, y] positions. Positions can be given as integers that transform to pixels, or as percentages of the plot area size.

        Defaults to: ["50%", "50%"]

      • setEndAngle

        public void setEndAngle​(Number endAngle)
        The end angle of the polar X axis or gauge value axis, given in degrees where 0 is north. Defaults to startAngle + 360.
      • setSize

        public void setSize​(String size)
        The size of the pane, either as a number defining pixels, or a percentage defining a percentage of the plot are.

        Defaults to: 85%

      • setStartAngle

        public void setStartAngle​(Number startAngle)
        The start angle of the polar X axis or gauge axis, given in degrees where 0 is north. Defaults to 0.
      • setCenter

        public void setCenter​(String x,
                              String y)
      • getCenter

        public String[] getCenter()