public void toggleVisibility(String type){
  Map<String,Boolean> visibilityMap=getVisibilityMap();
  Boolean visibility=visibilityMap.get(type);
  if (visibility != null)   visibilityMap.put(type,!visibility.booleanValue());
}

public void toggleVisibility ( String type ) { Map < String , Boolean > visibilityMap = getVisibilityMap ( ) ; Boolean visibility = visibilityMap . get ( type ) ; if ( visibility != null ) visibilityMap . put ( type , ! visibility . booleanValue ( ) ) ; }
toggles the visibility of the given element type in the indicator ' s visibility map .
