/** * Removes all primitives from the collection. Override to ensure all primitives are removed from Layers Color Map * <p> * It should be noted that this operation will not have an apparent effect for an already rendered (drawn) Container. * In other words, if the Container has already been drawn and a new primitive is added, you'll need to invoke draw() on the * Container. This is done to enhance performance, otherwise, for every add we would have draws impacting performance. */ @Override public void removeAll() { detachFromLayerColorMap(); super.removeAll(); }