com.l2fprod.common.swing.plaf.basic
Class BasicTaskPaneGroupUI.PaneBorder
java.lang.Object
com.l2fprod.common.swing.plaf.basic.BasicTaskPaneGroupUI.PaneBorder
- All Implemented Interfaces:
- javax.swing.border.Border
- Enclosing class:
- BasicTaskPaneGroupUI
protected class BasicTaskPaneGroupUI.PaneBorder
- extends java.lang.Object
- implements javax.swing.border.Border
The border of the taskpane group paints the "text", the "icon", the
"expanded" status and the "special" type.
Method Summary |
protected void |
configureLabel(JTaskPaneGroup group)
|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
protected java.awt.Color |
getPaintColor(JTaskPaneGroup group)
|
java.awt.Dimension |
getPreferredSize(JTaskPaneGroup group)
Calculates the preferred border size, its size so all its content fits. |
boolean |
isBorderOpaque()
|
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(JTaskPaneGroup group,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
protected void |
paintExpandedControls(JTaskPaneGroup group,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
protected void |
paintFocus(java.awt.Graphics g,
java.awt.Color paintColor,
int x,
int y,
int width,
int height)
|
protected void |
paintOvalAroundControls(JTaskPaneGroup group,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
protected void |
paintRectAroundControls(JTaskPaneGroup group,
java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color highColor,
java.awt.Color lowColor)
|
protected void |
paintTitle(JTaskPaneGroup group,
java.awt.Graphics g,
java.awt.Color textColor,
int x,
int y,
int width,
int height)
|
protected void |
paintTitleBackground(JTaskPaneGroup group,
java.awt.Graphics g)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
borderColor
protected java.awt.Color borderColor
titleForeground
protected java.awt.Color titleForeground
specialTitleBackground
protected java.awt.Color specialTitleBackground
specialTitleForeground
protected java.awt.Color specialTitleForeground
titleBackgroundGradientStart
protected java.awt.Color titleBackgroundGradientStart
titleBackgroundGradientEnd
protected java.awt.Color titleBackgroundGradientEnd
titleOver
protected java.awt.Color titleOver
specialTitleOver
protected java.awt.Color specialTitleOver
label
protected javax.swing.JLabel label
BasicTaskPaneGroupUI.PaneBorder
public BasicTaskPaneGroupUI.PaneBorder()
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsets
in interface javax.swing.border.Border
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaque
in interface javax.swing.border.Border
getPreferredSize
public java.awt.Dimension getPreferredSize(JTaskPaneGroup group)
- Calculates the preferred border size, its size so all its content fits.
paintTitleBackground
protected void paintTitleBackground(JTaskPaneGroup group,
java.awt.Graphics g)
paintTitle
protected void paintTitle(JTaskPaneGroup group,
java.awt.Graphics g,
java.awt.Color textColor,
int x,
int y,
int width,
int height)
configureLabel
protected void configureLabel(JTaskPaneGroup group)
paintExpandedControls
protected void paintExpandedControls(JTaskPaneGroup group,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
getPaintColor
protected java.awt.Color getPaintColor(JTaskPaneGroup group)
paintBorder
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Specified by:
paintBorder
in interface javax.swing.border.Border
paintRectAroundControls
protected void paintRectAroundControls(JTaskPaneGroup group,
java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color highColor,
java.awt.Color lowColor)
paintOvalAroundControls
protected void paintOvalAroundControls(JTaskPaneGroup group,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintChevronControls
protected void paintChevronControls(JTaskPaneGroup group,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintFocus
protected void paintFocus(java.awt.Graphics g,
java.awt.Color paintColor,
int x,
int y,
int width,
int height)
isMouseOverBorder
protected boolean isMouseOverBorder()
- Default implementation returns false.
- Returns:
- true if this border wants to display things differently when the
mouse is over it