Revision 30011 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/layout/fframes/FFrameLegend.java
FFrameLegend.java | ||
---|---|---|
60 | 60 |
import org.gvsig.compat.print.PrintAttributes; |
61 | 61 |
import org.gvsig.fmap.dal.exception.ReadException; |
62 | 62 |
import org.gvsig.fmap.geom.Geometry; |
63 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
|
64 |
import org.gvsig.fmap.mapcontext.MapContextManager; |
|
63 | 65 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
64 | 66 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
65 | 67 |
import org.gvsig.fmap.mapcontext.layers.operations.Classifiable; |
66 | 68 |
import org.gvsig.fmap.mapcontext.layers.operations.IHasImageLegend; |
67 |
import org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend; |
|
68 | 69 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
69 | 70 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ITextSymbol; |
70 | 71 |
import org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException; |
71 |
import org.gvsig.fmap.mapcontext.rendering.symbols.SymbologyFactory;
|
|
72 |
import org.gvsig.symbology.fmap.mapcontext.rendering.legend.IClassifiedLegend;
|
|
72 | 73 |
import org.gvsig.utils.XMLEntity; |
73 | 74 |
|
74 | 75 |
|
... | ... | |
92 | 93 |
private ArrayList nameLayers=new ArrayList(); |
93 | 94 |
private ArrayList areVisible=new ArrayList(); |
94 | 95 |
private PrintAttributes properties; |
96 |
|
|
97 |
private MapContextManager mapContextManager = MapContextLocator |
|
98 |
.getMapContextManager(); |
|
95 | 99 |
|
96 | 100 |
public FFrameLegend() { |
97 | 101 |
|
... | ... | |
453 | 457 |
} catch (SymbolDrawingException e) { |
454 | 458 |
if (e.getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS) { |
455 | 459 |
try { |
456 |
SymbologyFactory.getWarningSymbol( |
|
457 |
SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS, |
|
458 |
symbol2d.getDescription(), |
|
459 |
SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).drawInsideRectangle(g, null, rectangle,null); |
|
460 |
mapContextManager |
|
461 |
.getWarningSymbol( |
|
462 |
SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS, |
|
463 |
symbol2d.getDescription(), |
|
464 |
SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS) |
|
465 |
.drawInsideRectangle(g, null, rectangle, null); |
|
460 | 466 |
} catch (SymbolDrawingException e1) { |
461 | 467 |
// IMPOSSIBLE TO REACH THIS |
462 | 468 |
} |
Also available in: Unified diff