/** * Redraws the sources on this layer, after first refreshing them based on the current state of * the {@link com.google.android.stardroid.control.AstronomerModel}. */ protected synchronized void refreshSources(EnumSet<UpdateType> updateTypes) { for (AstronomicalSource astroSource : astroSources) { updateTypes.addAll(astroSource.update()); } if (!updateTypes.isEmpty()) { redraw(updateTypes); } }