Revision 19317 trunk/extensions/extAnnotations/src/com/iver/cit/gvsig/project/documents/gui/Annotation_Open.java
Annotation_Open.java | ||
---|---|---|
79 | 79 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
80 | 80 |
import com.iver.cit.gvsig.fmap.layers.LayerListener; |
81 | 81 |
import com.iver.cit.gvsig.fmap.layers.VectorialFileAdapter; |
82 |
import com.iver.cit.gvsig.fmap.rendering.Annotation_Legend; |
|
83 |
import com.iver.cit.gvsig.fmap.rendering.styling.AttrInTableLabeling; |
|
84 |
import com.iver.cit.gvsig.gui.JUnitsComboBox; |
|
82 |
import com.iver.cit.gvsig.fmap.rendering.styling.labeling.AttrInTableLabelingStrategy; |
|
83 |
import com.iver.cit.gvsig.gui.JComboBoxUnits; |
|
85 | 84 |
import com.iver.cit.gvsig.gui.WizardPanel; |
86 | 85 |
import com.iver.cit.gvsig.gui.panels.CRSSelectPanel; |
87 | 86 |
import com.iver.cit.gvsig.project.Project; |
88 | 87 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
89 |
import com.iver.utiles.swing.JComboBox; |
|
90 | 88 |
|
91 | 89 |
|
92 | 90 |
/** |
... | ... | |
104 | 102 |
private JPanel pFileSelection; |
105 | 103 |
private JPanel pControls; |
106 | 104 |
private JPanel pInPixels; |
107 |
private JUnitsComboBox cmbUnits;
|
|
105 |
private JComboBoxUnits cmbUnits;
|
|
108 | 106 |
|
109 | 107 |
public Annotation_Open() { |
110 | 108 |
super(); |
... | ... | |
392 | 390 |
* |
393 | 391 |
* @return DOCUMENT ME! |
394 | 392 |
*/ |
395 |
public JUnitsComboBox getCmbUnits() {
|
|
393 |
public JComboBoxUnits getCmbUnits() {
|
|
396 | 394 |
if (cmbUnits == null) { |
397 |
cmbUnits = new JUnitsComboBox();
|
|
395 |
cmbUnits = new JComboBoxUnits();
|
|
398 | 396 |
cmbUnits.setSelectedIndex(Project.getDefaultDistanceUnits()); |
399 | 397 |
cmbUnits.setName("CMBUNITS"); |
400 | 398 |
} |
... | ... | |
503 | 501 |
PluginServices.getLogger().error(e.getMessage(),e); |
504 | 502 |
return false; |
505 | 503 |
} |
506 |
AttrInTableLabeling labeling = new AttrInTableLabeling();
|
|
504 |
AttrInTableLabelingStrategy labeling = new AttrInTableLabelingStrategy();
|
|
507 | 505 |
labeling.setUnit(getCmbUnits().getSelectedUnitIndex()); |
508 | 506 |
al.setLabelingStrategy(labeling); |
509 | 507 |
// ((Annotation_Legend)al.getLegend()).setFontInPixels(getCmbInPixels() |
Also available in: Unified diff