Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua
Class QuaquaButtonMarginBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by ch.randelshofer.quaqua.QuaquaButtonMarginBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public class QuaquaButtonMarginBorder
extends javax.swing.border.AbstractBorder

QuaquaButtonMarginBorder is used to honour the margins between button text and button border.

Version:
1.0 31 March 2005 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Constructor Summary
QuaquaButtonMarginBorder()
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
          Reinitializes the insets parameter with this Border's current Insets.
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle, isBorderOpaque, paintBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaButtonMarginBorder

public QuaquaButtonMarginBorder()
Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)
Reinitializes the insets parameter with this Border's current Insets.

Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder
Parameters:
c - the component for which this border insets value applies
insets - the object to be reinitialized
Returns:
the insets object

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