ch.randelshofer.quaqua
Class QuaquaNativeTextFieldBorder
java.lang.Object
javax.swing.border.AbstractBorder
ch.randelshofer.quaqua.border.VisualMarginBorder
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
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 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 |
QuaquaNativeTextFieldBorder
public QuaquaNativeTextFieldBorder()
QuaquaNativeTextFieldBorder
public QuaquaNativeTextFieldBorder(java.awt.Insets imageInsets,
java.awt.Insets borderInsets,
boolean fill)
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 appliesinsets
- 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