Package org.eclipse.draw2d
Class MarginBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.MarginBorder
- All Implemented Interfaces:
Border
- Direct Known Subclasses:
SeparatorBorder
A border that provides blank padding.
-
Field Summary
FieldsFields inherited from class org.eclipse.draw2d.AbstractBorder
tempRect
-
Constructor Summary
ConstructorsConstructorDescriptionMarginBorder
(int allsides) Constructs a MarginBorder with equal padding on all sides.MarginBorder
(int t, int l, int b, int r) Constructs a MarginBorder with padding specified by the passed values.MarginBorder
(Insets insets) Constructs a MarginBorder with dimensions specified by insets. -
Method Summary
Methods inherited from class org.eclipse.draw2d.AbstractBorder
getPaintRectangle, getPreferredSize, isOpaque
-
Field Details
-
insets
This border's insets.
-
-
Constructor Details
-
MarginBorder
Constructs a MarginBorder with dimensions specified by insets.- Parameters:
insets
- The Insets for the border- Since:
- 2.0
-
MarginBorder
public MarginBorder(int t, int l, int b, int r) Constructs a MarginBorder with padding specified by the passed values.- Parameters:
t
- Top paddingl
- Left paddingb
- Bottom paddingr
- Right padding- Since:
- 2.0
-
MarginBorder
public MarginBorder(int allsides) Constructs a MarginBorder with equal padding on all sides.- Parameters:
allsides
- Padding size for all sides of the border.- Since:
- 2.0
-
-
Method Details
-
getInsets
Description copied from interface:Border
Returns the Insets for this Border for the given Figure.- Parameters:
figure
- The figure this border belongs to- Returns:
- The insets
- See Also:
-
paint
This method does nothing, since this border is just for spacing.- Parameters:
figure
- The figure this border belongs tographics
- The graphics object used for paintinginsets
- The insets- See Also:
-