Revision 11853 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dxf/DXFMemoryDriver.java
DXFMemoryDriver.java | ||
---|---|---|
639 | 639 |
defaultLegend = LegendFactory |
640 | 640 |
.createVectorialUniqueValueLegend(getShapeType()); |
641 | 641 |
defaultLegend.setFieldNames(new String[] {"Color"}); |
642 |
defaultLegend.setLabelField("Text"); |
|
643 | 642 |
|
644 |
/* |
|
645 |
jaume, replaced FSymbol by ISymbol |
|
646 |
FSymbol myDefaultSymbol = new FSymbol(getShapeType()); |
|
647 |
myDefaultSymbol.setShapeVisible(false); |
|
648 |
myDefaultSymbol.setFontSizeInPixels(false); |
|
649 |
myDefaultSymbol.setFont(new Font("SansSerif",Font.PLAIN, 9)); |
|
650 |
myDefaultSymbol.setFontColor(Color.BLACK); |
|
651 |
myDefaultSymbol.setFontSize(heightText); |
|
652 |
myDefaultSymbol.setStyle(FConstant.SYMBOL_STYLE_DGNSPECIAL); |
|
653 |
myDefaultSymbol.setSize(3); |
|
654 |
myDefaultSymbol.setSizeInPixels(true); |
|
655 |
*/ |
|
656 |
|
|
657 | 643 |
Logger.getAnonymousLogger().info("DXFMemoryDriver: should check if this is a text symbol"); |
658 | 644 |
ISymbol myDefaultSymbol = SymbologyFactory. |
659 | 645 |
createDefaultSymbolByShapeType(getShapeType(), Color.BLACK); |
660 | 646 |
|
661 | 647 |
defaultLegend.setDefaultSymbol(myDefaultSymbol); |
662 | 648 |
|
663 |
defaultLegend.setLabelHeightField("HeightText"); |
|
664 |
defaultLegend.setLabelRotationField("RotationText"); |
|
665 |
|
|
666 | 649 |
ObjectDriver rs = this; |
667 | 650 |
IntValue clave; |
668 | 651 |
ISymbol theSymbol = null; |
Also available in: Unified diff