Interface RElement

All Superinterfaces:
BoundableRenderable, RCollection, Renderable, UINode
All Known Implementing Classes:
BaseElementRenderable, RBlock, RImgControl, RInlineBlock, RTable, RTableCell, RUIControl

public interface RElement extends RCollection, UINode
A renderer node for elements such as blocks, lists, tables, inputs, images, etc.
  • Method Details

    • getCollapsibleMarginBottom

      int getCollapsibleMarginBottom()

      getCollapsibleMarginBottom.

      Returns:
      a Integer object.
    • getCollapsibleMarginTop

      int getCollapsibleMarginTop()

      getCollapsibleMarginTop.

      Returns:
      a Integer object.
    • getMarginBottom

      int getMarginBottom()

      getMarginBottom.

      Returns:
      a Integer object.
    • getMarginLeft

      int getMarginLeft()

      getMarginLeft.

      Returns:
      a Integer object.
    • getMarginRight

      int getMarginRight()

      getMarginRight.

      Returns:
      a Integer object.
    • getMarginTop

      int getMarginTop()

      getMarginTop.

      Returns:
      a Integer object.
    • getVAlign

      default int getVAlign()
      Vertical alignment for elements rendered in a line. Returns one of the constants defined in this class.
      Returns:
      a Integer object.
    • layout

      void layout(int availWidth, int availHeight, boolean sizeOnly)
      Lays out the subtree below the RElement. The RElement is expected to set its own dimensions, but not its origin.
      Parameters:
      availWidth - The available width from the parent's canvas.
      availHeight - The available height from the parent's canvas.
      sizeOnly - Whether the layout is for sizing determination only.
    • setupRelativePosition

      void setupRelativePosition(RenderableContainer container)

      setupRelativePosition.

      Parameters:
      container - a RenderableContainer object.