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 boolean
as_subfolders
boolean
gzip_xml
java.util.HashMap<InterfaceShape,java.lang.Boolean>
include_shape
boolean
overwrite_existing
java.util.HashMap<InterfaceShape,XMLOutputOptions>
shape_xml_options
java.lang.String
shapes_folder
Fields 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 boolean
containsByReferenceShapes()
Returnstrue
if this options contains any shapes to be written by referencejavax.swing.JFileChooser
getFileChooser(java.io.File f)
Returns a file chooser appropriate for this options instanceShapeModel3D
getModel()
void
setFromModel(ShapeModel3D model)
Set this options from the given model, resetting all valuesvoid
setFromModel(ShapeModel3D model, boolean reset)
Set this options from the given model, resetting if necessaryvoid
setFromOptions(ShapeModel3DOutputOptions options)
void
setModel(ShapeModel3D model)
Methods inherited from class mgui.io.standard.xml.XMLOutputOptions
getFileChooser, getFiles, setFiles, setObject
Methods inherited from class mgui.io.InterfaceIOOptions
getDTD, getLocalName, getShortXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, setFromComplementaryOptions, writeXML, writeXML, writeXML
Methods inherited from class mgui.interfaces.InterfaceOptions
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode
Methods 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()Returnstrue
if 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:InterfaceIOOptions
Returns a file chooser appropriate for this options instance- Overrides:
getFileChooser
in classXMLOutputOptions
- Returns:
-