Revision 20905 trunk/extensions/extSymbology/src/org/gvsig/symbology/fmap/labeling/GeneralLabelingStrategy.java
GeneralLabelingStrategy.java | ||
---|---|---|
154 | 154 |
* @author jaume dominguez faus - jaume.dominguez@iver.es Jan 4, 2008 |
155 | 155 |
* |
156 | 156 |
*/ |
157 |
public class GeneralLabelingStrategy implements ILabelingStrategy { |
|
157 |
public class GeneralLabelingStrategy implements ILabelingStrategy, Cloneable {
|
|
158 | 158 |
private ILabelingMethod method; |
159 | 159 |
private IPlacementConstraints placementConstraints; |
160 | 160 |
protected FLyrVect layer; |
... | ... | |
229 | 229 |
// } |
230 | 230 |
//duplicates stuff |
231 | 231 |
|
232 |
boolean bLabelsReallocatable = !isAllowOverlapping();
|
|
232 |
boolean bLabelsReallocatable = !isAllowingOverlap();
|
|
233 | 233 |
BufferedImage levelImg = null, |
234 | 234 |
bi = new BufferedImage( |
235 | 235 |
mapImage.getWidth(), |
... | ... | |
308 | 308 |
} |
309 | 309 |
int total = placedCount+notPlacedCount; |
310 | 310 |
|
311 |
Logger.getLogger(getClass()).info("Labeled layer '"+layer.getName()+"' "+(System.currentTimeMillis()-t1)/1000D+" seconds. "+placedCount+"/"+total+" labels placed ("+NumberFormat.getInstance().format(100*placedCount/(double) total)+"%)"); |
|
311 |
if (total>0) |
|
312 |
Logger.getLogger(getClass()).info("Labeled layer '"+layer.getName()+"' "+(System.currentTimeMillis()-t1)/1000D+" seconds. "+placedCount+"/"+total+" labels placed ("+NumberFormat.getInstance().format(100*placedCount/(double) total)+"%)"); |
|
312 | 313 |
|
313 | 314 |
} |
314 | 315 |
|
... | ... | |
492 | 493 |
} |
493 | 494 |
} |
494 | 495 |
|
495 |
public boolean isAllowOverlapping() {
|
|
496 |
public boolean isAllowingOverlap() {
|
|
496 | 497 |
return allowOverlapping; |
497 | 498 |
} |
498 | 499 |
|
Also available in: Unified diff