Package mdlaf.components.taskpane
Class MaterialTaskPaneUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.PanelUI
-
- org.jdesktop.swingx.plaf.TaskPaneUI
-
- org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
-
- mdlaf.components.taskpane.MaterialTaskPaneUI
-
public class MaterialTaskPaneUI extends org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMaterialTaskPaneUI.MaterialPaneBorderDefine the Main Panel how the component should be inside is panel
-
Field Summary
Fields Modifier and Type Field Description protected intarchprotected java.awt.Colorbackgroundprotected java.awt.ColorborderColorprotected javax.swing.Iconcollapsedprotected java.awt.ColorcontentBackgroundprotected booleanmouseHoverEnableprotected javax.swing.Iconuncollapsed
-
Constructor Summary
Constructors Constructor Description MaterialTaskPaneUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.border.BordercreateContentPaneBorder()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.BordercreatePaneBorder()static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)voidinstallUI(javax.swing.JComponent c)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)protected voiduninstallListeners()voiduninstallUI(javax.swing.JComponent c)voidupdate(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
-
-
-
-
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
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classorg.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classorg.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
updatein classjavax.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:
createContentPaneBorderin classorg.jdesktop.swingx.plaf.basic.BasicTaskPaneUI- Returns:
- border without space
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classorg.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
-
createPaneBorder
protected javax.swing.border.Border createPaneBorder()
- Overrides:
createPaneBorderin classorg.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.swing.plaf.ComponentUI
-
-