Adds and removes annotations to/from this annotation model in a single step. The annotations to remove are given in an array. The annotations to add are provided in a map associating the annotations with the positions at which they should be added. All registered annotation model listeners are informed about the change. If the model is connected to a document, the positions are automatically updated on document changes. Annotations that are already managed by this annotation model or are not associated with a valid position in the connected document have no effect.
@param annotationsToRemove the annotations to be removed, may benull
@param annotationsToAdd the annotations which will be added, may benull each map entry has an Annotation as key and a Position as value
@throws ClassCastException if one of the map key or values has a wrongtype
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.