Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dgn/DgnMemoryDriver.java
DgnMemoryDriver.java | ||
---|---|---|
55 | 55 |
import java.awt.geom.AffineTransform; |
56 | 56 |
import java.awt.geom.Arc2D; |
57 | 57 |
import java.io.File; |
58 |
import java.io.IOException; |
|
59 | 58 |
import java.util.ArrayList; |
60 | 59 |
|
61 |
import com.hardcode.gdbms.engine.data.driver.DriverException; |
|
60 |
import com.hardcode.gdbms.driver.exceptions.InitializeDriverException; |
|
61 |
import com.hardcode.gdbms.driver.exceptions.OpenDriverException; |
|
62 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
63 |
import com.hardcode.gdbms.driver.exceptions.WriteDriverException; |
|
62 | 64 |
import com.hardcode.gdbms.engine.data.driver.ObjectDriver; |
63 | 65 |
import com.hardcode.gdbms.engine.data.edition.DataWare; |
64 | 66 |
import com.hardcode.gdbms.engine.values.IntValue; |
... | ... | |
103 | 105 |
/** |
104 | 106 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#open(java.io.File) |
105 | 107 |
*/ |
106 |
public void open(File f) throws IOException {
|
|
108 |
public void open(File f) throws OpenDriverException {
|
|
107 | 109 |
m_Fich = f; |
108 | 110 |
} |
109 | 111 |
|
110 | 112 |
/** |
111 | 113 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#initialize() |
112 | 114 |
*/ |
113 |
public void initialize() throws IOException {
|
|
115 |
public void initialize() throws InitializeDriverException {
|
|
114 | 116 |
float heightText = 10; |
115 | 117 |
|
116 | 118 |
attr.setLoadedInMemory(true); |
... | ... | |
505 | 507 |
defaultLegend = LegendFactory.createVectorialUniqueValueLegend(getShapeType()); |
506 | 508 |
defaultLegend.setFieldName("Color"); |
507 | 509 |
defaultLegend.setLabelField("Text"); |
508 |
FSymbol myDefaultSymbol = new FSymbol(getShapeType());
|
|
510 |
FSymbol myDefaultSymbol = new FSymbol(getShapeType()); |
|
509 | 511 |
myDefaultSymbol.setShapeVisible(false); |
510 | 512 |
myDefaultSymbol.setFontSizeInPixels(false); |
511 | 513 |
myDefaultSymbol.setFont(new Font("SansSerif",Font.PLAIN, 9)); |
... | ... | |
514 | 516 |
myDefaultSymbol.setStyle(FConstant.SYMBOL_STYLE_DGNSPECIAL); |
515 | 517 |
myDefaultSymbol.setSize(3); |
516 | 518 |
myDefaultSymbol.setSizeInPixels(true); |
517 |
|
|
519 |
|
|
518 | 520 |
defaultLegend.setDefaultSymbol(myDefaultSymbol); |
519 | 521 |
|
520 | 522 |
defaultLegend.setLabelHeightField("HeightText"); |
... | ... | |
556 | 558 |
defaultLegend.addSymbol(clave, theSymbol); |
557 | 559 |
} |
558 | 560 |
} // for |
559 |
} catch (DriverException e) { |
|
560 |
e.printStackTrace(); |
|
561 |
throw new IOException( |
|
562 |
"Error al poner la leyenda por defecto en el DGN"); |
|
561 |
} catch (ReadDriverException e) { |
|
562 |
throw new InitializeDriverException(getName(),e); |
|
563 | 563 |
} |
564 | 564 |
} |
565 | 565 |
|
... | ... | |
603 | 603 |
/** |
604 | 604 |
* @see com.hardcode.gdbms.engine.data.driver.ObjectDriver#getPrimaryKeys() |
605 | 605 |
*/ |
606 |
public int[] getPrimaryKeys() throws DriverException { |
|
606 |
public int[] getPrimaryKeys() throws ReadDriverException {
|
|
607 | 607 |
return null; |
608 | 608 |
} |
609 | 609 |
|
610 | 610 |
/** |
611 | 611 |
* @see com.hardcode.gdbms.engine.data.driver.ObjectDriver#write(com.hardcode.gdbms.engine.data.edition.DataWare) |
612 | 612 |
*/ |
613 |
public void write(DataWare arg0) throws DriverException { |
|
613 |
public void write(DataWare arg0) throws WriteDriverException {
|
|
614 | 614 |
// TODO Auto-generated method stub |
615 | 615 |
|
616 | 616 |
} |
... | ... | |
618 | 618 |
/* (non-Javadoc) |
619 | 619 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#close() |
620 | 620 |
*/ |
621 |
public void close() throws IOException {
|
|
621 |
public void close() { |
|
622 | 622 |
// TODO Auto-generated method stub |
623 | 623 |
|
624 | 624 |
} |
Also available in: Unified diff