Class BorderPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class BorderPane extends JComponent
A panel that has a main component and can have helper components.
See Also:
  • Constructor Details

    • BorderPane

      public BorderPane()
      Creates a new BorderPane.
  • Method Details

    • getMain

      public JComponent getMain()
      Returns the main component.
    • setMain

      public void setMain(JComponent aComponent)
      Sets a new component.
    • getBottom

      public JComponent getBottom()
      Returns the bottom component.
    • setBottom

      public void setBottom(JComponent aComponent, int aMinHeight)
      Sets a new component.
    • getBottomHeightRatio

      public float getBottomHeightRatio()
      Returns the bottom height ratio.
    • setBottomHeightRatio

      public void setBottomHeightRatio(float aRatio)
      Sets the bottom height ratio.
    • getBottomHeight

      public int getBottomHeight()
      Returns the bottom's height.
    • getBottomHeightFinal

      public int getBottomHeightFinal()
      Returns the bottom target height.
    • getBottomAmount

      public float getBottomAmount()
      Returns the bottom amount.
    • setBottomAmount

      public void setBottomAmount(float anAmount)
      Sets the bottom amount.
    • processMouseEvent

      protected void processMouseEvent(MouseEvent e)
      Override to handle divider drags.
      Overrides:
      processMouseEvent in class JComponent
    • processMouseMotionEvent

      protected void processMouseMotionEvent(MouseEvent e)
      Override to handle divider drags.
      Overrides:
      processMouseMotionEvent in class JComponent
    • getBottomDividerRect

      public Rectangle getBottomDividerRect()
      Returns the bottom divider rect.