public abstract class AbstractBorder extends java.lang.Object implements Border
| Modifier and Type | Field and Description |
|---|---|
protected static Rectangle |
tempRect
A temporary Rectangle
|
| Constructor and Description |
|---|
AbstractBorder() |
| Modifier and Type | Method and Description |
|---|---|
protected static Rectangle |
getPaintRectangle(IFigure figure,
Insets insets)
Returns a temporary rectangle representing the figure's bounds cropped by
the specified insets.
|
Dimension |
getPreferredSize(IFigure f)
Returns the preferred width and height that this border would like to
display itself properly.
|
boolean |
isOpaque()
Returns
true if the Border completely fills the region
defined in Border.paint(IFigure, Graphics, Insets). |
protected static Rectangle tempRect
protected static final Rectangle getPaintRectangle(IFigure figure, Insets insets)
figure - Figure for which the paintable rectangle is neededinsets - The insetspublic Dimension getPreferredSize(IFigure f)
BordergetPreferredSize in interface Borderf - The figureBorder.getPreferredSize(IFigure)public boolean isOpaque()
Bordertrue if the Border completely fills the region
defined in Border.paint(IFigure, Graphics, Insets).isOpaque in interface Bordertrue if this border is opaqueBorder.isOpaque()Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.