Revision 40690 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.labeling.app/org.gvsig.labeling.app.mainplugin/src/main/java/org/gvsig/labeling/placements/LinePlacementConstraints.java
LinePlacementConstraints.java | ||
---|---|---|
81 | 81 |
package org.gvsig.labeling.placements; |
82 | 82 |
|
83 | 83 |
import org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints; |
84 |
import org.gvsig.tools.ToolsLocator; |
|
85 |
import org.gvsig.tools.dynobject.DynStruct; |
|
86 |
import org.gvsig.tools.persistence.PersistenceManager; |
|
84 | 87 |
|
85 | 88 |
/** |
86 | 89 |
* |
... | ... | |
98 | 101 |
setPageOriented(false); |
99 | 102 |
} |
100 | 103 |
|
104 |
public static final String LINE_PLACE_CONSTRAINTS = |
|
105 |
"LINE_PLACE_CONSTRAINTS"; |
|
101 | 106 |
|
107 |
public static void registerPersistent() { |
|
108 |
|
|
109 |
PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
|
110 |
if( manager.getDefinition(LINE_PLACE_CONSTRAINTS) == null ) { |
|
111 |
DynStruct definition = manager.addDefinition( |
|
112 |
LinePlacementConstraints.class, |
|
113 |
LINE_PLACE_CONSTRAINTS, |
|
114 |
LINE_PLACE_CONSTRAINTS +" Persistence definition", |
|
115 |
null, |
|
116 |
null); |
|
117 |
definition.extend(manager.getDefinition( |
|
118 |
AbstractPlacementConstraints.PLACEMENT_CONSTRAINTS_PERSISTENCE_NAME)); |
|
119 |
} |
|
120 |
} |
|
121 |
|
|
102 | 122 |
} |
Also available in: Unified diff