org.openstreetmap.josm.io
Class GpxExporter
java.lang.Object
org.openstreetmap.josm.io.FileExporter
org.openstreetmap.josm.io.GpxExporter
- All Implemented Interfaces:
- MapView.LayerChangeListener
public class GpxExporter
- extends FileExporter
Field Summary |
private static java.lang.String |
warningGpl
|
Method Summary |
boolean |
acceptFile(java.io.File pathname,
Layer layer)
|
private static void |
addDependencies(GpxData data,
javax.swing.JCheckBox author,
javax.swing.JTextField authorName,
javax.swing.JTextField email,
javax.swing.JTextField copyright,
javax.swing.JButton predefined,
javax.swing.JTextField copyrightYear,
javax.swing.JLabel nameLabel,
javax.swing.JLabel emailLabel,
javax.swing.JLabel copyrightLabel,
javax.swing.JLabel copyrightYearLabel,
javax.swing.JLabel warning)
Add all those listeners to handle the enable state of the fields. |
private static void |
enableCopyright(GpxData data,
javax.swing.JTextField copyright,
javax.swing.JButton predefined,
javax.swing.JTextField copyrightYear,
javax.swing.JLabel copyrightLabel,
javax.swing.JLabel copyrightYearLabel,
javax.swing.JLabel warning,
boolean enable)
|
void |
exportData(java.io.File file,
Layer layer)
|
private DataSet |
getCurrentDataSet()
Replies the current dataset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
warningGpl
private static final java.lang.String warningGpl
GpxExporter
public GpxExporter()
acceptFile
public boolean acceptFile(java.io.File pathname,
Layer layer)
- Overrides:
acceptFile
in class FileExporter
exportData
public void exportData(java.io.File file,
Layer layer)
throws java.io.IOException
- Overrides:
exportData
in class FileExporter
- Throws:
java.io.IOException
enableCopyright
private static void enableCopyright(GpxData data,
javax.swing.JTextField copyright,
javax.swing.JButton predefined,
javax.swing.JTextField copyrightYear,
javax.swing.JLabel copyrightLabel,
javax.swing.JLabel copyrightYearLabel,
javax.swing.JLabel warning,
boolean enable)
addDependencies
private static void addDependencies(GpxData data,
javax.swing.JCheckBox author,
javax.swing.JTextField authorName,
javax.swing.JTextField email,
javax.swing.JTextField copyright,
javax.swing.JButton predefined,
javax.swing.JTextField copyrightYear,
javax.swing.JLabel nameLabel,
javax.swing.JLabel emailLabel,
javax.swing.JLabel copyrightLabel,
javax.swing.JLabel copyrightYearLabel,
javax.swing.JLabel warning)
- Add all those listeners to handle the enable state of the fields.
- Parameters:
copyrightYearLabel
- copyrightLabel
- emailLabel
- nameLabel
- warning
-
getCurrentDataSet
private DataSet getCurrentDataSet()
- Replies the current dataset
- Returns:
- the current dataset. null, if no current dataset exists
JOSM