Class FlatToolBarBorder

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

    public class FlatToolBarBorder
    extends FlatMarginBorder
    Border for JToolBar.
    See Also:
    Serialized Form
    UiDefault:
    ToolBar.borderMargins Insets, ToolBar.gripColor Color
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.awt.Color gripColor  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.awt.Rectangle calculateGripBounds​(java.awt.Component c, int x, int y, int width, int height)  
      java.awt.Insets getBorderInsets​(java.awt.Component c, java.awt.Insets insets)  
      void paintBorder​(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)  
      protected void paintGrip​(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)  
      • 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

      • gripColor

        protected final java.awt.Color gripColor
    • Constructor Detail

      • FlatToolBarBorder

        public FlatToolBarBorder()
    • Method Detail

      • paintBorder

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

        protected void paintGrip​(java.awt.Component c,
                                 java.awt.Graphics g,
                                 int x,
                                 int y,
                                 int width,
                                 int height)
      • calculateGripBounds

        protected java.awt.Rectangle calculateGripBounds​(java.awt.Component c,
                                                         int x,
                                                         int y,
                                                         int width,
                                                         int height)
      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c,
                                               java.awt.Insets insets)
        Overrides:
        getBorderInsets in class FlatMarginBorder