Revision 39130
branches/v2_0_0_prep/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/line/impl/PictureLineSymbol.java | ||
---|---|---|
92 | 92 |
private static final String SELECTION_SYMBOL = "selectionSym"; |
93 | 93 |
private static final String BACKGROUND_IMAGE = "bgImage"; |
94 | 94 |
private static final String BACKGROUND_SELECTION_IMAGE = "bgSelImage"; |
95 |
private static final String WIDTH = "width"; |
|
95 | 96 |
|
96 | 97 |
transient private PictureLineSymbol selectionSym; |
97 | 98 |
private double width; |
... | ... | |
383 | 384 |
this.bgImage = (BackgroundFileStyle) state.get(BACKGROUND_IMAGE); |
384 | 385 |
this.bgSelImage = |
385 | 386 |
(BackgroundFileStyle) state.get(BACKGROUND_SELECTION_IMAGE); |
387 |
this.setLineWidth(state.getDouble(WIDTH)); |
|
386 | 388 |
} |
387 | 389 |
|
388 | 390 |
public void saveToState(PersistentState state) throws PersistenceException { |
... | ... | |
394 | 396 |
state.set(SELECTION_SYMBOL, this.getSymbolForSelection()); |
395 | 397 |
state.set(BACKGROUND_IMAGE, this.bgImage); |
396 | 398 |
state.set(BACKGROUND_SELECTION_IMAGE, this.bgSelImage); |
399 |
state.set(WIDTH, width); |
|
397 | 400 |
} |
398 | 401 |
|
399 | 402 |
public static class RegisterPersistence implements Callable { |
... | ... | |
419 | 422 |
.setClassOfValue(BackgroundFileStyle.class).setMandatory(false); |
420 | 423 |
definition.addDynFieldObject(BACKGROUND_SELECTION_IMAGE) |
421 | 424 |
.setClassOfValue(BackgroundFileStyle.class).setMandatory(false); |
425 |
|
|
426 |
definition.addDynFieldObject(WIDTH) |
|
427 |
.setClassOfValue(Double.class).setMandatory(true); |
|
422 | 428 |
} |
423 | 429 |
return Boolean.TRUE; |
424 | 430 |
} |
Also available in: Unified diff