Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua.util
Class GroupBox

java.lang.Object
  extended by ch.randelshofer.quaqua.util.GroupBox
All Implemented Interfaces:
BackgroundBorder, javax.swing.border.Border

public class GroupBox
extends java.lang.Object
implements BackgroundBorder

GroupBox draws a Aqua-style group box similar to a native Cocoa NSBox. XXX - This class should go away. We can easily get the same functionality by instanciating one of the existing Quaqua border classes.

Version:
1.1.2 2008-04-24 Don't cache the rendered border.
1.1.1 2007-01-04 Render an EtchedBorder when the component does not have an UI.
1.1 2005-10-02 Increased border insets.
1.0 September 25, 2005 Created.
Author:
Werner Randelshofer

Constructor Summary
GroupBox()
           
 
Method Summary
 javax.swing.border.Border getBackgroundBorder()
          Returns the border that needs to be drawn onto the background.
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupBox

public GroupBox()
Method Detail

getBackgroundBorder

public javax.swing.border.Border getBackgroundBorder()
Description copied from interface: BackgroundBorder
Returns the border that needs to be drawn onto the background.

Specified by:
getBackgroundBorder in interface BackgroundBorder

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

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

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.