protected class BasicTaskPaneUI.PaneBorder extends Object implements Border, UIResource
Modifier and Type | Field and Description |
---|---|
protected Color |
borderColor |
protected JLabel |
label |
protected Color |
specialTitleBackground |
protected Color |
specialTitleForeground |
protected Color |
specialTitleOver |
protected Color |
titleBackgroundGradientEnd |
protected Color |
titleBackgroundGradientStart |
protected Color |
titleForeground |
protected Color |
titleOver |
Constructor and Description |
---|
PaneBorder()
Creates new instance of individual pane border.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureLabel(JXTaskPane group)
Configures label for the group using its title, font, icon and
orientation.
|
Insets |
getBorderInsets(Component c) |
protected Color |
getPaintColor(JXTaskPane group)
Gets current paint color.
|
Dimension |
getPreferredSize(JXTaskPane group)
Calculates the preferred border size, its size so all its content
fits.
|
boolean |
isBorderOpaque()
Overwritten to always return
true to speed up
painting. |
protected boolean |
isMouseOverBorder()
Default implementation returns false.
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
protected void |
paintChevronControls(JXTaskPane group,
Graphics g,
int x,
int y,
int width,
int height)
Paints controls for the group.
|
protected void |
paintExpandedControls(JXTaskPane group,
Graphics g,
int x,
int y,
int width,
int height)
Paints expanded controls.
|
protected void |
paintFocus(Graphics g,
Color paintColor,
int x,
int y,
int width,
int height)
Paints focused group.
|
protected void |
paintOvalAroundControls(JXTaskPane group,
Graphics g,
int x,
int y,
int width,
int height)
Paints oval 'border' area around the control itself.
|
protected void |
paintRectAroundControls(JXTaskPane group,
Graphics g,
int x,
int y,
int width,
int height,
Color highColor,
Color lowColor)
Paints oval 'border' area around the control itself.
|
protected void |
paintTitle(JXTaskPane group,
Graphics g,
Color textColor,
int x,
int y,
int width,
int height)
Paints current group title.
|
protected void |
paintTitleBackground(JXTaskPane group,
Graphics g)
Paints background of the title.
|
protected Color borderColor
protected Color titleForeground
protected Color specialTitleBackground
protected Color specialTitleForeground
protected Color titleBackgroundGradientStart
protected Color titleBackgroundGradientEnd
protected Color specialTitleOver
public PaneBorder()
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
public boolean isBorderOpaque()
true
to speed up
painting. Don't use transparent borders unless providing UI delegate
that provides proper return value when calling this method.isBorderOpaque
in interface Border
Border.isBorderOpaque()
public Dimension getPreferredSize(JXTaskPane group)
group
- Selected group.protected void paintTitleBackground(JXTaskPane group, Graphics g)
group
- Selected group.g
- Target graphics.protected void paintTitle(JXTaskPane group, Graphics g, Color textColor, int x, int y, int width, int height)
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.protected void configureLabel(JXTaskPane group)
group
- Selected group.protected void paintExpandedControls(JXTaskPane group, Graphics g, int x, int y, int width, int height)
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.protected Color getPaintColor(JXTaskPane group)
group
- Selected group.public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
protected void paintRectAroundControls(JXTaskPane group, Graphics g, int x, int y, int width, int height, Color highColor, Color lowColor)
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.protected void paintOvalAroundControls(JXTaskPane group, Graphics g, int x, int y, int width, int height)
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.protected void paintChevronControls(JXTaskPane group, Graphics g, int x, int y, int width, int height)
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.protected void paintFocus(Graphics g, Color paintColor, int x, int y, int width, int height)
g
- Target graphics.paintColor
- Focused group 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.protected boolean isMouseOverBorder()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses