Revision 33331 branches/v2_0_0_prep/extensions/org.gvsig.symbology/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/style/ArrowDecoratorStyle.java
ArrowDecoratorStyle.java | ||
---|---|---|
53 | 53 |
* @author 2009- <a href="cordinyana@gvsig.org">C?sar Ordi?ana</a> - gvSIG team |
54 | 54 |
*/ |
55 | 55 |
public class ArrowDecoratorStyle extends AbstractStyle { |
56 |
public static final String ARROR_DECORATOR_STYLE_DYNCLASS_NAME = "ArrowDecoratorStyle";
|
|
56 |
public static final String ARROR_DECORATOR_STYLE_PERSISTENCE_DEFINITION_NAME = "ArrowDecoratorStyle";
|
|
57 | 57 |
|
58 | 58 |
private static final String FIELD_FLIP_ALL = "flipAll"; |
59 | 59 |
private static final String FIELD_FLIP_FIRST = "flipFirst"; |
... | ... | |
325 | 325 |
} |
326 | 326 |
|
327 | 327 |
public static void registerPersistence() { |
328 |
// Add the ArrowDecoratorStyle DynClass definition. |
|
329 | 328 |
PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
330 | 329 |
DynStruct definition = manager.addDefinition( |
331 | 330 |
ArrowDecoratorStyle.class, |
332 |
ARROR_DECORATOR_STYLE_DYNCLASS_NAME,
|
|
333 |
ARROR_DECORATOR_STYLE_DYNCLASS_NAME+" Persistence definition",
|
|
331 |
ARROR_DECORATOR_STYLE_PERSISTENCE_DEFINITION_NAME,
|
|
332 |
ARROR_DECORATOR_STYLE_PERSISTENCE_DEFINITION_NAME+" Persistence definition",
|
|
334 | 333 |
null, |
335 | 334 |
null |
336 | 335 |
); |
337 | 336 |
|
338 | 337 |
// Extend the Style base definition |
339 |
definition.extend(STYLE_DYNCLASS_NAME);
|
|
338 |
definition.extend(STYLE_PERSISTENCE_DEFINITION_NAME);
|
|
340 | 339 |
|
341 | 340 |
// Arrow marker count |
342 | 341 |
definition.addDynFieldInt(FIELD_ARROW_MARKER_COUNT).setMandatory(true); |
... | ... | |
347 | 346 |
// Follow line angles |
348 | 347 |
definition.addDynFieldBoolean(FIELD_FOLLOW_LINE_ANGLE).setMandatory(true); |
349 | 348 |
// Marker |
350 |
definition.addDynFieldObject(FIELD_MARKER).setMandatory(true); |
|
349 |
definition.addDynFieldObject(FIELD_MARKER) |
|
350 |
.setClassOfValue(IMarkerSymbol.class) |
|
351 |
.setMandatory(true); |
|
351 | 352 |
|
352 | 353 |
} |
353 | 354 |
|
Also available in: Unified diff