Revision 23138

View differences:

trunk/extensions/extSymbology/src/org/gvsig/symbology/gui/layerproperties/DefaultLabeling.java
228 228

  
229 229
	public void propertyChange(PropertyChangeEvent evt) {
230 230
		String prop = evt.getPropertyName();
231
		GeneralLabelingStrategy s = (GeneralLabelingStrategy) layer.
232
		getLabelingStrategy();
233

  
231 234
		if (AbstractLabelingMethodPanel.PLACEMENT_CONSTRAINTS.equals(prop)) {
232 235
			placementConstraints = (IPlacementConstraints) evt.getNewValue();
236
			s.setPlacementConstraints(placementConstraints);
233 237
		} else if (AbstractLabelingMethodPanel.ALLOW_OVERLAP.equals(prop)) {
234 238
			allowOverlap = (Boolean) evt.getNewValue();
239
			s.setAllowOverlapping(allowOverlap);
235 240
		} else if (AbstractLabelingMethodPanel.ZOOM_CONSTRAINTS.equals(prop)) {
236 241
			zoomConstraints = (IZoomConstraints) evt.getNewValue();
242
			s.setZoomConstraints(zoomConstraints);
237 243
		}
244

  
238 245
		updatePreview();
239 246
	}
240 247
}

Also available in: Unified diff