Community
Participate
Working Groups
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.