Class MaterialTaskPaneUI


  • public class MaterialTaskPaneUI
    extends org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  MaterialTaskPaneUI.MaterialPaneBorder
      Define the Main Panel how the component should be inside is panel
      • Nested classes/interfaces inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI

        org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI.ChevronIcon, org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI.ContentPaneBorder, org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI.PaneBorder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int arch  
      protected java.awt.Color background  
      protected java.awt.Color borderColor  
      protected javax.swing.Icon collapsed  
      protected java.awt.Color contentBackground  
      protected boolean mouseHoverEnable  
      protected javax.swing.Icon uncollapsed  
      • Fields inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI

        group, mouseListener, mouseOver, propertyListener, roundHeight, titleHeight
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.border.Border createContentPaneBorder()
      This method is used to paint the content panel without padding - UIManager.getBorder("TaskPane.border"); should be a border empty - new ContentPaneBorder(borderColor); personal implementation inside this class - the borderColor propriety should be call inside this method because I have an color wrong is call the same code inside the installUI.
      protected javax.swing.border.Border createPaneBorder()  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      void installUI​(javax.swing.JComponent c)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      protected void uninstallListeners()  
      void uninstallUI​(javax.swing.JComponent c)  
      void update​(java.awt.Graphics g, javax.swing.JComponent c)  
      • Methods inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI

        configure, createAction, createMouseInputListener, createPropertyListener, ensureVisible, getPreferredSize, getRoundHeight, getTitleHeight, installDefaults, installKeyboardActions, installListeners, isInBorder
      • Methods inherited from class javax.swing.plaf.ComponentUI

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

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

      • contentBackground

        protected java.awt.Color contentBackground
      • background

        protected java.awt.Color background
      • borderColor

        protected java.awt.Color borderColor
      • uncollapsed

        protected javax.swing.Icon uncollapsed
      • collapsed

        protected javax.swing.Icon collapsed
      • mouseHoverEnable

        protected boolean mouseHoverEnable
      • arch

        protected int arch
    • Constructor Detail

      • MaterialTaskPaneUI

        public MaterialTaskPaneUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • installUI

        public void installUI​(javax.swing.JComponent c)
        Overrides:
        installUI in class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
      • update

        public void update​(java.awt.Graphics g,
                           javax.swing.JComponent c)
        Overrides:
        update in class javax.swing.plaf.ComponentUI
      • createContentPaneBorder

        protected javax.swing.border.Border createContentPaneBorder()
        This method is used to paint the content panel without padding - UIManager.getBorder("TaskPane.border"); should be a border empty - new ContentPaneBorder(borderColor); personal implementation inside this class - the borderColor propriety should be call inside this method because I have an color wrong is call the same code inside the installUI.

        not call super because there is a problem with the border configuration, the border don't have the UIManager but is created an static border with space = 10 in all direction

        Overrides:
        createContentPaneBorder in class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
        Returns:
        border without space
      • uninstallListeners

        protected void uninstallListeners()
        Overrides:
        uninstallListeners in class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
      • createPaneBorder

        protected javax.swing.border.Border createPaneBorder()
        Overrides:
        createPaneBorder in class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
      • paint

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