ch.randelshofer.quaqua
Class QuaquaNativeButtonBorder
java.lang.Object
javax.swing.border.AbstractBorder
ch.randelshofer.quaqua.border.VisualMarginBorder
ch.randelshofer.quaqua.QuaquaNativeButtonBorder
- All Implemented Interfaces:
- BackgroundBorder, PressedCueBorder, VisualMargin, java.io.Serializable, javax.swing.border.Border, javax.swing.plaf.UIResource
- Direct Known Subclasses:
- QuaquaNativeButtonBorder.UIResource
public class QuaquaNativeButtonBorder
- extends VisualMarginBorder
- implements javax.swing.border.Border, PressedCueBorder, BackgroundBorder
Native Aqua border for an AbstractButton
.
- 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. |
protected java.awt.Insets |
getVisualMargin(java.awt.Component c,
java.awt.Insets insets)
Reinitializes the insets parameter with this Border's current Insets. |
boolean |
hasPressedCue(javax.swing.JComponent c)
Returns true, if this border has a visual cue for the pressed
state of the button. |
boolean |
isBorderOpaque()
|
Methods inherited from class javax.swing.border.AbstractBorder |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, paintBorder |
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, paintBorder |
QuaquaNativeButtonBorder
public QuaquaNativeButtonBorder()
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
hasPressedCue
public boolean hasPressedCue(javax.swing.JComponent c)
- Description copied from interface:
PressedCueBorder
- Returns true, if this border has a visual cue for the pressed
state of the button.
If the border has no visual cue, then the ButtonUI has to provide
it by some other means.
- Specified by:
hasPressedCue
in interface PressedCueBorder
- Overrides:
hasPressedCue
in class VisualMarginBorder
getVisualMargin
protected java.awt.Insets getVisualMargin(java.awt.Component c,
java.awt.Insets insets)
- Description copied from class:
VisualMarginBorder
- Reinitializes the insets parameter with this Border's current Insets.
- Overrides:
getVisualMargin
in class VisualMarginBorder
- Parameters:
c
- the component for which this border insets value appliesinsets
- the object to be reinitialized
- Returns:
- the
insets
object
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