Class ExtBasicPopupMenuSeparatorUI


  • public final class ExtBasicPopupMenuSeparatorUI
    extends javax.swing.plaf.basic.BasicPopupMenuSeparatorUI
    Renders the separator in popup and pull-down menus. Unlike its superclass we use a setting for the insets and it uses a shared UI delegate.
    Version:
    $Revision: 1.8 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.Insets insets  
      private static javax.swing.plaf.ComponentUI popupMenuSeparatorUI
      Shared UI object.
      private static int SEPARATOR_HEIGHT  
      • Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI

        highlight, shadow
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent b)  
      java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)  
      protected void installDefaults​(javax.swing.JSeparator s)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicSeparatorUI

        getMaximumSize, getMinimumSize, installListeners, installUI, uninstallDefaults, uninstallListeners, uninstallUI
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
      • Methods inherited from class java.lang.Object

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

      • insets

        private java.awt.Insets insets
      • popupMenuSeparatorUI

        private static javax.swing.plaf.ComponentUI popupMenuSeparatorUI
        Shared UI object.
    • Constructor Detail

      • ExtBasicPopupMenuSeparatorUI

        public ExtBasicPopupMenuSeparatorUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent b)
      • installDefaults

        protected void installDefaults​(javax.swing.JSeparator s)
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicSeparatorUI
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.basic.BasicPopupMenuSeparatorUI
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.basic.BasicPopupMenuSeparatorUI