Revision 47790 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.labeling.app/org.gvsig.labeling.app.mainplugin/src/main/java/org/gvsig/labeling/symbol/CharacterMarkerSymbol.java
CharacterMarkerSymbol.java | ||
---|---|---|
58 | 58 |
import org.gvsig.fmap.geom.GeometryLocator; |
59 | 59 |
import org.gvsig.fmap.geom.GeometryManager; |
60 | 60 |
import org.gvsig.fmap.geom.primitive.Envelope; |
61 |
import org.gvsig.fmap.mapcontext.MapContext; |
|
62 | 61 |
import org.gvsig.fmap.mapcontext.ViewPort; |
63 | 62 |
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport; |
64 | 63 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
... | ... | |
69 | 68 |
import org.gvsig.tools.ToolsLocator; |
70 | 69 |
import org.gvsig.tools.dynobject.DynStruct; |
71 | 70 |
import org.gvsig.tools.persistence.PersistenceManager; |
72 |
import static org.gvsig.tools.persistence.PersistenceManager.PERSISTENCE_NAMESPACE; |
|
73 | 71 |
import org.gvsig.tools.persistence.PersistentState; |
74 | 72 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
75 | 73 |
import org.gvsig.tools.task.Cancellable; |
... | ... | |
161 | 159 |
} |
162 | 160 |
|
163 | 161 |
@Override |
164 |
public ISymbol getSymbolForSelection() { |
|
162 |
public ISymbol getSymbolForSelection(Color selectionColor) {
|
|
165 | 163 |
if (selectionSymbol == null) { |
166 | 164 |
selectionSymbol = (ISymbol) LabelClassUtils.clone(this); |
167 |
selectionSymbol.setColor(MapContext.getSelectionColor());
|
|
165 |
selectionSymbol.setColor(selectionColor);
|
|
168 | 166 |
} else { |
169 |
selectionSymbol.setColor(MapContext.getSelectionColor());
|
|
167 |
selectionSymbol.setColor(selectionColor);
|
|
170 | 168 |
} |
171 | 169 |
if (selectionSymbol instanceof CartographicSupport) { |
172 | 170 |
((CartographicSupport) selectionSymbol).setUnit(this.getUnit()); |
... | ... | |
176 | 174 |
} |
177 | 175 |
|
178 | 176 |
|
177 |
@Override |
|
179 | 178 |
public void draw(Graphics2D g, |
180 | 179 |
AffineTransform affineTransform, Geometry geom, |
181 | 180 |
Feature feat, Cancellable cancel, Rectangle r) { |
... | ... | |
285 | 284 |
// return size; |
286 | 285 |
// } |
287 | 286 |
|
287 |
@Override |
|
288 | 288 |
public void setSize(double size) { |
289 | 289 |
super.setSize(size); |
290 | 290 |
//NOTE: No hay que llamar al setFont |
... | ... | |
399 | 399 |
} |
400 | 400 |
|
401 | 401 |
|
402 |
@Override |
|
402 | 403 |
public Object clone() throws CloneNotSupportedException { |
403 | 404 |
return LabelClassUtils.clone(this); |
404 | 405 |
} |
... | ... | |
509 | 510 |
// } |
510 | 511 |
|
511 | 512 |
|
513 |
@Override |
|
512 | 514 |
public void print(Graphics2D g, AffineTransform at, Geometry geom, |
513 | 515 |
PrintAttributes properties) { |
514 | 516 |
|
... | ... | |
587 | 589 |
// color = co; |
588 | 590 |
// } |
589 | 591 |
|
592 |
@Override |
|
590 | 593 |
public void setAlpha(int a) { |
591 | 594 |
alpha = a; |
592 | 595 |
} |
... | ... | |
601 | 604 |
|
602 | 605 |
// ========================================= |
603 | 606 |
|
607 |
@Override |
|
604 | 608 |
public void loadFromState(PersistentState state) throws PersistenceException { |
605 | 609 |
|
606 | 610 |
super.loadFromState(state); |
... | ... | |
641 | 645 |
this.unicode = state.getInt("unicode"); |
642 | 646 |
} |
643 | 647 |
|
648 |
@Override |
|
644 | 649 |
public void saveToState(PersistentState state) throws PersistenceException { |
645 | 650 |
|
646 | 651 |
super.saveToState(state); |
Also available in: Unified diff