Revision 8369 trunk/extensions/extGraph_predes/src/com/iver/cit/gvsig/graph/gui/RouteReportPanel.java

View differences:

RouteReportPanel.java
45 45
*
46 46
* $Id$
47 47
* $Log$
48
* Revision 1.7  2006-10-26 11:42:42  fjp
48
* Revision 1.8  2006-10-26 17:47:14  fjp
49
* previo a formato
50
*
51
* Revision 1.7  2006/10/26 11:42:42  fjp
49 52
* Ya pita, ya.
50 53
*
51 54
* Revision 1.6  2006/10/25 15:51:20  fjp
......
220 223
	}
221 224
	
222 225
	private void initialize(){
223
		htmlText = "";
226
		htmlText = "<head>";
227
		htmlText += "<style type='text/css'>";
228
		htmlText += "<!-- ";
229
		htmlText += "  .normal { ";
230
		htmlText += "	font-family: Arial, Helvetica, sans-serif;	font-size: 10px; font-style: normal; color: #0000FF;";
231
		htmlText += "} --> ";
232
		htmlText += "</style>";
233
		htmlText += "</head>";
234
		htmlText += "<body>";
224 235
		ArrayList features = route.getFeatureList();
225 236
		
226 237
		//Route is ordered from the the start to the end
......
242 253
		//Borrar el graphics resaltado cuando se resalte otro
243 254
		
244 255
		renderLastStretch((IFeature)features.get(features.size() -1));
256
		htmlText += "</body>";
257
		System.out.println(htmlText);
245 258
		htmlPanel.setText(htmlText);
259
		
246 260
	}
247 261
	
248 262
	
......
283 297
		htmlText += "<td>";
284 298
		htmlText += START_IMAGE;
285 299
		htmlText += "</td>";
286
		htmlText += "<td>";
300
		htmlText += "<td class='normal'>";
287 301
		htmlText += "1. Salir de:<b> ";//TODO INTERNAC
288 302
		htmlText += feature.getAttribute(Route.TEXT_INDEX);
289 303
		htmlText += "</b></td></tr>";
290
		htmlText += "<tr><td><a href=\""+0+"\">Ver sobre el mapa</a><td></tr>";
304
		htmlText += "<tr><td class='normal'><a href=\""+0+"\">Ver sobre el mapa</a><td></tr>";
291 305
		htmlText += "</table>";
292 306
		htmlText += LINE_SEPARATOR;
293 307
		
......
314 328
		
315 329
		if(changeStreet){
316 330
			numberOfStreets++;
317
			String prefix = "Continue por <b>" + street1 + "</b> durante  "+
331
			String prefix = "Contin?e por <b>" + street1 + "</b> durante  "+
318 332
			nf.format(acumuledLenght)+" y ";
319 333
			int direction = TurnUtil.getDirection(previousFeature, feature);
320 334
			
......
335 349
			htmlText += "<td>";
336 350
			htmlText += imageTurn;
337 351
			htmlText += "</td>";
338
			htmlText += "<td>";
352
			htmlText += "<td class='normal'>";
339 353
			htmlText += numberOfStreets+" "+textoTramo;//TODO INTERNAC
340 354
			htmlText += "</td></tr>";
341 355
			htmlText += "<tr><td>Distancia acumulada:</td><td>"+nf.format(totalLenght)+"</td></tr>";

Also available in: Unified diff