while (fm.stringWidth(iconName) > UnitOverview.ICON_NAME_MAX_LENGTH) { iconName = iconName.substring(0, iconName.length() - 1); } }
while (fm.stringWidth(iconName) > Entity.ICON_NAME_MAX_LENGTH) { iconName = iconName.substring(0, iconName.length() - 1); } }
	public void generateIconName(FontMetrics fm) {		iconName = getModel();				while (fm.stringWidth(iconName) > UnitOverview.ICON_NAME_MAX_LENGTH) {			iconName = iconName.substring(0, iconName.length() - 1);		}	}