/**
  * Preserve this ImageExportOptions in XML.
  *
  * @param node An XML context in which to save.
  */
 public void write(XmlNode node) {
   node = node.addChild(ExportOptionsTag);
   node.setAttribute(TypeTag, m_imageType.getName());
   save(node);
   if (m_exportFile != null) {
     node.setAttribute(FileTag, m_exportFile.getAbsolutePath());
   }
 }
Пример #2
0
 void save(XmlNode node) {
   layerControls.save(node);
   invertRegionSwitch.save(node);
   colorControls.save(node);
   node.setAttribute(TabIndexTag, Integer.toString(tabPane.getSelectedIndex()));
 }