Package mgui.io.domestic.shapes
Class SurfaceOutputOptions
java.lang.Object
mgui.interfaces.InterfaceOptions
mgui.io.InterfaceIOOptions
mgui.io.domestic.shapes.SurfaceOutputOptions
- All Implemented Interfaces:
InterfaceObject,NamedObject,TreeObject,CleanableObject,XMLObject
- Direct Known Subclasses:
CaretSurfaceOutOptions,FreesurferSurfaceOutputOptions,GiftiOutputOptions,StlOutputOptions
public class SurfaceOutputOptions extends InterfaceIOOptions
Standard options for writing a surface to file.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType -
Field Summary
Fields Modifier and Type Field Description java.io.File[]filesMesh3DIntmeshjava.lang.Stringnumber_format -
Constructor Summary
Constructors Constructor Description SurfaceOutputOptions() -
Method Summary
Modifier and Type Method Description InterfaceDisplayPanelgetDisplayPanel()javax.swing.JFileChoosergetFileChooser()Returns a file chooser appropriate for this options instancejavax.swing.JFileChoosergetFileChooser(java.io.File f)Returns a file chooser appropriate for this options instancejava.io.File[]getFiles()Returns the list of files associated with this options instancejava.lang.StringgetXML(int tab)Returns this object's XML representation as a single string.protected java.lang.StringgetXMLHeader(int tab)voidhandleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)Handles the start of an XML element.voidsetDisplayPanel(InterfaceDisplayPanel p)voidsetFiles(java.io.File[] files)Sets the list of files associated with this options instancevoidsetObject(InterfaceObject obj)Sets the object on which to perform an I/O operationMethods inherited from class mgui.io.InterfaceIOOptions
getDTD, getLocalName, getShortXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLString, setFromComplementaryOptions, writeXML, writeXML, writeXMLMethods inherited from class mgui.interfaces.InterfaceOptions
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
files
public java.io.File[] files -
mesh
-
number_format
public java.lang.String number_format
-
-
Constructor Details
-
SurfaceOutputOptions
public SurfaceOutputOptions()
-
-
Method Details
-
getXMLHeader
protected java.lang.String getXMLHeader(int tab) -
getXML
public java.lang.String getXML(int tab)Description copied from interface:XMLObjectReturns this object's XML representation as a single string. NOTE: this is not feasible for larger objects and containers, thus may not be implemented for these objects. Use theXMLObject.writeXML(int,java.io.Writer,mgui.io.standard.xml.XMLOutputOptions,mgui.interfaces.ProgressUpdater)functions to write larger objects to file.- Specified by:
getXMLin interfaceXMLObject- Overrides:
getXMLin classInterfaceIOOptions- Parameters:
tab- The number of tabs to place before the opening XML wrapper- Returns:
-
handleXMLElementStart
public void handleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type) throws org.xml.sax.SAXExceptionDescription copied from interface:XMLObjectHandles the start of an XML element.- Specified by:
handleXMLElementStartin interfaceXMLObject- Overrides:
handleXMLElementStartin classInterfaceIOOptions- Parameters:
localName- Local name of the elementattributes- Set of element attributestype- TheXMLTypeof this element- Throws:
org.xml.sax.SAXException
-
setDisplayPanel
-
getDisplayPanel
-
getFiles
public java.io.File[] getFiles()Description copied from class:InterfaceIOOptionsReturns the list of files associated with this options instance- Specified by:
getFilesin classInterfaceIOOptions- Returns:
-
setFiles
public void setFiles(java.io.File[] files)Description copied from class:InterfaceIOOptionsSets the list of files associated with this options instance- Specified by:
setFilesin classInterfaceIOOptions
-
getFileChooser
public javax.swing.JFileChooser getFileChooser()Description copied from class:InterfaceIOOptionsReturns a file chooser appropriate for this options instance- Specified by:
getFileChooserin classInterfaceIOOptions- Returns:
-
getFileChooser
public javax.swing.JFileChooser getFileChooser(java.io.File f)Description copied from class:InterfaceIOOptionsReturns a file chooser appropriate for this options instance- Specified by:
getFileChooserin classInterfaceIOOptions- Returns:
-
setObject
Description copied from class:InterfaceIOOptionsSets the object on which to perform an I/O operation- Specified by:
setObjectin classInterfaceIOOptions- Throws:
java.lang.ClassCastException- ifobjis the wrong class for this options instance
-