Serializable, Border, UIResourcepublic class VisualMargin extends AbstractBorder implements UIResource
| Constructor | Description |
|---|---|
VisualMargin() |
Creates a new VisualMargin.
|
VisualMargin(boolean ftop,
boolean fleft,
boolean fbottom,
boolean fright) |
|
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) |
|
VisualMargin(Insets layoutMargin) |
Creates a new VisualMargin.
|
| Modifier and Type | Method | Description |
|---|---|---|
Insets |
getBorderInsets(Component c) |
|
Insets |
getBorderInsets(Component c,
Insets insets) |
Reinitializes the insets parameter with this Border's current Insets.
|
Insets |
getVisualMargin(Component c) |
|
protected Insets |
getVisualMargin(Component c,
Insets insets) |
Reinitializes the insets parameter with this Border's current Insets.
|
void |
setFixed(boolean top,
boolean left,
boolean bottom,
boolean right) |
|
void |
setPropertyName(String propertyName) |
The UIManager Property to be used for the default margin.
|
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque, paintBorderpublic 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(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(String propertyName)
public void setFixed(boolean top,
boolean left,
boolean bottom,
boolean right)
public Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderpublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets in class AbstractBorderc - the component for which this border insets value appliesinsets - the object to be reinitializedinsets object