AbstractTool[] tools = {
selectTool,
new TextTool(attrs),
new LineTool(attrs),
new CurveTool(attrs),
new PolyTool(false, attrs),
new RectangleTool(attrs),
new RoundRectangleTool(attrs),
new OvalTool(attrs),
new PolyTool(true, attrs),
};
ArrayList<ToolbarItem> rawItems = new ArrayList<ToolbarItem>();
for (AbstractTool tool : tools) {
rawItems.add(new ToolbarToolItem(tool));