swingx
Version 2005-08-19

org.jdesktop.swingx.plaf.basic
Class BasicTaskPaneUI.PaneBorder

java.lang.Object
  extended by org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI.PaneBorder
All Implemented Interfaces:
Border
Enclosing class:
BasicTaskPaneUI

protected class BasicTaskPaneUI.PaneBorder
extends Object
implements Border

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()
           
 
Method Summary
protected  void configureLabel(JXTaskPane group)
           
 Insets getBorderInsets(Component c)
           
protected  Color getPaintColor(JXTaskPane group)
           
 Dimension getPreferredSize(JXTaskPane group)
          Calculates the preferred border size, its size so all its content fits.
 boolean isBorderOpaque()
           
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)
           
protected  void paintExpandedControls(JXTaskPane group, Graphics g, int x, int y, int width, int height)
           
protected  void paintFocus(Graphics g, Color paintColor, int x, int y, int width, int height)
           
protected  void paintOvalAroundControls(JXTaskPane group, Graphics g, int x, int y, int width, int height)
           
protected  void paintRectAroundControls(JXTaskPane group, Graphics g, int x, int y, int width, int height, Color highColor, Color lowColor)
           
protected  void paintTitle(JXTaskPane group, Graphics g, Color textColor, int x, int y, int width, int height)
           
protected  void paintTitleBackground(JXTaskPane group, Graphics g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

borderColor

protected Color borderColor

titleForeground

protected Color titleForeground

specialTitleBackground

protected Color specialTitleBackground

specialTitleForeground

protected Color specialTitleForeground

titleBackgroundGradientStart

protected Color titleBackgroundGradientStart

titleBackgroundGradientEnd

protected Color titleBackgroundGradientEnd

titleOver

protected Color titleOver

specialTitleOver

protected Color specialTitleOver

label

protected JLabel label
Constructor Detail

BasicTaskPaneUI.PaneBorder

public BasicTaskPaneUI.PaneBorder()
Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border

getPreferredSize

public Dimension getPreferredSize(JXTaskPane group)
Calculates the preferred border size, its size so all its content fits.


paintTitleBackground

protected void paintTitleBackground(JXTaskPane group,
                                    Graphics g)

paintTitle

protected void paintTitle(JXTaskPane group,
                          Graphics g,
                          Color textColor,
                          int x,
                          int y,
                          int width,
                          int height)

configureLabel

protected void configureLabel(JXTaskPane group)

paintExpandedControls

protected void paintExpandedControls(JXTaskPane group,
                                     Graphics g,
                                     int x,
                                     int y,
                                     int width,
                                     int height)

getPaintColor

protected Color getPaintColor(JXTaskPane group)

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border

paintRectAroundControls

protected void paintRectAroundControls(JXTaskPane group,
                                       Graphics g,
                                       int x,
                                       int y,
                                       int width,
                                       int height,
                                       Color highColor,
                                       Color lowColor)

paintOvalAroundControls

protected void paintOvalAroundControls(JXTaskPane group,
                                       Graphics g,
                                       int x,
                                       int y,
                                       int width,
                                       int height)

paintChevronControls

protected void paintChevronControls(JXTaskPane group,
                                    Graphics g,
                                    int x,
                                    int y,
                                    int width,
                                    int height)

paintFocus

protected void paintFocus(Graphics g,
                          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

swingx
Version 2005-08-19