|
||||||||||
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 java.awt.Color |
borderColor
|
protected javax.swing.JLabel |
label
|
protected java.awt.Color |
specialTitleBackground
|
protected java.awt.Color |
specialTitleForeground
|
protected java.awt.Color |
specialTitleOver
|
protected java.awt.Color |
titleBackgroundGradientEnd
|
protected java.awt.Color |
titleBackgroundGradientStart
|
protected java.awt.Color |
titleForeground
|
protected java.awt.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. |
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
protected java.awt.Color |
getPaintColor(JXTaskPane group)
Gets current paint color. |
java.awt.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(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
protected void |
paintChevronControls(JXTaskPane group,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints controls for the group. |
protected void |
paintExpandedControls(JXTaskPane group,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints expanded controls. |
protected void |
paintFocus(java.awt.Graphics g,
java.awt.Color paintColor,
int x,
int y,
int width,
int height)
Paints focused group. |
protected void |
paintOvalAroundControls(JXTaskPane group,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints oval 'border' area around the control itself. |
protected void |
paintRectAroundControls(JXTaskPane group,
java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color highColor,
java.awt.Color lowColor)
Paints oval 'border' area around the control itself. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.Color borderColor
protected java.awt.Color titleForeground
protected java.awt.Color specialTitleBackground
protected java.awt.Color specialTitleForeground
protected java.awt.Color titleBackgroundGradientStart
protected java.awt.Color titleBackgroundGradientEnd
protected java.awt.Color titleOver
protected java.awt.Color specialTitleOver
protected javax.swing.JLabel label
Constructor Detail |
---|
public BasicTaskPaneUI.PaneBorder()
Method Detail |
---|
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.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 javax.swing.border.Border
Border.isBorderOpaque()
public java.awt.Dimension getPreferredSize(JXTaskPane group)
group
- Selected group.protected void paintTitleBackground(JXTaskPane group, java.awt.Graphics g)
group
- Selected group.g
- Target graphics.protected void paintTitle(JXTaskPane group, java.awt.Graphics g, java.awt.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, java.awt.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 java.awt.Color getPaintColor(JXTaskPane group)
group
- Selected group.
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
protected void paintRectAroundControls(JXTaskPane group, java.awt.Graphics g, int x, int y, int width, int height, java.awt.Color highColor, java.awt.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, java.awt.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, java.awt.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(java.awt.Graphics g, java.awt.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 |