Package org.zkoss.zul

Class Area

    • Constructor Detail

      • Area

        public Area()
      • Area

        public Area​(java.lang.String coords)
    • Method Detail

      • getShape

        public java.lang.String getShape()
        Returns the shape of this area.

        Default: null (means rectangle).

      • setShape

        public void setShape​(java.lang.String shape)
                      throws WrongValueException
        Sets the shape of this area.
        Throws:
        WrongValueException - if shape is not one of null, "rect", "rectangle", "circle", "circ", "polygon", and "poly".
      • getTabindexInteger

        public java.lang.Integer getTabindexInteger()
        Returns null if not set.
        Returns:
        the tab order of this component
        Since:
        8.0.2
      • setTabindex

        public void setTabindex​(java.lang.Integer tabindex)
        Sets the tab order of this component. Removes the tabindex attribute if it's set to null.
        Parameters:
        tabindex -
      • getCoords

        public java.lang.String getCoords()
        Returns the coordination of this area.
      • setCoords

        public void setCoords​(java.lang.String coords)
        Sets the coords of this area. Its content depends on getShape():
        circle
        coords="x,y,r"
        polygon
        coords="x1,y1,x2,y2,x3,y3..."
        The polygon is automatically closed, so it is not necessary to repeat the first coordination.
        rectangle
        coords="x1,y1,x2,y2"

        Note: (0, 0) is the upper-left corner.

      • getTooltiptext

        public java.lang.String getTooltiptext()
        Returns the text as the tooltip.

        Default: null.

      • setTooltiptext

        public void setTooltiptext​(java.lang.String tooltiptext)
        Sets the text as the tooltip.