Class PlotLine

    • Constructor Detail

      • PlotLine

        public PlotLine()
    • Method Detail

      • getColor

        public Color getColor()
        Returns the color of the line.

        Default: null.

      • setColor

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

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

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

        public void setColor​(RadialGradient color)
        Sets the color of the plot line.
      • getDashStyle

        public String getDashStyle()
        Returns the dashing or dot style for the plot line. For possible values see this overview.

        Default: "Solid".

      • setDashStyle

        public void setDashStyle​(String dashStyle)
        Sets the dashing or dot style for the plot line. For possible values see this overview.
      • getLabel

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

        Default: an instance of PlotLabel.

      • setLabel

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

        public Number getValue()
        Returns the position of the line in axis units.

        Default: null.

      • setValue

        public void setValue​(Number value)
        Sets the position of the line in axis units.
      • getWidth

        public Number getWidth()
        Returns the width or thickness of the plot line.

        Default: null.

      • setWidth

        public void setWidth​(Number width)
        Sets the width or thickness of the plot line.
      • getZIndex

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

        Default: null.

      • setZIndex

        public void setZIndex​(Number zIndex)
        Sets the z index of the plot line 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