Interface Element

    • Method Detail

      • hide

        Element hide()
        Set the element invisible on screen.
        Returns:
        This.
      • show

        Element show()
        Set the element visible on screen.
        Returns:
        This.
      • getLeft

        int getLeft()
        Returns:
        The element left position.
      • setLeft

        Element setLeft​(int left)
        Set the element left position.
        Parameters:
        left - New widget left position in pixels.
        Returns:
        This.
      • getTop

        int getTop()
        Returns:
        The element top position.
      • setTop

        Element setTop​(int top)
        Set the element top position.
        Parameters:
        top - New widget top position in pixels.
        Returns:
        This.
      • addToPosition

        void addToPosition​(int xValue,
                           int yValue)
      • addToLeft

        void addToLeft​(int value)
      • addToTop

        void addToTop​(int value)
        Move the element to the top or bottom.
        Parameters:
        value - Move the element to y pixel to the bottom, negative value will move to the top.
      • setPosition

        Element setPosition​(int left,
                            int top)
        Set the element position.
        Parameters:
        left - Element X position.
        top - Element Y position.
        Returns:
        This object for chaining.
      • getWidth

        int getWidth()
        Returns:
        The element width.
      • setWidth

        void setWidth​(int width)
        Set the element width.
        Parameters:
        width - New width.
      • getHeight

        int getHeight()
        Returns:
        The element height.
      • setHeight

        void setHeight​(int height)
        Set the element height.
        Parameters:
        height - New height.
      • getBottom

        int getBottom()
      • setSize

        void setSize​(be.yildizgames.module.coordinate.Size size)
      • getCoordinates

        be.yildizgames.module.coordinate.BaseCoordinate getCoordinates()
      • setCoordinates

        void setCoordinates​(be.yildizgames.module.coordinate.BaseCoordinate coordinates)
      • isVisible

        boolean isVisible()
      • setVisible

        Element setVisible​(boolean visible)
        Show or hide the element.
        Parameters:
        visible - true to show the element, false to hide it.
        Returns:
        This object for chaining.
      • setSize

        void setSize​(int newWidth,
                     int newHeight)
      • getRight

        int getRight()
      • setVirtualHeight

        void setVirtualHeight​(int height)
      • resetVirtualHeight

        void resetVirtualHeight()