|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.export.IlvShapeExporter
public class IlvShapeExporter
A IlvMapExporter specialized in exporting shape files.
This class is supposed to be used with the IlvMapExportManager
and the IlvMapExportDialog classes.
exportBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
IlvMapExportDialog exportDialog = new IlvMapExportDialog(view);
exportDialog.registerVectorExporter(new IlvShapeExporter());
exportDialog.setVisible(true);
}
}
| Constructor Summary | |
|---|---|
IlvShapeExporter()
Constructs a IlvShapeExporter |
|
| Method Summary | |
|---|---|
void |
exportFeature(IlvMapFeature feature,
IlvMapLayer mapLayer)
Export one IlvMapFeature |
void |
finishExport()
This method is called by the IlvMapExportManager when all features are exported. |
String |
getExportDirectory()
Returns the directory where shape files will be written. |
void |
initExport(IlvMapLayer[] mapLayers)
Prepare this exporter to export a collection of IlvMapFeature objects. |
boolean |
isConcatParentLayerName()
Tells if this exporter concatenates parent layer name when creating filenames when exporting a layer. |
boolean |
isOverwriteFiles()
Tells if this exporter is overwriting existing files. |
boolean |
isWriteDBF()
Returns whether DBF file are written along with SHP files or not. |
void |
setConcatParentLayerName(boolean concatParentLayerName)
Tells this exported if it should concatenate parent layer name when creating filenames when exporting a layer. |
void |
setExportDirectory(String exportDirectory)
Sets the directory where shape files will be written. |
void |
setOverwriteFiles(boolean overwriteFiles)
Tells this exporter if it should overwrite files. |
void |
setWriteDBF(boolean writeDBF)
Sets whether DBF file are written along with SHP files or not. |
void |
showConfigurationDialog(JDialog parent)
Shows a configuration dialog for this exporter |
String |
toString()
Returns A String describing this exporter (displayable in a combo box in the maps exporter GUI) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvShapeExporter()
IlvShapeExporter
| Method Detail |
|---|
public String toString()
toString in interface IlvMapExportManager.IlvMapExportertoString in class ObjectIlvMapExportManager.IlvMapExporter.toString()
public void exportFeature(IlvMapFeature feature,
IlvMapLayer mapLayer)
IlvMapFeature
exportFeature in interface IlvMapExportManager.IlvMapExporterfeature - the IlvMapFeature to export.mapLayer - the IlvMapLayer containing the IlvMapFeature in parameterIlvMapExportManager.IlvMapExporter.exportFeature(ilog.views.maps.IlvMapFeature, ilog.views.maps.beans.IlvMapLayer)public void initExport(IlvMapLayer[] mapLayers)
IlvMapFeature objects.
initExport in interface IlvMapExportManager.IlvMapExportermapLayers - an array of IlvMapLayer whose objects are going to be exported through the
exportFeature method.IlvMapExportManager.IlvMapExporter.initExport(ilog.views.maps.beans.IlvMapLayer[])public void finishExport()
IlvMapExportManager when all features are exported. This method could close
opened file input streams, for instance.
finishExport in interface IlvMapExportManager.IlvMapExporterIlvMapExportManager.IlvMapExporter.finishExport()public void showConfigurationDialog(JDialog parent)
showConfigurationDialog in interface IlvMapExportManager.IlvMapExporterparent - the JDialog that should be used as a parent when displaying a sub dialogIlvMapExportManager.IlvMapExporter.showConfigurationDialog(javax.swing.JDialog)public boolean isConcatParentLayerName()
true if it concatenates and false otherwise.public void setConcatParentLayerName(boolean concatParentLayerName)
concatParentLayerName - true if it should concatenate and false otherwise.public boolean isOverwriteFiles()
true if overwriting existing files and false otherwise.public void setOverwriteFiles(boolean overwriteFiles)
overwriteFiles - true to overwrite files, false otherwise.public String getExportDirectory()
public void setExportDirectory(String exportDirectory)
exportDirectory - the directory where to writepublic boolean isWriteDBF()
public void setWriteDBF(boolean writeDBF)
writeDBF - true to write DBF files.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||