public class IlvSDOExporter extends Object implements IlvMapExportManager.IlvMapExporter
IlvMapExporter specialized in exporting maps to Oracle SDO database.
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 IlvSDOExporter());
exportDialog.setVisible(true);
}
}
| Constructor and Description |
|---|
IlvSDOExporter()
Creates a new
IlvSDOExporter. |
| Modifier and Type | Method and Description |
|---|---|
void |
exportFeature(IlvMapFeature feature,
IlvMapLayer mapLayer)
Export one
IlvMapFeature |
void |
finishExport()
This method is called by the
IlvMapExportManager when all features are exported. |
SDOConnectionPanel |
getConnectionPanel()
Returns the Oracle connection panel.
|
String |
getDialogTitle()
Returns the parameter settings dialog box title.
|
String |
getSettingsLabel()
Returns the label summarizing parameter settings for this exporter.
|
void |
initExport(IlvMapLayer[] mapLayers)
Prepare this exporter to export a collection of
IlvMapFeature objects. |
void |
setConnection(IlvSDOConnection sdoConnection)
Sets the current connection to be used by this
IlvSDOExporter
instance. |
void |
setSRID(Long srID)
Changes the coordinate system for all export.
|
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)
|
public String toString()
toString in interface IlvMapExportManager.IlvMapExportertoString in class Objectpublic SDOConnectionPanel getConnectionPanel()
public void exportFeature(IlvMapFeature feature, IlvMapLayer mapLayer)
IlvMapFeatureexportFeature in interface IlvMapExportManager.IlvMapExporterfeature - the IlvMapFeature to export.mapLayer - the IlvMapLayer containing the IlvMapFeature in parameterpublic void setConnection(IlvSDOConnection sdoConnection)
IlvSDOExporter
instance.sdoConnection - The connection.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.public void finishExport()
IlvMapExportManager when all features are exported. This method could close
opened file input streams, for instance.finishExport in interface IlvMapExportManager.IlvMapExporterpublic void setSRID(Long srID)
srID - The id of the Coordinate System as described in the CS_SRS table. This id will be saved
in the [USER_]SDO_GEOM_METADATA in the SRID column. You can pass it as null.public void showConfigurationDialog(JDialog parent)
showConfigurationDialog in interface IlvMapExportManager.IlvMapExporterparent - the JDialog that should be used as a parent when displaying a sub dialogpublic String getDialogTitle()
getDialogTitle in interface IlvMapExportManager.IlvMapExporterpublic String getSettingsLabel()
getSettingsLabel in interface IlvMapExportManager.IlvMapExporter© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.