@Override public void visitMapWay(MapWay way){
  DefaultEntityViewInfo pInfo=(DefaultEntityViewInfo)way.getViewInfo();
  List<MapNode> nodes=getWayNodes(way);
  if (!nodes.isEmpty() && pInfo.wayColor != null) {
    if (pInfo.wayFillColor != null && nodes.get(0) == nodes.get(nodes.size() - 1) && (way.isArea() || !pInfo.fillAreasOnly))     areaBuffer.add(way);
 else     wayBuffer.add(way);
  }
  if (pInfo.isWayIcon && pInfo.icon != null)   nodeBuffer.add(way);
}

@ Override public void visitMapWay ( MapWay way ) { DefaultEntityViewInfo pInfo = ( DefaultEntityViewInfo ) way . getViewInfo ( ) ; List < MapNode > nodes = getWayNodes ( way ) ; if ( ! nodes . isEmpty ( ) && pInfo . wayColor != null ) { if ( pInfo . wayFillColor != null && nodes . get ( 0 ) == nodes . get ( nodes . size ( ) - 1 ) && ( way . isArea ( ) || ! pInfo . fillAreasOnly ) ) areaBuffer . add ( way ) ; else wayBuffer . add ( way ) ; } if ( pInfo . isWayIcon && pInfo . icon != null ) nodeBuffer . add ( way ) ; }
adds a way to a buffer for printing .
