Revision 44491
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/dynamiclegend/DefaultDynamicVectorLegend.java | ||
---|---|---|
41 | 41 |
*/ |
42 | 42 |
public class DefaultDynamicVectorLegend extends AbstractVectorialLegend implements DynamicVectorLegend { |
43 | 43 |
|
44 |
final static private Logger LOG = LoggerFactory.getLogger(VectorialUniqueValueLegend.class);
|
|
44 |
final static private Logger LOG = LoggerFactory.getLogger(DefaultDynamicVectorLegend.class);
|
|
45 | 45 |
|
46 | 46 |
public static final String DYNAMIC_VECTOR_PERSISTENCE_DEFINITION_NAME |
47 |
= "SimgleSymbolLegend";
|
|
47 |
= "SingleSymbolLegend";
|
|
48 | 48 |
public static final String LEGEND_NAME = "DynamicSymbol"; |
49 | 49 |
private ISymbol defaultSymbol; |
50 | 50 |
private int shapeType = Geometry.TYPES.SURFACE; // Por defecto, tipo pol?gono |
... | ... | |
55 | 55 |
public static Expression expRotation = null; |
56 | 56 |
public static String[] requiredAttributes = null; |
57 | 57 |
|
58 |
// public static final String FIELD_OUTLINECOLOR = "COUTLINE"; |
|
59 |
// public static final String FIELD_FILLCOLOR = "CFILL"; |
|
60 |
// public static final String FIELD_SIZE = "CSIZE"; |
|
61 |
// public static final String FIELD_ROTATION = "CROTATION"; |
|
62 | 58 |
|
63 | 59 |
/** |
64 | 60 |
* Constructor method, needed by persistence. |
... | ... | |
156 | 152 |
pointOffset = GeometryLocator.getGeometryManager().createPoint(0, 0, Geometry.SUBTYPES.GEOM2D); |
157 | 153 |
value = pointOffset.convertToWKT(); |
158 | 154 |
} catch (Exception ex) { |
159 |
java.util.logging.Logger.getLogger(DefaultDynamicSymbol.class.getName()).log(Level.SEVERE, null, ex);
|
|
155 |
LOG.warn("Not been able to convert to WKT a point offset", ex);
|
|
160 | 156 |
} |
161 | 157 |
|
162 | 158 |
Expression offset = getExpressionFromString(value); |
... | ... | |
168 | 164 |
reqAttr.addAll(Arrays.asList(strList)); |
169 | 165 |
symbol.setRequiredFeatureAttributesNames(reqAttr); |
170 | 166 |
} catch (DataException ex) { |
171 |
java.util.logging.Logger.getLogger(DefaultDynamicVectorLegend.class.getName()).log(Level.SEVERE, null, ex);
|
|
167 |
LOG.warn("Not been able to assign its feature attributes", ex);
|
|
172 | 168 |
} |
173 | 169 |
|
174 | 170 |
symbol.setFeature(feat); |
... | ... | |
177 | 173 |
|
178 | 174 |
@Override |
179 | 175 |
public void useDefaultSymbol(boolean b) { |
180 |
LOG.warn("TODO: DefaultDynamicVectorLegend.useDefaultSymbol");
|
|
176 |
LOG.warn("Not implemented DefaultDynamicVectorLegend.useDefaultSymbol");
|
|
181 | 177 |
} |
182 | 178 |
|
183 | 179 |
public String[] getUsedFields() { |
... | ... | |
200 | 196 |
} |
201 | 197 |
|
202 | 198 |
public void setFeatureStore(FeatureStore fs) throws DataException { |
203 |
LOG.warn("TODO: DefaultDynamicVectorLegend.useDefaultSymbol");
|
|
199 |
LOG.warn("Not implemented DefaultDynamicVectorLegend.setFeatureStore");
|
|
204 | 200 |
} |
205 | 201 |
|
206 | 202 |
@Override |
... | ... | |
267 | 263 |
public Object call() throws Exception { |
268 | 264 |
MapContextManager manager = MapContextLocator.getMapContextManager(); |
269 | 265 |
|
270 |
// manager.registerLegend(ISingleSymbolLegend.LEGEND_NAME, |
|
271 | 266 |
manager.registerLegend(LEGEND_NAME, |
272 | 267 |
DynamicVectorLegend.class); |
273 | 268 |
|
Also available in: Unified diff