public void setActiveKey(byte type, int i, Class c) {
		if (SiteAnnotation.class == c) {
			switch (type) {
			case Attachment.ATOM_HOST:
				activeAtomAnnotation = i;
				break;
			case Attachment.BOND_HOST:
				activeBondAnnotation = i;
				break;
			}
		}
		else if (InteractionCenter.class == c) {
			switch (type) {
			case Attachment.ATOM_HOST:
				activeAtomInteraction = i;
				break;
			case Attachment.BOND_HOST:
				activeBondInteraction = i;
				break;
			}
		}
	}