Class PlotBand

    • Constructor Detail

      • PlotBand

        public PlotBand()
        Default constructor
      • PlotBand

        public PlotBand​(Number from,
                        Number to,
                        String color)
        Constructs with the values, from, to, and color.
    • Method Detail

      • getColor

        public Color getColor()
        Returns the color of the plot band.

        Default: null.

      • setColor

        public void setColor​(Color color)
        Sets the color of the plot band.
      • setColor

        public void setColor​(String color)
        Sets the color of the plot band.
      • setColor

        public void setColor​(LinearGradient color)
        Sets the color of the plot band.
      • setColor

        public void setColor​(RadialGradient color)
        Sets the color of the plot band.
      • getFrom

        public Number getFrom()
        Returns the start position of the plot band in axis units.
      • setFrom

        public void setFrom​(Number from)
        Sets the start position of the plot band in axis units. 'from the start position of the plot band in axis units.
      • getInnerRadius

        public Object getInnerRadius()
        Returns the inner radius.
      • setInnerRadius

        public void setInnerRadius​(String innerRadius)
        Sets the inner radius.
      • setInnerRadius

        public void setInnerRadius​(Number innerRadius)
        Sets the inner radius.
      • getLabel

        public PlotLabel getLabel()
        Returns text labels for the plot bands

        Default: an instance of PlotLabel.

      • setLabel

        public void setLabel​(PlotLabel label)
        Sets text labels for the plot bands
      • setLabel

        public void setLabel​(String text)
      • getOuterRadius

        public Object getOuterRadius()
        Returns the outer radius

        Default: null.

      • setOuterRadius

        public void setOuterRadius​(String outerRadius)
        Sets the outer radius
      • setOuterRadius

        public void setOuterRadius​(Number outerRadius)
        Sets the outer radius
      • getThickness

        public Object getThickness()
        Returns the width of the plot band stretching along the perimeter.

        In a gauge chart, this option sets the width of the plot band stretching along the perimeter. It can be given as a percentage string, like "10%", or as a pixel number, like 10. The default value 10 is the same as the default tickLength, thus making the plot band act as a background for the tick markers.

        Default: 10

        Since:
        11.2.0.0
      • setThickness

        public void setThickness​(Number thickness)
        Sets the width of the plot band stretching along the perimeter.

        In a gauge chart, this option sets the width of the plot band stretching along the perimeter. It can be given as a percentage string, like "10%", or as a pixel number, like 10. The default value 10 is the same as the default tickLength, thus making the plot band act as a background for the tick markers.

        Since:
        11.2.0.0
      • setThickness

        public void setThickness​(String thickness)
        Sets the width of the plot band stretching along the perimeter.

        In a gauge chart, this option sets the width of the plot band stretching along the perimeter. It can be given as a percentage string, like "10%", or as a pixel number, like 10. The default value 10 is the same as the default tickLength, thus making the plot band act as a background for the tick markers.

        Since:
        11.2.0.0
      • getTo

        public Number getTo()
        Returns the end position of the plot band in axis units.
      • setTo

        public void setTo​(Number to)
        Sets the end position of the plot band in axis units.
      • getZIndex

        public Number getZIndex()
        Returns the z index of the plot band within the chart.

        Default: null

      • setZIndex

        public void setZIndex​(Number zIndex)
        Sets the z index of the plot band within the chart.
      • addEventListener

        public void addEventListener​(String evtnm,
                                     org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event> listener)
        Adds an event listener to this options.
        Specified by:
        addEventListener in interface ClientEventHandler
        Parameters:
        evtnm - what event to listen (never null), i.e. onClick, onMouseOver, and so on.
        Since:
        1.2.0
      • removeEventListener

        public boolean removeEventListener​(String evtnm,
                                           org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event> listener)
        Removes an event listener.
        Specified by:
        removeEventListener in interface ClientEventHandler
        Returns:
        whether the listener is removed; false if it was never added.
        Since:
        1.2.0