|
Eclipse Draw2d 3.3 |
||||||||||
| 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.text.AbstractFlowBorder
A basis for implementing FlowBorder. Subclassing this class will possibly
guarantee compatibility with future changes to the FlowBorder interface. This class
also returns default values for many of the required methods as a convenience.
| Field Summary |
| Fields inherited from class org.eclipse.draw2d.AbstractBorder |
tempRect |
| Constructor Summary | |
AbstractFlowBorder()
|
|
| Method Summary | |
int |
getBottomMargin()
Returns the collapsable bottom margin in pixels. |
Insets |
getInsets(IFigure figure)
Returns the Insets for this Border for the given Figure. |
int |
getLeftMargin()
Returns the left margin in pixels. |
int |
getRightMargin()
Returns the right margin in pixels. |
int |
getTopMargin()
Returns the collapsable top margin in pixels. |
void |
paint(FlowFigure figure,
Graphics g,
Rectangle where,
int sides)
Subclasses should override this method to paint each box's border. |
void |
paint(IFigure figure,
Graphics graphics,
Insets insets)
This method is not called on FlowBorders. |
| 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 |
| Methods inherited from interface org.eclipse.draw2d.Border |
getPreferredSize, isOpaque |
| Constructor Detail |
public AbstractFlowBorder()
| Method Detail |
public int getBottomMargin()
FlowBorder
getBottomMargin in interface FlowBorderFlowBorder.getBottomMargin()public Insets getInsets(IFigure figure)
Border
getInsets in interface Borderfigure - The figure this border belongs to
Border.getInsets(IFigure)public int getLeftMargin()
FlowBorder
getLeftMargin in interface FlowBorderFlowBorder.getLeftMargin()public int getRightMargin()
FlowBorder
getRightMargin in interface FlowBorderFlowBorder.getRightMargin()public int getTopMargin()
FlowBorder
getTopMargin in interface FlowBorderFlowBorder.getTopMargin()
public final void paint(IFigure figure,
Graphics graphics,
Insets insets)
final so that clients override the correct
method.
paint in interface Borderfigure - the figuregraphics - the graphicsinsets - the insetsFlowBorder.paint(FlowFigure, Graphics, Rectangle, int)
public void paint(FlowFigure figure,
Graphics g,
Rectangle where,
int sides)
paint in interface FlowBorderfigure - the flow figure whose border is being paintedg - the graphicswhere - the relative location of the boxsides - bits indicating sides and bidi orientationFlowBorder.paint(FlowFigure, Graphics, Rectangle, int)
|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||