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)
Border
getPreferredSize
in interface Border
f
- The figureBorder.getPreferredSize(IFigure)
public boolean isOpaque()
Border
true
if the Border completely fills the region
defined in Border.paint(IFigure, Graphics, Insets)
.isOpaque
in interface Border
true
if this border is opaqueBorder.isOpaque()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.