Class KopiTitledBorder

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.border.Border

    public class KopiTitledBorder
    extends javax.swing.border.TitledBorder
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javax.swing.border.Border BRD_EMPTY  
      static javax.swing.border.Border BRD_ETCHED  
      static javax.swing.border.Border BRD_LINE  
      static javax.swing.border.Border BRD_LOWERED  
      static javax.swing.border.Border BRD_RAISED  
      • Fields inherited from class javax.swing.border.TitledBorder

        ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING
    • Constructor Summary

      Constructors 
      Constructor Description
      KopiTitledBorder​(javax.swing.border.Border border, java.lang.String title)
      Creates a KopiTitledBorder instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Insets getBorderInsets​(java.awt.Component c, java.awt.Insets insets)
      Reinitialize the insets parameter with this Border's current Insets.
      void paintBorder​(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
      Paints the border for the specified component with the specified position and size.
      • Methods inherited from class javax.swing.border.TitledBorder

        getBaseline, getBaselineResizeBehavior, getBorder, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
      • Methods inherited from class javax.swing.border.AbstractBorder

        getBorderInsets, getInteriorRectangle, getInteriorRectangle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BRD_EMPTY

        public static final javax.swing.border.Border BRD_EMPTY
      • BRD_RAISED

        public static final javax.swing.border.Border BRD_RAISED
      • BRD_ETCHED

        public static final javax.swing.border.Border BRD_ETCHED
      • BRD_LINE

        public static final javax.swing.border.Border BRD_LINE
      • BRD_LOWERED

        public static final javax.swing.border.Border BRD_LOWERED
    • Constructor Detail

      • KopiTitledBorder

        public KopiTitledBorder​(javax.swing.border.Border border,
                                java.lang.String title)
        Creates a KopiTitledBorder instance.
        Parameters:
        title - the title the border should display
    • Method Detail

      • paintBorder

        public void paintBorder​(java.awt.Component c,
                                java.awt.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 javax.swing.border.Border
        Overrides:
        paintBorder in class javax.swing.border.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 java.awt.Insets getBorderInsets​(java.awt.Component c,
                                               java.awt.Insets insets)
        Reinitialize the insets parameter with this Border's current Insets.
        Overrides:
        getBorderInsets in class javax.swing.border.TitledBorder
        Parameters:
        c - the component for which this border insets value applies
        insets - the object to be reinitialized