* Updates the view information of a given entity by means of the current
* entity classifier. If suitable viewing information was found and
* <code>addToTree</code> is true, the entity is added to the entity tree.
*/
private void updateEntityViewInfo(MapEntity entity, boolean addToTree) {
EntityViewInfo info = null;
if (entityClassifier != null)
info = entityClassifier.classify(entity);
entity.setViewInfo(info);
if (addToTree && info != null)
entityTree.insertEntity((DefaultMapEntity) entity);