public void setAttachmentKeyColor(byte type, int i, int rgb, Class c) {
		if (modelManager.frame == null)
			return;
		switch (type) {
		case Attachment.ATOM_HOST:
			Atom[] atoms = modelManager.frame.atoms;
			if (i >= 0 && i < modelManager.frame.atomCount) {
				if (SiteAnnotation.class == c)
					atoms[i].annotationKeyColix = Graphics3D.getColix(rgb);
				else if (InteractionCenter.class == c) {
					atoms[i].interactionKeyColix = Graphics3D.getColix(rgb);
				}
			}
			break;
		case Attachment.BOND_HOST:
			Bond[] bonds = modelManager.frame.bonds;
			if (i >= 0 && i < modelManager.frame.bondCount) {
				if (SiteAnnotation.class == c)
					bonds[i].annotationKeyColix = Graphics3D.getColix(rgb);
				else if (InteractionCenter.class == c)
					bonds[i].interactionKeyColix = Graphics3D.getColix(rgb);
			}
			break;
		}
	}