Class MigPane.FXContainerWrapper

java.lang.Object
org.tbee.javafx.scene.layout.MigPane.FXComponentWrapper
org.tbee.javafx.scene.layout.MigPane.FXContainerWrapper
All Implemented Interfaces:
ComponentWrapper, ContainerWrapper
Enclosing class:
MigPane

class MigPane.FXContainerWrapper extends MigPane.FXComponentWrapper implements ContainerWrapper
  • Constructor Details

    • FXContainerWrapper

      public FXContainerWrapper(javafx.scene.Parent node)
  • Method Details

    • getComponents

      public MigPane.FXComponentWrapper[] getComponents()
      Description copied from interface: ContainerWrapper
      Returns the components of the container that wrapper is wrapping.
      Specified by:
      getComponents in interface ContainerWrapper
      Returns:
      The components of the container that wrapper is wrapping. Never null.
    • getComponentCount

      public int getComponentCount()
      Description copied from interface: ContainerWrapper
      Returns the number of components that this parent has.
      Specified by:
      getComponentCount in interface ContainerWrapper
      Returns:
      The number of components that this parent has.
    • getLayout

      public Object getLayout()
      Description copied from interface: ContainerWrapper
      Returns the LayoutHandler (in Swing terms) that is handling the layout of this container. If there exist no such class the method should return the same as ComponentWrapper.getComponent(), which is the container itself.
      Specified by:
      getLayout in interface ContainerWrapper
      Returns:
      The layout handler instance. Never null.
    • isLeftToRight

      public boolean isLeftToRight()
      Description copied from interface: ContainerWrapper
      Returns if this container is using left-to-right component ordering.
      Specified by:
      isLeftToRight in interface ContainerWrapper
      Returns:
      If this container is using left-to-right component ordering.
    • paintDebugCell

      public void paintDebugCell(int x, int y, int w, int h)
      Description copied from interface: ContainerWrapper
      Paints a cell to indicate where it is.
      Specified by:
      paintDebugCell in interface ContainerWrapper
      Parameters:
      x - The x coordinate to start the drawing.
      y - The x coordinate to start the drawing.
      w - The width to draw/fill
      h - The height to draw/fill
    • paintDebugOutline

      public void paintDebugOutline(boolean useVisualPadding)
      Description copied from interface: ComponentWrapper
      Paints component outline to indicate where it is.
      Specified by:
      paintDebugOutline in interface ComponentWrapper
      Overrides:
      paintDebugOutline in class MigPane.FXComponentWrapper
      Parameters:
      useVisualPadding - If the visual padding should be shown in the debug drawing.