contrib.ch.randelshofer.quaqua
public class VisualMargin extends javax.swing.border.AbstractBorder implements javax.swing.plaf.UIResource
Constructor and Description |
---|
VisualMargin()
Creates a new VisualMargin.
|
VisualMargin(boolean ftop,
boolean fleft,
boolean fbottom,
boolean fright) |
VisualMargin(java.awt.Insets layoutMargin)
Creates a new VisualMargin.
|
VisualMargin(int top,
int left,
int bottom,
int right)
Creates a new VisualMargin.
|
VisualMargin(int top,
int left,
int bottom,
int right,
boolean ftop,
boolean fleft,
boolean fbottom,
boolean fright) |
Modifier and Type | Method and Description |
---|---|
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.
|
java.awt.Insets |
getVisualMargin(java.awt.Component c) |
protected java.awt.Insets |
getVisualMargin(java.awt.Component c,
java.awt.Insets insets)
Reinitializes the insets parameter with this Border's current Insets.
|
void |
setFixed(boolean top,
boolean left,
boolean bottom,
boolean right) |
void |
setPropertyName(java.lang.String propertyName)
The UIManager Property to be used for the default margin.
|
public VisualMargin()
public VisualMargin(int top, int left, int bottom, int right)
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.public VisualMargin(int top, int left, int bottom, int right, boolean ftop, boolean fleft, boolean fbottom, boolean fright)
public VisualMargin(boolean ftop, boolean fleft, boolean fbottom, boolean fright)
public VisualMargin(java.awt.Insets layoutMargin)
layoutMargin
- Defines the margin from the clip bounds of the
component to its visual bounds. The margin has usually negative values!public void setPropertyName(java.lang.String propertyName)
public void setFixed(boolean top, boolean left, boolean bottom, boolean right)
public java.awt.Insets getVisualMargin(java.awt.Component c)
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
getBorderInsets
in class javax.swing.border.AbstractBorder
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
getBorderInsets
in class javax.swing.border.AbstractBorder
c
- the component for which this border insets value appliesinsets
- the object to be reinitializedinsets
objectprotected java.awt.Insets getVisualMargin(java.awt.Component c, java.awt.Insets insets)
c
- the component for which this border insets value appliesinsets
- the object to be reinitializedinsets
object