Revision 11276 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/LabelingManager.java
LabelingManager.java | ||
---|---|---|
1070 | 1070 |
strategy.setUsesFixedSize(getRdBtnFixedHeight().isSelected()); |
1071 | 1071 |
strategy.setFixedSize(fixedSize); |
1072 | 1072 |
// add more attributes for AttrInTableLabeling (if you need) here |
1073 |
|
|
1074 |
|
|
1073 | 1075 |
double unitFactor; |
1074 | 1076 |
try { |
1075 | 1077 |
unitFactor = Attributes.CHANGE[getCmbUnits().getSelectedIndex()]/100; |
1076 | 1078 |
} catch (ArrayIndexOutOfBoundsException aioobEx) { //jijiji |
1077 |
unitFactor = -1; // which represents size in pixel
|
|
1079 |
unitFactor = 0; // which represents size in pixel
|
|
1078 | 1080 |
} |
1079 | 1081 |
strategy.setUnitFactor(unitFactor); |
1080 | 1082 |
layer.setLabelingStrategy(strategy); |
Also available in: Unified diff