Revision 42439 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/symbol/fill/impl/MarkerFillSymbol.java
MarkerFillSymbol.java | ||
---|---|---|
177 | 177 |
*/ |
178 | 178 |
public class MarkerFillSymbol extends AbstractFillSymbol implements IMarkerFillSymbol { |
179 | 179 |
private static final Logger logger = LoggerFactory.getLogger(MarkerFillSymbol.class); |
180 |
|
|
180 |
|
|
181 | 181 |
public static final String MARK_FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME = |
182 | 182 |
"MarkerFillSymbol"; |
183 | 183 |
private static final String MARKER_SYMBOL = "markerSymbol"; |
... | ... | |
200 | 200 |
if (selectionSymbol == null) { |
201 | 201 |
selectionSymbol = (MarkerFillSymbol) cloneForSelection(); |
202 | 202 |
selectionSymbol.setFillColor(MapContext.getSelectionColor()); |
203 |
} |
|
203 |
}else { |
|
204 |
selectionSymbol.setColor(MapContext.getSelectionColor()); |
|
205 |
} |
|
204 | 206 |
|
205 | 207 |
return selectionSymbol; |
206 | 208 |
} |
... | ... | |
512 | 514 |
} |
513 | 515 |
|
514 | 516 |
public void setCartographicSize(double cartographicSize, Geometry geom) { |
515 |
|
|
517 |
|
|
516 | 518 |
super.setCartographicSize(cartographicSize, geom); |
517 | 519 |
IMarkerSymbol marker = getMarker(); |
518 | 520 |
if (marker!=null) { |
519 | 521 |
marker.setCartographicSize(previousMarkerSize, geom); |
520 | 522 |
} |
521 |
|
|
523 |
|
|
522 | 524 |
super.setCartographicSize(cartographicSize, geom); |
523 | 525 |
|
524 | 526 |
} |
... | ... | |
532 | 534 |
} |
533 | 535 |
double s = super.toCartographicSize(viewPort, dpi, geom); |
534 | 536 |
return s; |
535 |
|
|
537 |
|
|
536 | 538 |
} |
537 |
|
|
538 |
|
|
539 |
|
|
540 |
|
|
539 | 541 |
public Object clone() throws CloneNotSupportedException { |
540 | 542 |
MarkerFillSymbol copy = (MarkerFillSymbol) super.clone(); |
541 | 543 |
|
... | ... | |
555 | 557 |
} |
556 | 558 |
|
557 | 559 |
// FIXME: clone properties |
558 |
|
|
560 |
|
|
559 | 561 |
return copy; |
560 | 562 |
} |
561 | 563 |
|
... | ... | |
613 | 615 |
public Object call() throws Exception { |
614 | 616 |
int[] shapeTypes; |
615 | 617 |
SymbolManager manager = MapContextLocator.getSymbolManager(); |
616 |
|
|
618 |
|
|
617 | 619 |
shapeTypes = |
618 | 620 |
new int[] { Geometry.TYPES.SURFACE, Geometry.TYPES.CIRCLE, |
619 | 621 |
Geometry.TYPES.ELLIPSE, Geometry.TYPES.MULTISURFACE }; |
620 | 622 |
manager.registerMultiLayerSymbol(IFillSymbol.SYMBOL_NAME, |
621 | 623 |
shapeTypes, |
622 | 624 |
MarkerFillSymbol.class); |
623 |
|
|
625 |
|
|
624 | 626 |
return Boolean.TRUE; |
625 | 627 |
} |
626 |
|
|
628 |
|
|
627 | 629 |
} |
628 | 630 |
|
629 | 631 |
|
Also available in: Unified diff