org.eclipse.draw2d
Interface Border
- All Known Subinterfaces:
- LabeledBorder
- All Known Implementing Classes:
- AbstractBorder
- public interface Border
getInsets
public Insets getInsets(IFigure figure)
- Returns the Insets for this Border for the given Figure.
getPreferredSize
public Dimension getPreferredSize(IFigure figure)
- Returns the preferred width and height that this border
would like to display itself properly.
isOpaque
public boolean isOpaque()
- Returns true if the Border completely fills the region defined
above in paint.
paint
public void paint(IFigure figure,
Graphics graphics,
Insets insets)
- paint the Border. The border should paint inside figure's
getBounds(), inset by the parameter insets. The border
generally should not paint inside its own insets.
More specifically, Border b should paint inside the rectangle:
figure.getBounds().getCropped(insets)
and outside of the rectangle:
figure.getBounds().getCropped(insets).getCropped(getInsets())
where inside is defined as rectangle.contains(x,y);