Revision 30011 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/layout/geometryadapters/CircleAdapter.java
CircleAdapter.java | ||
---|---|---|
53 | 53 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
54 | 54 |
import org.gvsig.fmap.geom.exception.CreateGeometryException; |
55 | 55 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
56 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ILineSymbol; |
|
56 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
|
57 |
import org.gvsig.fmap.mapcontext.MapContextManager; |
|
57 | 58 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
58 |
import org.gvsig.fmap.mapcontext.rendering.symbols.SimpleLineSymbol;
|
|
59 |
import org.gvsig.fmap.mapcontext.rendering.symbols.SymbologyFactory;
|
|
59 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol;
|
|
60 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.impl.SimpleLineSymbol;
|
|
60 | 61 |
import org.slf4j.Logger; |
61 | 62 |
import org.slf4j.LoggerFactory; |
62 | 63 |
|
63 |
|
|
64 |
|
|
65 |
|
|
66 | 64 |
/** |
67 | 65 |
* DOCUMENT ME! |
68 | 66 |
* |
... | ... | |
73 | 71 |
private static final Logger logger = LoggerFactory.getLogger(CircleAdapter.class); |
74 | 72 |
private Point2D pointPosition = new Point2D.Double(); |
75 | 73 |
private AffineTransform identity = new AffineTransform(); |
74 |
|
|
75 |
private MapContextManager mapContextManager = MapContextLocator |
|
76 |
.getMapContextManager(); |
|
77 |
|
|
76 | 78 |
/** |
77 | 79 |
* DOCUMENT ME! |
78 | 80 |
* |
... | ... | |
118 | 120 |
|
119 | 121 |
Geometry shapeAux=getGeometry(at); |
120 | 122 |
|
121 |
ILineSymbol symbol = SymbologyFactory.createDefaultLineSymbol(); |
|
123 |
ILineSymbol symbol = (ILineSymbol) mapContextManager.createSymbol( |
|
124 |
ILineSymbol.SYMBOL_NAME); |
|
122 | 125 |
SimpleLineSymbol redOutline = new SimpleLineSymbol(); |
123 | 126 |
redOutline.setLineColor(Color.red); |
124 | 127 |
symbol.draw(g, identity, shapeAux, null); |
Also available in: Unified diff