Bug 276481 - Make AbstractBackground an interface
Summary: Make AbstractBackground an interface
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 08:10 EDT by Udo Walker CLA
Modified: 2009-05-15 08:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.