Package org.eclipse.draw2d
Class AbstractBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
- All Implemented Interfaces:
- Border
- Direct Known Subclasses:
- AbstractBackground,- AbstractFlowBorder,- AbstractLabeledBorder,- CompoundBorder,- FocusBorder,- LineBorder,- MarginBorder,- SchemeBorder
Provides generic support for borders.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static final RectanglegetPaintRectangle(IFigure figure, Insets insets) Returns a temporary rectangle representing the figure's bounds cropped by the specified insets.Returns the preferred width and height that this border would like to display itself properly.booleanisOpaque()Returnstrueif the Border completely fills the region defined inBorder.paint(IFigure, Graphics, Insets).
- 
Field Details- 
tempRectA temporary Rectangle
 
- 
- 
Constructor Details- 
AbstractBorderpublic AbstractBorder()
 
- 
- 
Method Details- 
getPaintRectangleReturns a temporary rectangle representing the figure's bounds cropped by the specified insets. This method exists for convenience and performance; the method does not new any Objects and returns a rectangle which the caller can manipulate.- Parameters:
- figure- Figure for which the paintable rectangle is needed
- insets- The insets
- Returns:
- The paintable region on the Figure f
- Since:
- 2.0
 
- 
getPreferredSizeDescription copied from interface:BorderReturns the preferred width and height that this border would like to display itself properly.- Specified by:
- getPreferredSizein interface- Border
- Parameters:
- f- The figure
- Returns:
- The preferred size
- See Also:
 
- 
isOpaquepublic boolean isOpaque()Description copied from interface:BorderReturnstrueif the Border completely fills the region defined inBorder.paint(IFigure, Graphics, Insets).
 
-