Package mgui.io.domestic.shapes
Class ShapeModel3DOutputOptions
java.lang.Object
mgui.interfaces.InterfaceOptions
mgui.io.InterfaceIOOptions
mgui.io.standard.xml.XMLOutputOptions
mgui.io.domestic.shapes.ShapeModel3DOutputOptions
- All Implemented Interfaces:
InterfaceObject,NamedObject,TreeObject,CleanableObject,XMLObject
public class ShapeModel3DOutputOptions extends XMLOutputOptions
Specifies options for writing a
ShapeModel3D object to XML.- 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 booleanas_subfoldersbooleangzip_xmljava.util.HashMap<InterfaceShape,java.lang.Boolean>include_shapebooleanoverwrite_existingjava.util.HashMap<InterfaceShape,XMLOutputOptions>shape_xml_optionsjava.lang.Stringshapes_folderFields inherited from class mgui.io.standard.xml.XMLOutputOptions
delimiter, encoding, file, filename, io_options, max_line_size, object, sig_digits, type, writer -
Constructor Summary
Constructors Constructor Description ShapeModel3DOutputOptions()ShapeModel3DOutputOptions(ShapeModel3D model) -
Method Summary
Modifier and Type Method Description booleancontainsByReferenceShapes()Returnstrueif this options contains any shapes to be written by referencejavax.swing.JFileChoosergetFileChooser(java.io.File f)Returns a file chooser appropriate for this options instanceShapeModel3DgetModel()voidsetFromModel(ShapeModel3D model)Set this options from the given model, resetting all valuesvoidsetFromModel(ShapeModel3D model, boolean reset)Set this options from the given model, resetting if necessaryvoidsetFromOptions(ShapeModel3DOutputOptions options)voidsetModel(ShapeModel3D model)Methods inherited from class mgui.io.standard.xml.XMLOutputOptions
getFileChooser, getFiles, setFiles, setObjectMethods 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_xml_options
-
include_shape
-
as_subfolders
public boolean as_subfolders -
shapes_folder
public java.lang.String shapes_folder -
gzip_xml
public boolean gzip_xml -
overwrite_existing
public boolean overwrite_existing
-
-
Constructor Details
-
ShapeModel3DOutputOptions
public ShapeModel3DOutputOptions() -
ShapeModel3DOutputOptions
-
-
Method Details
-
getModel
-
setModel
-
containsByReferenceShapes
public boolean containsByReferenceShapes()Returnstrueif this options contains any shapes to be written by reference- Returns:
-
setFromOptions
-
setFromModel
Set this options from the given model, resetting all values- Parameters:
model-
-
setFromModel
Set this options from the given model, resetting if necessary- Parameters:
model-reset- Whether to reset all values, or preserve existing values
-
getFileChooser
public javax.swing.JFileChooser getFileChooser(java.io.File f)Description copied from class:InterfaceIOOptionsReturns a file chooser appropriate for this options instance- Overrides:
getFileChooserin classXMLOutputOptions- Returns:
-