Quaqua 7.4.2 2011-07-05

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:
$Id: GroupBox.java 363 2010-11-21 17:41:04Z wrandelshofer $
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.