/** * Adds an chemModel to this container. * * @param chemModel The chemModel to be added to this container * * @see #getChemModel */ @Override public void addChemModel(IChemModel chemModel) { if (chemModelCount + 1 >= chemModels.length) { growChemModelArray(); } chemModels[chemModelCount] = chemModel; chemModelCount++; chemModel.addListener(this); notifyChanged(); }
/** * Adds an chemModel to this container. * * @param chemModel The chemModel to be added to this container * * @see #getChemModel */ @Override public void addChemModel(IChemModel chemModel) { if (chemModelCount + 1 >= chemModels.length) { growChemModelArray(); } chemModels[chemModelCount] = chemModel; chemModelCount++; chemModel.addListener(this); notifyChanged(); }