Package org.eclipse.draw2d
Class SeparatorBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.MarginBorder
org.eclipse.draw2d.SeparatorBorder
- All Implemented Interfaces:
- Border
This border behaves similar to a 
LineBorder with width 1,
 except that individual sides are drawn. The sides are specified via
 PositionConstants.LEFT, PositionConstants.RIGHT,
 PositionConstants.TOP and PositionConstants.BOTTOM. Multiple
 sides can be specified by logically or-ing these constants.- Since:
- 3.16
- 
Field SummaryFields inherited from class org.eclipse.draw2d.MarginBorderinsetsFields inherited from class org.eclipse.draw2d.AbstractBordertempRect
- 
Constructor SummaryConstructorsConstructorDescriptionSeparatorBorder(Insets insets, int sides) The sides are specified viaPositionConstants.LEFT,PositionConstants.RIGHT,PositionConstants.TOP,PositionConstants.BOTTOM.
- 
Method SummaryMethods inherited from class org.eclipse.draw2d.MarginBordergetInsetsMethods inherited from class org.eclipse.draw2d.AbstractBordergetPaintRectangle, getPreferredSize, isOpaque
- 
Constructor Details- 
SeparatorBorderThe sides are specified viaPositionConstants.LEFT,PositionConstants.RIGHT,PositionConstants.TOP,PositionConstants.BOTTOM. Multiple sides can be specified by logically or-ing these constants.- Parameters:
- insets- The Insets for the border
- sides- The integer-encoded sides that should be drawn.
- See Also:
 
 
- 
- 
Method Details- 
setColorIfnullis given as a parameter, the current foreground color of the graphics object is used while painting.- Parameters:
- color- The color used for drawing each side.
 
- 
paintDescription copied from class:MarginBorderThis method does nothing, since this border is just for spacing.- Specified by:
- paintin interface- Border
- Overrides:
- paintin class- MarginBorder
- Parameters:
- f- The figure this border belongs to
- g- The graphics object used for painting
- i- The insets
- See Also:
 
 
-