Package org.eclipse.draw2d.text
Interface FlowBorder
- All Superinterfaces:
- Border
- All Known Implementing Classes:
- AbstractFlowBorder
Experimental API. This is a special type of border for use with
 
FlowFigures. This interface should not be
 implemented by clients. Clients should extend
 AbstractFlowBorder.- Since:
- 3.1
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the collapsable bottom margin in pixels.intReturns the left margin in pixels.intReturns the right margin in pixels.intReturns the collapsable top margin in pixels.voidpaint(FlowFigure figure, Graphics g, Rectangle where, int sides) Paints the border around the given box location.Methods inherited from interface org.eclipse.draw2d.BordergetInsets, getPreferredSize, isOpaque, paint
- 
Method Details- 
getBottomMarginint getBottomMargin()Returns 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.- Returns:
- the bottom margin
- Since:
- 3.1
 
- 
getLeftMarginint getLeftMargin()Returns the left margin in pixels. Margin is the space external to the border and the flow box on which it is rendered.- Returns:
- the left margin
- Since:
- 3.1
 
- 
getRightMarginint getRightMargin()Returns the right margin in pixels. Margin is the space external to the border and the flow box on which it is rendered.- Returns:
- the right margin
- Since:
- 3.1
 
- 
getTopMarginint getTopMargin()Returns 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.- Returns:
- the top margin
- Since:
- 3.1
 
- 
paintPaints the border around the given box location. The border is asked to paint each of the FlowFigure's boxes. ThesideInfoparameter is used to indicate whether the left and right sides should be rendered. This parameter will contain the following bit flags:- 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
- Since:
- 3.1
 
 
-