Class BaseXBack

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
BaseXList, BaseXPanel, BaseXSerial, BaseXSplit, DialogOptions, SearchBar, SearchEditor, ViewContainer

public class BaseXBack extends JPanel
Panel background, extending the JPanel.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
See Also:
  • Field Details

    • SEPARATOR_SIZE

      public static final int SEPARATOR_SIZE
      Size of visual separators.
      See Also:
  • Constructor Details

    • BaseXBack

      public BaseXBack()
      Default constructor.
    • BaseXBack

      public BaseXBack(boolean opaque)
      Constructor, specifying the opaque flag.
      Parameters:
      opaque - opaque flag
    • BaseXBack

      public BaseXBack(LayoutManager lm)
      Constructor, specifying a layout manager.
      Parameters:
      lm - layout manager
  • Method Details

    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • border

      public final BaseXBack border(int t, int l, int b, int r)
      Sets an empty border with the specified margins.
      Parameters:
      t - top distance
      l - left distance
      b - bottom distance
      r - right distance
      Returns:
      self reference
    • border

      public final BaseXBack border(int m)
      Sets an empty border with the specified margin.
      Parameters:
      m - margin
      Returns:
      self reference
    • layout

      public final BaseXBack layout(LayoutManager lm)
      Sets the layout manager for this container.
      Parameters:
      lm - layout manager
      Returns:
      self reference