*/
	public int getBulletType() {
		Element[] elem = getSelectedParagraphs();
		if (elem == null || elem.length == 0)
			return -1;
		StyledDocument doc = getStyledDocument();
		Element head = null;
		Icon[] icon = new Icon[elem.length];
		for (int i = 0; i < elem.length; i++) {
			head = doc.getCharacterElement(elem[i].getStartOffset());
			icon[i] = StyleConstants.getIcon(head.getAttributes());
			if (!(icon[i] instanceof BulletIcon))
				return -1;
		}
		if (icon.length == 1)
			return ((BulletIcon) icon[0]).getType();
		for (int i = 1; i < icon.length; i++) {
			if (((BulletIcon) icon[i]).getType() != ((BulletIcon) icon[0]).getType())
				return -1;
		}
		return ((BulletIcon) icon[0]).getType();
	}