Revision 27724 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dxf/DXFMemoryDriver.java
DXFMemoryDriver.java | ||
---|---|---|
698 | 698 |
theSymbol.setSize(3); |
699 | 699 |
theSymbol.setSizeInPixels(true); |
700 | 700 |
*/ |
701 |
|
|
701 |
Color color=null; |
|
702 |
try{ |
|
703 |
color=AcadColor.getColor(clave.getValue()); |
|
704 |
}catch (ArrayIndexOutOfBoundsException e) { |
|
705 |
color=AcadColor.getColor(255); |
|
706 |
} |
|
702 | 707 |
// jaume, moved to ISymbol |
703 | 708 |
theSymbol = SymbologyFactory. |
704 | 709 |
createDefaultSymbolByShapeType( |
705 | 710 |
getShapeType(), |
706 |
AcadColor.getColor(clave.getValue()));
|
|
711 |
color);
|
|
707 | 712 |
theSymbol.setDescription(clave.toString()); |
708 | 713 |
// Asigna los colores de Autocad a los |
709 | 714 |
// bordes |
710 | 715 |
// de los pol?gonos. |
711 | 716 |
if (theSymbol instanceof IFillSymbol) { |
712 |
((IFillSymbol) theSymbol).getOutline().setLineColor(AcadColor.getColor(clave |
|
713 |
.getValue())); |
|
717 |
((IFillSymbol) theSymbol).getOutline().setLineColor(color); |
|
714 | 718 |
|
715 | 719 |
} |
716 | 720 |
defaultLegend.addSymbol(clave, theSymbol); |
Also available in: Unified diff