docs: public void clearItems() {
  		List<LegendItemComponentImpl> items = new ArrayList<LegendItemComponentImpl>();
  		for (PrintComponent child : children) {
  			if (child instanceof LegendItemComponentImpl) {
  				items.add((LegendItemComponentImpl) child);
  			}
  		}
  		for (LegendItemComponentImpl item : items) {
  			removeComponent(item);
  		}
  	}