|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.AbstractBorder
Provides generic support for borders.
Field Summary | |
protected static Rectangle |
tempRect
A temporary Rectangle |
Constructor Summary | |
AbstractBorder()
|
Method Summary | |
protected static Rectangle |
getPaintRectangle(IFigure figure,
Insets insets)
Returns a temporary rectangle representing the figure's bounds cropped by the specified inserts. |
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) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.draw2d.Border |
getInsets, paint |
Field Detail |
protected static Rectangle tempRect
Constructor Detail |
public AbstractBorder()
Method Detail |
protected static final Rectangle getPaintRectangle(IFigure figure, Insets insets)
figure
- Figure for which the paintable rectangle is neededinsets
- The insets
public Dimension getPreferredSize(IFigure f)
Border
getPreferredSize
in interface Border
f
- The figure
Border.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()
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |