Revision 229
org.gvsig.dgn/trunk/org.gvsig.dgn/org.gvsig.dgn.provider.legend/src/main/java/org/gvsig/fmap/dal/store/dgn/legend/DGNLegendBuilder.java | ||
---|---|---|
76 | 76 |
|
77 | 77 |
ISymbol myDefaultSymbol = |
78 | 78 |
mapContextManager.getSymbolManager() |
79 |
.createSymbol(Geometry.TYPES.GEOMETRY);
|
|
79 |
.createSymbol(Geometry.TYPES.GEOMETRY); |
|
80 | 80 |
|
81 | 81 |
defaultLegend.setDefaultSymbol(myDefaultSymbol); |
82 |
defaultLegend.useDefaultSymbol(true); |
|
83 | 82 |
|
84 | 83 |
labelingStragegy = SymbologyLocator.getSymbologyManager().createAttrInTableLabelingStrategy(); |
85 | 84 |
labelingStragegy.setTextField(DGNStoreProvider.NAME_FIELD_TEXT); |
... | ... | |
102 | 101 |
Color color = dgnReader.DGNLookupColor(clave.intValue()); |
103 | 102 |
theSymbol = |
104 | 103 |
mapContextManager.getSymbolManager().createSymbol( |
105 |
Geometry.TYPES.GEOMETRY, color);
|
|
104 |
Geometry.TYPES.GEOMETRY, color); |
|
106 | 105 |
|
107 | 106 |
theSymbol.setDescription(clave.toString()); |
108 | 107 |
|
... | ... | |
126 | 125 |
defaultLegend.addSymbol(clave, theSymbol); |
127 | 126 |
} |
128 | 127 |
} |
128 |
defaultLegend.useDefaultSymbol(true); |
|
129 | 129 |
} |
130 | 130 |
|
131 | 131 |
public Object getLabeling() { |
Also available in: Unified diff