Package mgui.io.domestic.shapes
Class ShapeDataInputOptions
java.lang.Object
mgui.interfaces.InterfaceOptions
mgui.io.InterfaceIOOptions
mgui.io.domestic.shapes.ShapeDataInputOptions
- All Implemented Interfaces:
InterfaceObject,NamedObject,TreeObject,CleanableObject,XMLObject
public class ShapeDataInputOptions extends InterfaceIOOptions
Options for loading vertex-wise data into a shape. Allows multiple files with multiple columns.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShapeDataInputOptions.FormatNested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType -
Field Summary
Fields Modifier and Type Field Description booleanas_one_columnjava.lang.String[][]columnsjava.io.File[]filesShapeDataInputOptions.Format[][]formatsboolean[][]load_columnjava.lang.String[]namesInterfaceShapeshapebooleanskip_header -
Constructor Summary
Constructors Constructor Description ShapeDataInputOptions() -
Method Summary
Modifier and Type Method Description 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.String[]getNames()InterfaceShapegetShape()voidsetFiles(java.io.File[] files)Sets the list of files associated with this options instancevoidsetNames(java.lang.String[] names)voidsetObject(InterfaceObject obj)Sets the object on which to perform an I/O operationvoidsetShape(Shape3DInt shape)Methods inherited from class mgui.io.InterfaceIOOptions
getDTD, getLocalName, getShortXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, 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
-
shape
-
names
public java.lang.String[] names -
files
public java.io.File[] files -
columns
public java.lang.String[][] columns -
load_column
public boolean[][] load_column -
formats
-
skip_header
public boolean skip_header -
as_one_column
public boolean as_one_column
-
-
Constructor Details
-
ShapeDataInputOptions
public ShapeDataInputOptions()
-
-
Method Details
-
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
-
getNames
public java.lang.String[] getNames() -
setNames
public void setNames(java.lang.String[] names) -
getShape
-
setShape
-
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
-