Class KopiTitledBorder

All Implemented Interfaces:
Serializable, Border

public class KopiTitledBorder extends TitledBorder
See Also:
  • Field Details

    • BRD_EMPTY

      public static final Border BRD_EMPTY
    • BRD_RAISED

      public static final Border BRD_RAISED
    • BRD_ETCHED

      public static final Border BRD_ETCHED
    • BRD_LINE

      public static final Border BRD_LINE
    • BRD_LOWERED

      public static final Border BRD_LOWERED
  • Constructor Details

    • KopiTitledBorder

      public KopiTitledBorder(Border border, String title)
      Creates a KopiTitledBorder instance.
      Parameters:
      title - the title the border should display
  • Method Details

    • paintBorder

      public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
      Paints the border for the specified component with the specified position and size.
      Specified by:
      paintBorder in interface Border
      Overrides:
      paintBorder in class TitledBorder
      Parameters:
      c - the component for which this border is being painted
      g - the paint graphics
      x - the x position of the painted border
      y - the y position of the painted border
      width - the width of the painted border
      height - the height of the painted border
    • getBorderInsets

      public Insets getBorderInsets(Component c, Insets insets)
      Reinitialize the insets parameter with this Border's current Insets.
      Overrides:
      getBorderInsets in class TitledBorder
      Parameters:
      c - the component for which this border insets value applies
      insets - the object to be reinitialized