Package org.eclipse.draw2d
Class FocusBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.FocusBorder
- All Implemented Interfaces:
Border
A Border that looks like the system's focus rectangle.
-
Field Summary
Fields inherited from class org.eclipse.draw2d.AbstractBorder
tempRect -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Insets for this Border for the given Figure.booleanisOpaque()Returnstrueif the Border completely fills the region defined inBorder.paint(IFigure, Graphics, Insets).voidPaints a focus rectangle.Methods inherited from class org.eclipse.draw2d.AbstractBorder
getPaintRectangle, getPreferredSize
-
Constructor Details
-
FocusBorder
public FocusBorder()
-
-
Method Details
-
getInsets
Description copied from interface:BorderReturns the Insets for this Border for the given Figure.- Parameters:
figure- The figure this border belongs to- Returns:
- The insets
- See Also:
-
isOpaque
public boolean isOpaque()Description copied from interface:BorderReturnstrueif the Border completely fills the region defined inBorder.paint(IFigure, Graphics, Insets).- Specified by:
isOpaquein interfaceBorder- Overrides:
isOpaquein classAbstractBorder- Returns:
trueif this border is opaque- See Also:
-
paint
Paints a focus rectangle.- Parameters:
figure- The figure this border belongs tographics- The graphics object used for paintinginsets- The insets- See Also:
-