Revision 43215 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/DefaultLayerInformationBuilder.java
DefaultLayerInformationBuilder.java | ||
---|---|---|
274 | 274 |
|
275 | 275 |
@Override |
276 | 276 |
public String build() { |
277 |
//FIXME: |
|
277 |
if( value == null ) { |
|
278 |
return new DefaultTextElement().value("None").build(); |
|
279 |
} else { |
|
280 |
PropertyElement p1 = new DefaultPropertyElement(); |
|
281 |
p1.labelkey("_upper_left_corner"); |
|
282 |
p1.value("%+f, %+f", value.getMinimum(DIMENSIONS.X), value.getMaximum(DIMENSIONS.Y)); |
|
283 |
p1.monospace(); |
|
278 | 284 |
|
279 |
PropertyElement p1 = new DefaultPropertyElement();
|
|
280 |
p1.labelkey("_upper_left_corner");
|
|
281 |
p1.value("%+f, %+f", value.getMinimum(DIMENSIONS.X), value.getMaximum(DIMENSIONS.Y));
|
|
282 |
p1.monospace();
|
|
285 |
PropertyElement p2 = new DefaultPropertyElement();
|
|
286 |
p2.labelkey("_upper_right_corner");
|
|
287 |
p2.value("%+f, %+f", value.getMaximum(DIMENSIONS.X), value.getMaximum(DIMENSIONS.Y));
|
|
288 |
p2.monospace();
|
|
283 | 289 |
|
284 |
PropertyElement p2 = new DefaultPropertyElement();
|
|
285 |
p2.labelkey("_upper_right_corner");
|
|
286 |
p2.value("%+f, %+f", value.getMaximum(DIMENSIONS.X), value.getMaximum(DIMENSIONS.Y));
|
|
287 |
p2.monospace();
|
|
290 |
PropertyElement p3 = new DefaultPropertyElement();
|
|
291 |
p3.labelkey("_lower_right_corner");
|
|
292 |
p3.value("%+f, %+f", value.getMaximum(DIMENSIONS.X), value.getMinimum(DIMENSIONS.Y));
|
|
293 |
p3.monospace();
|
|
288 | 294 |
|
289 |
PropertyElement p3 = new DefaultPropertyElement();
|
|
290 |
p3.labelkey("_lower_right_corner");
|
|
291 |
p3.value("%+f, %+f", value.getMaximum(DIMENSIONS.X), value.getMinimum(DIMENSIONS.Y));
|
|
292 |
p3.monospace();
|
|
295 |
PropertyElement p4 = new DefaultPropertyElement();
|
|
296 |
p4.labelkey("_lower_left_corner");
|
|
297 |
p4.value("%+f, %+f", value.getMinimum(DIMENSIONS.X), value.getMinimum(DIMENSIONS.Y));
|
|
298 |
p4.monospace();
|
|
293 | 299 |
|
294 |
PropertyElement p4 = new DefaultPropertyElement(); |
|
295 |
p4.labelkey("_lower_left_corner"); |
|
296 |
p4.value("%+f, %+f", value.getMinimum(DIMENSIONS.X), value.getMinimum(DIMENSIONS.Y)); |
|
297 |
p4.monospace(); |
|
298 |
|
|
299 |
return p1.build() + p2.build() + p3.build() + p4.build(); |
|
300 |
return p1.build() + p2.build() + p3.build() + p4.build(); |
|
301 |
} |
|
300 | 302 |
} |
301 | 303 |
|
302 | 304 |
} |
Also available in: Unified diff