Revision 42496 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.labeling.app/org.gvsig.labeling.app.mainplugin/src/main/java/org/gvsig/labeling/placements/PlacementManager.java

View differences:

PlacementManager.java
43 43
import java.util.ArrayList;
44 44
import java.util.Iterator;
45 45

  
46
import org.slf4j.Logger;
47
import org.slf4j.LoggerFactory;
48

  
46 49
import org.gvsig.fmap.geom.Geometry;
47 50
import org.gvsig.fmap.geom.Geometry.TYPES;
48 51
import org.gvsig.fmap.geom.GeometryLocator;
......
50 53
import org.gvsig.fmap.geom.type.GeometryTypeNotSupportedException;
51 54
import org.gvsig.fmap.geom.type.GeometryTypeNotValidException;
52 55
import org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints;
53
import org.gvsig.tools.exception.DriverException;
54 56
import org.gvsig.tools.locator.LocatorException;
55
import org.slf4j.Logger;
56
import org.slf4j.LoggerFactory;
57 57

  
58 58

  
59 59
/**
......
65 65
 *
66 66
 */
67 67
public class PlacementManager {
68
	
68

  
69 69
	private static Logger logger = LoggerFactory.getLogger(PlacementManager.class);
70
	
70

  
71 71
	private static ArrayList<Class<?>> installedLabelPlacements = new ArrayList<Class<?>>();
72 72
	private static ArrayList<ILabelPlacement> availableLabelPlacements;
73 73
	private static final CannotPlaceLabel cantPlaceLabel = new CannotPlaceLabel();
......
141 141
	 * placement constraints are created according the layer shape type.
142 142
	 * @param layerDest
143 143
	 * @return
144
	 * @throws LocatorException 
145
	 * @throws GeometryTypeNotValidException 
146
	 * @throws GeometryTypeNotSupportedException 
147
	 * @throws DriverException
144
	 * @throws LocatorException
145
	 * @throws GeometryTypeNotValidException
146
	 * @throws GeometryTypeNotSupportedException
148 147
	 */
149 148
	public static IPlacementConstraints createPlacementConstraints(int geotype)
150 149
			throws Exception {
151
		
150

  
152 151
		GeometryType geom_gt = GeometryLocator.getGeometryManager().getGeometryType(
153 152
				geotype, Geometry.SUBTYPES.GEOM2D);
154 153

  
......
177 176
					}
178 177
				}
179 178
			}
180
		}		
179
		}
181 180
		logger.error("Unknown geo type in createPlacementConstraints: " + geotype);
182 181
		return null;
183 182
	}
184
	
185 183

  
186 184

  
185

  
187 186
}

Also available in: Unified diff