Package org.eclipse.draw2d.text
Class AbstractFlowBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.text.AbstractFlowBorder
- All Implemented Interfaces:
- Border,- FlowBorder
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.- Since:
- 3.1
- 
Field SummaryFields inherited from class org.eclipse.draw2d.AbstractBordertempRect
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the collapsable bottom margin in pixels.Returns the Insets for this Border for the given Figure.intReturns the left margin in pixels.intReturns the right margin in pixels.intReturns the collapsable top margin in pixels.final voidThis method is not called on FlowBorders.voidpaint(FlowFigure figure, Graphics g, Rectangle where, int sides) Subclasses should override this method to paint each box's border.Methods inherited from class org.eclipse.draw2d.AbstractBordergetPaintRectangle, getPreferredSize, isOpaqueMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.draw2d.BordergetPreferredSize, isOpaque
- 
Constructor Details- 
AbstractFlowBorderpublic AbstractFlowBorder()
 
- 
- 
Method Details- 
getBottomMarginpublic int getBottomMargin()Description copied from interface:FlowBorderReturns the collapsable bottom margin in pixels. Margin is the space external to the border and the flow box on which it is rendered. Vertical margins (top and bottom) may collapse in some situations, such as adjacent or nested blocks.- Specified by:
- getBottomMarginin interface- FlowBorder
- Returns:
- the bottom margin
- See Also:
 
- 
getInsetsDescription copied from interface:BorderReturns the Insets for this Border for the given Figure.
- 
getLeftMarginpublic int getLeftMargin()Description copied from interface:FlowBorderReturns the left margin in pixels. Margin is the space external to the border and the flow box on which it is rendered.- Specified by:
- getLeftMarginin interface- FlowBorder
- Returns:
- the left margin
- See Also:
 
- 
getRightMarginpublic int getRightMargin()Description copied from interface:FlowBorderReturns the right margin in pixels. Margin is the space external to the border and the flow box on which it is rendered.- Specified by:
- getRightMarginin interface- FlowBorder
- Returns:
- the right margin
- See Also:
 
- 
getTopMarginpublic int getTopMargin()Description copied from interface:FlowBorderReturns the collapsable top margin in pixels. Margin is the space external to the border and the flow box on which it is rendered. Vertical margins (top and bottom) may collapse in some situations, such as adjacent or nested blocks.- Specified by:
- getTopMarginin interface- FlowBorder
- Returns:
- the top margin
- See Also:
 
- 
paintThis method is not called on FlowBorders. For this reason it is implemented here and madefinalso that clients override the correct method.
- 
paintSubclasses should override this method to paint each box's border.- Specified by:
- paintin interface- FlowBorder
- Parameters:
- figure- the flow figure whose border is being painted
- g- the graphics
- where- the relative location of the box
- sides- bits indicating sides and bidi orientation
- See Also:
 
 
-