Class PlasticBorders.InternalFrameBorder

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.border.Border, javax.swing.plaf.UIResource
    Enclosing class:
    PlasticBorders

    private static final class PlasticBorders.InternalFrameBorder
    extends javax.swing.border.AbstractBorder
    implements javax.swing.plaf.UIResource
    A border used for JInternalFrames.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.awt.Insets MAXIMIZED_INSETS  
      private static java.awt.Insets NORMAL_INSETS  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private InternalFrameBorder()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Insets getBorderInsets​(java.awt.Component c)  
      void paintBorder​(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)  
      private static void paintMaximizedBorder​(java.awt.Graphics g, int x, int y, int w, int h)  
      • Methods inherited from class javax.swing.border.AbstractBorder

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

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

      • NORMAL_INSETS

        private static final java.awt.Insets NORMAL_INSETS
      • MAXIMIZED_INSETS

        private static final java.awt.Insets MAXIMIZED_INSETS
    • Constructor Detail

      • InternalFrameBorder

        private InternalFrameBorder()
    • Method Detail

      • paintBorder

        public void paintBorder​(java.awt.Component c,
                                java.awt.Graphics g,
                                int x,
                                int y,
                                int w,
                                int h)
        Specified by:
        paintBorder in interface javax.swing.border.Border
        Overrides:
        paintBorder in class javax.swing.border.AbstractBorder
      • paintMaximizedBorder

        private static void paintMaximizedBorder​(java.awt.Graphics g,
                                                 int x,
                                                 int y,
                                                 int w,
                                                 int h)
      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c)
        Specified by:
        getBorderInsets in interface javax.swing.border.Border
        Overrides:
        getBorderInsets in class javax.swing.border.AbstractBorder