Class SplitPanel

All Implemented Interfaces:
Serializable

public class SplitPanel extends Panel
See Also:
  • Constructor Details

    • SplitPanel

      public SplitPanel(Orientation orientation)
      Default constructor. Used to create component instance without any parameters.

      Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor.

      Parameters:
      orientation - used to specify orientation of split panel. If orientation is VERTICAL then two components will be located vertically.
  • Method Details

    • setSize

      public void setSize(org.joml.Vector2f size)
      Description copied from class: Component
      Used to set size vector.
      Overrides:
      setSize in class Component
      Parameters:
      size - size vector.
    • setSize

      public void setSize(float width, float height)
      Description copied from class: Component
      Used to set size vector.
      Overrides:
      setSize in class Component
      Parameters:
      width - width to set.
      height - height to set.
    • resetStyle

      public void resetStyle()
    • getSeparatorThickness

      public float getSeparatorThickness()
    • setSeparatorThickness

      public void setSeparatorThickness(float separatorThickness)
    • getTopLeft

      public Component getTopLeft()
    • setTopLeft

      public void setTopLeft(Component topLeft)
    • getBottomRight

      public Component getBottomRight()
    • setBottomRight

      public void setBottomRight(Component bottomRight)
    • getRatio

      public float getRatio()
    • setRatio

      public void setRatio(float ratio)
    • getSeparator

      public Button getSeparator()
    • getOrientation

      public Orientation getOrientation()
    • setOrientation

      public void setOrientation(Orientation orientation)