Revision 43215 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/BaseInformationBuilderWithGeometrySupport.java
BaseInformationBuilderWithGeometrySupport.java | ||
---|---|---|
123 | 123 |
|
124 | 124 |
@Override |
125 | 125 |
public String build() { |
126 |
PropertyElement p1 = new BasePropertyElementWithGeometrySupport(); |
|
127 |
p1.labelkey("_upper_left_corner"); |
|
128 |
p1.value("%+f, %+f", env.getMinimum(DIMENSIONS.X), env.getMaximum(DIMENSIONS.Y)); |
|
129 |
p1.monospace(); |
|
126 |
if( env == null ) { |
|
127 |
return new BaseTextElementWithGeometrySupport().value("None").build(); |
|
128 |
} else { |
|
129 |
PropertyElement p1 = new BasePropertyElementWithGeometrySupport(); |
|
130 |
p1.labelkey("_upper_left_corner"); |
|
131 |
p1.value("%+f, %+f", env.getMinimum(DIMENSIONS.X), env.getMaximum(DIMENSIONS.Y)); |
|
132 |
p1.monospace(); |
|
130 | 133 |
|
131 |
PropertyElement p2 = new BasePropertyElementWithGeometrySupport(); |
|
132 |
p2.labelkey("_upper_right_corner"); |
|
133 |
p2.value("%+f, %+f", env.getMaximum(DIMENSIONS.X), env.getMaximum(DIMENSIONS.Y)); |
|
134 |
p2.monospace(); |
|
134 |
PropertyElement p2 = new BasePropertyElementWithGeometrySupport();
|
|
135 |
p2.labelkey("_upper_right_corner");
|
|
136 |
p2.value("%+f, %+f", env.getMaximum(DIMENSIONS.X), env.getMaximum(DIMENSIONS.Y));
|
|
137 |
p2.monospace();
|
|
135 | 138 |
|
136 |
PropertyElement p3 = new BasePropertyElementWithGeometrySupport(); |
|
137 |
p3.labelkey("_lower_right_corner"); |
|
138 |
p3.value("%+f, %+f", env.getMaximum(DIMENSIONS.X), env.getMinimum(DIMENSIONS.Y)); |
|
139 |
p3.monospace(); |
|
139 |
PropertyElement p3 = new BasePropertyElementWithGeometrySupport();
|
|
140 |
p3.labelkey("_lower_right_corner");
|
|
141 |
p3.value("%+f, %+f", env.getMaximum(DIMENSIONS.X), env.getMinimum(DIMENSIONS.Y));
|
|
142 |
p3.monospace();
|
|
140 | 143 |
|
141 |
PropertyElement p4 = new BasePropertyElementWithGeometrySupport(); |
|
142 |
p4.labelkey("_lower_left_corner"); |
|
143 |
p4.value("%+f, %+f", env.getMinimum(DIMENSIONS.X), env.getMinimum(DIMENSIONS.Y)); |
|
144 |
p4.monospace(); |
|
144 |
PropertyElement p4 = new BasePropertyElementWithGeometrySupport();
|
|
145 |
p4.labelkey("_lower_left_corner");
|
|
146 |
p4.value("%+f, %+f", env.getMinimum(DIMENSIONS.X), env.getMinimum(DIMENSIONS.Y));
|
|
147 |
p4.monospace();
|
|
145 | 148 |
|
146 |
return p1.build() + p2.build() + p3.build() + p4.build(); |
|
149 |
return p1.build() + p2.build() + p3.build() + p4.build(); |
|
150 |
} |
|
147 | 151 |
} |
148 | 152 |
|
149 | 153 |
} |
Also available in: Unified diff