colix = Graphics3D.USE_PALETTE;
if (bsColixSet == null)
bsColixSet = new BitSet();
byte pid = JmolConstants.pidOf(value);
for (int i = bs.nextSetBit(0); i >= 0; i = bs.nextSetBit(i + 1)) {
Atom atom = atoms[i];
atom.setColixAtom(setColix(colix, pid, atom));
bsColixSet.set(i, colix != Graphics3D.USE_PALETTE
|| pid != JmolConstants.PALETTE_NONE);
atom.setPaletteID(pid);
}
return;
}
if ("colorValues" == propertyName) {
int[] values = (int[]) value;
if (values.length == 0)
return;
if (bsColixSet == null)
bsColixSet = new BitSet();
int n = 0;
Integer color = null;
for (int i = bs.nextSetBit(0); i >= 0; i = bs.nextSetBit(i + 1)) {
if (n >= values.length)
return;
color = new Integer(values[n++]);
short colix = Graphics3D.getColix(color);
if (colix == Graphics3D.INHERIT_ALL)
colix = Graphics3D.USE_PALETTE;
byte pid = JmolConstants.pidOf(color);
Atom atom = atoms[i];
atom.setColixAtom(setColix(colix, pid, atom));
bsColixSet.set(i, colix != Graphics3D.USE_PALETTE
|| pid != JmolConstants.PALETTE_NONE);
atom.setPaletteID(pid);
}
return;
}
if ("translucency" == propertyName) {
boolean isTranslucent = (((String) value).equals("translucent"));