Revision 34300 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/view/legend/gui/AttrInTableLabeling.java

View differences:

AttrInTableLabeling.java
73 73
import org.gvsig.gui.beans.swing.GridBagLayoutPanel;
74 74
import org.gvsig.gui.beans.swing.JBlank;
75 75
import org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.AttrInTableLabelingStrategy;
76
import org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.IAttrInTableLabelingStrategy;
76 77
import org.gvsig.utils.swing.JComboBox;
77 78

  
78 79

  
......
426 427
		}
427 428

  
428 429
		if (layer.getLabelingStrategy() instanceof AttrInTableLabelingStrategy) {
429
			AttrInTableLabelingStrategy aux = (AttrInTableLabelingStrategy) layer.getLabelingStrategy();
430
			IAttrInTableLabelingStrategy aux = (IAttrInTableLabelingStrategy) layer.getLabelingStrategy();
430 431
			getRdBtnFixedColor().setSelected(aux.usesFixedColor());
431 432
			getRdBtnColorField().setSelected(!aux.usesFixedColor());
432 433

  
......
439 440
	private void refreshFont(){
440 441

  
441 442
		if (layer.getLabelingStrategy() instanceof AttrInTableLabelingStrategy) {
442
			AttrInTableLabelingStrategy aux = (AttrInTableLabelingStrategy) layer.getLabelingStrategy();
443
			IAttrInTableLabelingStrategy aux = (IAttrInTableLabelingStrategy) layer.getLabelingStrategy();
443 444
			labelFont = aux.getFont();
444 445
		}
445 446
	}
......
476 477
		}
477 478

  
478 479
		if (layer.getLabelingStrategy() instanceof AttrInTableLabelingStrategy) {
479
			AttrInTableLabelingStrategy aux = (AttrInTableLabelingStrategy) layer.getLabelingStrategy();
480
			IAttrInTableLabelingStrategy aux = (IAttrInTableLabelingStrategy) layer.getLabelingStrategy();
480 481
			getTxtHeightField().setText(String.valueOf(aux.getFixedSize()));
481 482
			getRdBtnFixedHeight().setSelected(aux.usesFixedSize());
482 483
			getRdBtnHeightField().setSelected(!aux.usesFixedSize());
......
496 497
		}
497 498

  
498 499
		if (layer.getLabelingStrategy() instanceof AttrInTableLabelingStrategy) {
499
			AttrInTableLabelingStrategy aux = (AttrInTableLabelingStrategy) layer.getLabelingStrategy();
500
			IAttrInTableLabelingStrategy aux = (IAttrInTableLabelingStrategy) layer.getLabelingStrategy();
500 501
			String item = aux.getRotationField();
501 502
			getCmbRotationField().setSelectedItem(item != null? item : NO_FIELD_ITEM);
502 503
		}
......
509 510
		}
510 511

  
511 512
		if (layer.getLabelingStrategy() instanceof AttrInTableLabelingStrategy) {
512
			AttrInTableLabelingStrategy aux = (AttrInTableLabelingStrategy) layer.getLabelingStrategy();
513
			IAttrInTableLabelingStrategy aux = (IAttrInTableLabelingStrategy) layer.getLabelingStrategy();
513 514
			String item = aux.getTextField();
514 515
			getCmbTextField().setSelectedItem(item != null? item : NO_FIELD_ITEM);
515 516
		}

Also available in: Unified diff