Class EmptyBorder


public class EmptyBorder extends UIBorder
A simple border that does not paint in the border area. This border can be used for adding fixed size padding or spacing between components.
  • Constructor Details

    • EmptyBorder

      public EmptyBorder()
      Create a new border. All sides are zero size.
    • EmptyBorder

      public EmptyBorder(int top, int left, int bottom, int right)
      Create a new border with the given edge sizes
      Parameters:
      top - the top
      left - the left
      bottom - the bottom
      right - the right
  • Method Details

    • draw

      public void draw(Renderer renderer, UIComponent comp)
      Description copied from class: UIBorder
      Draw this border. Override this method to do the actual work.
      Specified by:
      draw in class UIBorder
      Parameters:
      renderer - the renderer to use in drawing.
      comp - the UIComponent we are drawing the border for.