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, getPreferredSize
public Insets getInsets(IFigure figure)
Border
figure
- The figure this border belongs toBorder.getInsets(IFigure)
public boolean isOpaque()
Border
true
if the Border completely fills the region
defined in Border.paint(IFigure, Graphics, Insets)
.isOpaque
in interface Border
isOpaque
in class AbstractBorder
true
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.