Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua
Class QuaquaComboBoxVisualMargin

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

public class QuaquaComboBoxVisualMargin
extends VisualMarginBorder

QuaquaComboBoxVisualMargin.

Version:
$Id: QuaquaComboBoxVisualMargin.java 414 2011-07-29 20:55:05Z wrandelshofer $
Author:
Werner Randelshofer
See Also:
Serialized Form

Constructor Summary
QuaquaComboBoxVisualMargin()
          Creates a new instance.
QuaquaComboBoxVisualMargin(boolean ftop, boolean fleft, boolean fbottom, boolean fright)
           
QuaquaComboBoxVisualMargin(java.awt.Insets layoutMargin)
          Creates a new VisualMarginBorder.
QuaquaComboBoxVisualMargin(int top, int left, int bottom, int right)
          Creates a new VisualMarginBorder.
QuaquaComboBoxVisualMargin(int top, int left, int bottom, int right, boolean ftop, boolean fleft, boolean fbottom, boolean fright)
           
 
Method Summary
protected  java.awt.Insets getVisualMargin(java.awt.Component c, java.awt.Insets insets)
          Reinitializes the insets parameter with this Border's current Insets.
 
Methods inherited from class ch.randelshofer.quaqua.border.VisualMarginBorder
getBorderInsets, getBorderInsets, getVisualMargin, hasPressedCue, setFixed, setPropertyName
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque, 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
isBorderOpaque, paintBorder
 

Constructor Detail

QuaquaComboBoxVisualMargin

public QuaquaComboBoxVisualMargin()
Creates a new instance.


QuaquaComboBoxVisualMargin

public QuaquaComboBoxVisualMargin(int top,
                                  int left,
                                  int bottom,
                                  int right)
Creates a new VisualMarginBorder.

Parameters:
top - Defines the margin from the clip bounds of the component to its visual bounds.
left - Defines the margin from the clip bounds of the component to its visual bounds.
bottom - Defines the margin from the clip bounds of the component to its visual bounds.
right - Defines the margin from the clip bounds of the component to its visual bounds.

QuaquaComboBoxVisualMargin

public QuaquaComboBoxVisualMargin(int top,
                                  int left,
                                  int bottom,
                                  int right,
                                  boolean ftop,
                                  boolean fleft,
                                  boolean fbottom,
                                  boolean fright)

QuaquaComboBoxVisualMargin

public QuaquaComboBoxVisualMargin(boolean ftop,
                                  boolean fleft,
                                  boolean fbottom,
                                  boolean fright)

QuaquaComboBoxVisualMargin

public QuaquaComboBoxVisualMargin(java.awt.Insets layoutMargin)
Creates a new VisualMarginBorder.

Parameters:
layoutMargin - Defines the margin from the clip bounds of the component to its visual bounds. The margin has usually negative values!
Method Detail

getVisualMargin

protected java.awt.Insets getVisualMargin(java.awt.Component c,
                                          java.awt.Insets insets)
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 applies
insets - the object to be reinitialized
Returns:
the insets object

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