Bug 276481

Summary: Make AbstractBackground an interface
Product: [Tools] GEF Reporter: Udo Walker <Udo.Walker>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Udo Walker CLA 2009-05-15 08:10:25 EDT
In the draw2d API the class AbstractBackground is an abstract class. It is used in the paintFigure() method of class Figure to check if the border of this figure is an abstract background border. 

But what if I want to use a sub class of AbstractLabeledBorder and give that also the behavior of an abstract background? 

This would be only possible if AbstractBackground is an interface. 

BTW AbstractBackround has no functionality at all so converting it to an interface should be no problem; just add the missing getInsets() method implementation to the javadoc and explain why you should change it.

Probably creating an interface with a new name and deprecating the old class would be compatible to older implemenations.