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

      • getBorderColor

        public Color getBorderColor()
        Returns the border color

        Default: null

        Since:
        11.4.7.0
      • setBorderColor

        public void setBorderColor​(Color color)
        Sets the border color
        Since:
        11.4.7.0
      • setBorderColor

        public void setBorderColor​(String color)
        Sets the border color
        Since:
        11.4.7.0
      • setBorderColor

        public void setBorderColor​(LinearGradient color)
        Sets the border color
        Since:
        11.4.7.0
      • setBorderColor

        public void setBorderColor​(RadialGradient color)
        Sets the border color
        Since:
        11.4.7.0
      • getBorderRadius

        public Object getBorderRadius()
        Returns the border radius

        Default: 0

        Since:
        11.4.7.0
      • setBorderRadius

        public void setBorderRadius​(Number borderRadius)
        Sets the border radius.
        Since:
        11.4.7.0
      • setBorderRadius

        public void setBorderRadius​(String borderRadius)
        Sets the border radius.
        Since:
        11.4.7.0
      • getBorderWidth

        public Number getBorderWidth()
        Returns the border width.

        Default: 0.

        Since:
        11.4.7.0
      • setBorderWidth

        public void setBorderWidth​(Number borderWidth)
        Sets the border width.

        Default: 0.

        Since:
        11.4.7.0
      • getClassName

        public String getClassName()
        Returns class name for styling by CSS.

        Default: null

        Since:
        11.4.7.0
      • setClassName

        public void setClassName​(String className)
        Sets class name for styling by CSS.
        Since:
        11.4.7.0
      • 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