Class FlatMarginBorder

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.border.Border, javax.swing.plaf.UIResource
    Direct Known Subclasses:
    FlatMenuBarBorder, FlatMenuItemBorder, FlatToolBarBorder

    public class FlatMarginBorder
    extends javax.swing.plaf.basic.BasicBorders.MarginBorder
    Border that scales component margin.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int bottom  
      protected int left  
      protected int right  
      protected int top  
    • 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)  
      • Methods inherited from class javax.swing.border.AbstractBorder

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

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

      • left

        protected int left
      • right

        protected int right
      • top

        protected int top
      • bottom

        protected int bottom
    • Constructor Detail

      • FlatMarginBorder

        public FlatMarginBorder()
      • FlatMarginBorder

        public FlatMarginBorder​(java.awt.Insets insets)
    • Method Detail

      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c,
                                               java.awt.Insets insets)
        Overrides:
        getBorderInsets in class javax.swing.plaf.basic.BasicBorders.MarginBorder