Class Layout.Layer

    • Field Detail

      • container

        final Element container
      • userObject

        java.lang.Object userObject
      • setLeft

        boolean setLeft
      • setRight

        boolean setRight
      • setTop

        boolean setTop
      • setBottom

        boolean setBottom
      • setWidth

        boolean setWidth
      • setHeight

        boolean setHeight
      • setTargetLeft

        boolean setTargetLeft
      • setTargetRight

        boolean setTargetRight
      • setTargetTop

        boolean setTargetTop
      • setTargetBottom

        boolean setTargetBottom
      • setTargetWidth

        boolean setTargetWidth
      • setTargetHeight

        boolean setTargetHeight
      • left

        double left
      • top

        double top
      • right

        double right
      • bottom

        double bottom
      • width

        double width
      • height

        double height
      • sourceLeft

        double sourceLeft
      • sourceTop

        double sourceTop
      • sourceRight

        double sourceRight
      • sourceBottom

        double sourceBottom
      • sourceWidth

        double sourceWidth
      • sourceHeight

        double sourceHeight
      • targetLeft

        double targetLeft
      • targetTop

        double targetTop
      • targetRight

        double targetRight
      • targetBottom

        double targetBottom
      • targetWidth

        double targetWidth
      • targetHeight

        double targetHeight
      • visible

        boolean visible
    • Constructor Detail

      • Layer

        Layer​(Element container,
              Element child,
              java.lang.Object userObject)
    • Method Detail

      • getContainerElement

        public Element getContainerElement()
        Gets the container element associated with this layer.

        This is the element that sits between the parent and child elements. It is normally necessary to operate on this element only when you need to modify CSS properties that are not directly modeled by the Layer class.

        Returns:
        the container element
      • getUserObject

        public java.lang.Object getUserObject()
        Gets the user-data associated with this layer.
        Returns:
        the layer's user-data object
      • setBottomHeight

        public void setBottomHeight​(double bottom,
                                    Style.Unit bottomUnit,
                                    double height,
                                    Style.Unit heightUnit)
        Sets the layer's bottom and height values.
        Parameters:
        bottom -
        bottomUnit -
        height -
        heightUnit -
      • setChildHorizontalPosition

        public void setChildHorizontalPosition​(Layout.Alignment position)
        Sets the child element's horizontal position within the layer.
        Parameters:
        position -
      • setChildVerticalPosition

        public void setChildVerticalPosition​(Layout.Alignment position)
        Sets the child element's vertical position within the layer.
        Parameters:
        position -
      • setLeftRight

        public void setLeftRight​(double left,
                                 Style.Unit leftUnit,
                                 double right,
                                 Style.Unit rightUnit)
        Sets the layer's left and right values.
        Parameters:
        left -
        leftUnit -
        right -
        rightUnit -
      • setLeftWidth

        public void setLeftWidth​(double left,
                                 Style.Unit leftUnit,
                                 double width,
                                 Style.Unit widthUnit)
        Sets the layer's left and width values.
        Parameters:
        left -
        leftUnit -
        width -
        widthUnit -
      • setRightWidth

        public void setRightWidth​(double right,
                                  Style.Unit rightUnit,
                                  double width,
                                  Style.Unit widthUnit)
        Sets the layer's right and width values.
        Parameters:
        right -
        rightUnit -
        width -
        widthUnit -
      • setTopBottom

        public void setTopBottom​(double top,
                                 Style.Unit topUnit,
                                 double bottom,
                                 Style.Unit bottomUnit)
        Sets the layer's top and bottom values.
        Parameters:
        top -
        topUnit -
        bottom -
        bottomUnit -
      • setTopHeight

        public void setTopHeight​(double top,
                                 Style.Unit topUnit,
                                 double height,
                                 Style.Unit heightUnit)
        Sets the layer's top and height values.
        Parameters:
        top -
        topUnit -
        height -
        heightUnit -
      • setVisible

        public void setVisible​(boolean visible)
        Sets the layer's visibility.
        Parameters:
        visible -