I am building custom objects with Draw2D and would like to take advantage of the CSS based material design icons from Microsoft (https://cdn.materialdesignicons.com/3.6.95/). The only way I think I can achieve this is an internal frame to load the css class.
this.img = new draw2d.shape.basic.Rectangle({
stroke: 2,
bgColor: "#ffffff",
color: "#343F48",
resizeable: true
});
//replace this with MDI css icons
/ var icon = new draw2d.shape.icon.Db({
/ height: 20,
/ width: 20
/ });
/ icon.setBackgroundColor("#e0ba23");
//
var centerLocator = new draw2d.layout.locator.CenterLocator();
this.img.add(icon, centerLocator);