|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.plaf.basic.BasicTaskPaneUI.PaneBorder
protected class BasicTaskPaneUI.PaneBorder
The border of the taskpane group paints the "text", the "icon", the "expanded" status and the "special" type.
Field Summary | |
---|---|
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 Summary | |
---|---|
BasicTaskPaneUI.PaneBorder()
Creates new instance of individual pane border. |
Method Summary | |
---|---|
protected void |
configureLabel(JXTaskPane group)
Configures label for the group using its title, font, icon and orientation. |
Insets |
getBorderInsets(Component c)
Returns the insets of the border. |
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)
Paints the border for the specified component with the specified position and size. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Color borderColor
protected Color titleForeground
protected Color specialTitleBackground
protected Color specialTitleForeground
protected Color titleBackgroundGradientStart
protected Color titleBackgroundGradientEnd
protected Color titleOver
protected Color specialTitleOver
protected JLabel label
Constructor Detail |
---|
public BasicTaskPaneUI.PaneBorder()
Method Detail |
---|
public Insets getBorderInsets(Component c)
javax.swing.border.Border
getBorderInsets
in interface Border
c
- the component for which this border insets value appliespublic 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)
javax.swing.border.Border
paintBorder
in interface Border
c
- the component for which this border is being paintedg
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted borderprotected 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |