public class FocusBorder extends AbstractBorder
tempRect| Constructor and Description |
|---|
FocusBorder()
Constructs a new FocusBorder.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
getInsets(IFigure figure)
Returns the Insets for this Border for the given Figure.
|
boolean |
isOpaque()
Returns
true if the Border completely fills the region
defined in Border.paint(IFigure, Graphics, Insets). |
void |
paint(IFigure figure,
Graphics graphics,
Insets insets)
Paints a focus rectangle.
|
getPaintRectangle, getPreferredSizepublic Insets getInsets(IFigure figure)
Borderfigure - The figure this border belongs toBorder.getInsets(IFigure)public boolean isOpaque()
Bordertrue if the Border completely fills the region
defined in Border.paint(IFigure, Graphics, Insets).isOpaque in interface BorderisOpaque in class AbstractBordertrue if this border is opaqueBorder.isOpaque()public void paint(IFigure figure, Graphics graphics, Insets insets)
figure - The figure this border belongs tographics - The graphics object used for paintinginsets - The insetsBorder.paint(IFigure, Graphics, Insets)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.