Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua
Class QuaquaNativeTextFieldBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by ch.randelshofer.quaqua.border.VisualMarginBorder
          extended by ch.randelshofer.quaqua.QuaquaNativeTextFieldBorder
All Implemented Interfaces:
BackgroundBorder, PressedCueBorder, VisualMargin, java.io.Serializable, javax.swing.border.Border, javax.swing.plaf.UIResource
Direct Known Subclasses:
QuaquaNativeTextFieldBorder.UIResource

public class QuaquaNativeTextFieldBorder
extends VisualMarginBorder
implements javax.swing.border.Border, BackgroundBorder

Native Aqua border for text components.

Version:
$Id$
Author:
Werner Randelshofer
See Also:
Serialized Form

Nested Class Summary
static class QuaquaNativeTextFieldBorder.UIResource
           
 
Constructor Summary
QuaquaNativeTextFieldBorder()
           
QuaquaNativeTextFieldBorder(java.awt.Insets imageInsets, java.awt.Insets borderInsets, boolean fill)
           
 
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, java.awt.Insets insets)
          Reinitializes the insets parameter with this Border's current Insets.
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class ch.randelshofer.quaqua.border.VisualMarginBorder
getBorderInsets, getVisualMargin, getVisualMargin, hasPressedCue, setFixed, setPropertyName
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.border.Border
getBorderInsets
 

Constructor Detail

QuaquaNativeTextFieldBorder

public QuaquaNativeTextFieldBorder()

QuaquaNativeTextFieldBorder

public QuaquaNativeTextFieldBorder(java.awt.Insets imageInsets,
                                   java.awt.Insets borderInsets,
                                   boolean fill)
Method Detail

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
Overrides:
paintBorder in class javax.swing.border.AbstractBorder

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,
                                       java.awt.Insets insets)
Description copied from class: VisualMarginBorder
Reinitializes the insets parameter with this Border's current Insets.

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

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border
Overrides:
isBorderOpaque in class javax.swing.border.AbstractBorder

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