|
Eclipse Draw2d 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.MarginBorder
public class MarginBorder
A border that provides blank padding.
| Field Summary | |
|---|---|
protected Insets |
insets
This border's insets. |
| Fields inherited from class org.eclipse.draw2d.AbstractBorder |
|---|
tempRect |
| Constructor Summary | |
|---|---|
MarginBorder(Insets insets)
Constructs a MarginBorder with dimensions specified by insets. |
|
MarginBorder(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. |
|
| Method Summary | |
|---|---|
Insets |
getInsets(IFigure figure)
Returns the Insets for this Border for the given Figure. |
void |
paint(IFigure figure,
Graphics graphics,
Insets insets)
This method does nothing, since this border is just for spacing. |
| Methods inherited from class org.eclipse.draw2d.AbstractBorder |
|---|
getPaintRectangle, getPreferredSize, isOpaque |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Insets insets
| Constructor Detail |
|---|
public MarginBorder(Insets insets)
insets - The Insets for the border
public MarginBorder(int t,
int l,
int b,
int r)
t - Top paddingl - Left paddingb - Bottom paddingr - Right paddingpublic MarginBorder(int allsides)
allsides - Padding size for all sides of the border.| Method Detail |
|---|
public Insets getInsets(IFigure figure)
Border
figure - The figure this border belongs to
Border.getInsets(IFigure)
public void paint(IFigure figure,
Graphics graphics,
Insets insets)
figure - The figure this border belongs tographics - The graphics object used for paintinginsets - The insetsBorder.paint(IFigure, Graphics, Insets)
|
Eclipse Draw2d 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||