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.boolean
isOpaque()
Returnstrue
if the Border completely fills the region defined inBorder.paint(IFigure, Graphics, Insets)
.void
Paints 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:Border
Returns 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:Border
Returnstrue
if the Border completely fills the region defined inBorder.paint(IFigure, Graphics, Insets)
.- Specified by:
isOpaque
in interfaceBorder
- Overrides:
isOpaque
in classAbstractBorder
- Returns:
true
if 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:
-