Package org.jdesktop.swingx.plaf.nimbus
Class NimbusTaskPaneUI.NimbusPaneBorder
- java.lang.Object
-
- org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI.PaneBorder
-
- org.jdesktop.swingx.plaf.nimbus.NimbusTaskPaneUI.NimbusPaneBorder
-
- All Implemented Interfaces:
javax.swing.border.Border
,javax.swing.plaf.UIResource
- Enclosing class:
- NimbusTaskPaneUI
class NimbusTaskPaneUI.NimbusPaneBorder extends BasicTaskPaneUI.PaneBorder
The border of the task pane group paints the "text", the "icon", the "expanded" status and the "special" type.
-
-
Field Summary
-
Fields inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI.PaneBorder
borderColor, label, specialTitleBackground, specialTitleForeground, specialTitleOver, titleBackgroundGradientEnd, titleBackgroundGradientStart, titleForeground, titleOver
-
-
Constructor Summary
Constructors Constructor Description NimbusPaneBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isMouseOverBorder()
Default implementation returns false.protected void
paintExpandedControls(JXTaskPane group, java.awt.Graphics g, int x, int y, int width, int height)
Paints expanded controls.protected void
paintTitle(JXTaskPane group, java.awt.Graphics g, java.awt.Color textColor, int x, int y, int width, int height)
Paints current group title.protected void
paintTitleBackground(JXTaskPane group, java.awt.Graphics g)
Paints background of the title.-
Methods inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI.PaneBorder
configureLabel, getBorderInsets, getPaintColor, getPreferredSize, isBorderOpaque, paintBorder, paintChevronControls, paintFocus, paintOvalAroundControls, paintRectAroundControls
-
-
-
-
Method Detail
-
paintTitleBackground
protected void paintTitleBackground(JXTaskPane group, java.awt.Graphics g)
Description copied from class:BasicTaskPaneUI.PaneBorder
Paints background of the title. This may differ based on properties of the group.- Overrides:
paintTitleBackground
in classBasicTaskPaneUI.PaneBorder
- Parameters:
group
- Selected group.g
- Target graphics.
-
paintExpandedControls
protected void paintExpandedControls(JXTaskPane group, java.awt.Graphics g, int x, int y, int width, int height)
Description copied from class:BasicTaskPaneUI.PaneBorder
Paints expanded controls. Default implementation does nothing.- Overrides:
paintExpandedControls
in classBasicTaskPaneUI.PaneBorder
- Parameters:
group
- Expanded group.g
- Target graphics.x
- X coordinate of the top left corner.y
- Y coordinate of the top left corner.width
- Width of the box.height
- Height of the box.
-
paintTitle
protected void paintTitle(JXTaskPane group, java.awt.Graphics g, java.awt.Color textColor, int x, int y, int width, int height)
Description copied from class:BasicTaskPaneUI.PaneBorder
Paints current group title.- Overrides:
paintTitle
in classBasicTaskPaneUI.PaneBorder
- Parameters:
group
- Selected group.g
- Target graphics.textColor
- Title color.x
- X coordinate of the top left corner.y
- Y coordinate of the top left corner.width
- Width of the box.height
- Height of the box.
-
isMouseOverBorder
protected boolean isMouseOverBorder()
Description copied from class:BasicTaskPaneUI.PaneBorder
Default implementation returns false.- Overrides:
isMouseOverBorder
in classBasicTaskPaneUI.PaneBorder
- Returns:
- true if this border wants to display things differently when the mouse is over it
-
-