Package mgui.io.domestic.shapes
Class ShapeModel3DWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.standard.xml.XMLWriter
mgui.io.domestic.shapes.ShapeModel3DWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class ShapeModel3DWriter extends XMLWriter
Writes a
ShapeModel3D
object to XML.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message
-
Constructor Summary
Constructors Constructor Description ShapeModel3DWriter()
ShapeModel3DWriter(java.io.File file)
-
Method Summary
Modifier and Type Method Description javax.swing.Icon
getObjectIcon()
Returns theIcon
associated with this object.boolean
write(InterfaceIOOptions options, ProgressUpdater progress_bar)
Writes this object according to the givenoptions
.boolean
writeModel(ShapeModel3DOutputOptions options, ProgressUpdater progress_bar)
Methods inherited from class mgui.io.standard.xml.XMLWriter
writeObject, writeXMLObject
Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFailureMessage, getFile, getIOType, getLoaderComplement, getOptions, getProgressMessage, getSuccessMessage, getSupportedObjects, getTitle, getURL, setFile, setOptions, setURL, toString, write, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ShapeModel3DWriter
public ShapeModel3DWriter() -
ShapeModel3DWriter
public ShapeModel3DWriter(java.io.File file)
-
-
Method Details
-
write
Description copied from class:FileWriter
Writes this object according to the givenoptions
. If loaded object is of typePersistentObject
, this method should also set the file writer and reference URL for the object.- Specified by:
write
in classFileWriter
- Returns:
-
writeModel
public boolean writeModel(ShapeModel3DOutputOptions options, ProgressUpdater progress_bar) throws ShapeIOException- Throws:
ShapeIOException
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObject
Returns theIcon
associated with this object.- Specified by:
getObjectIcon
in interfaceIconObject
- Overrides:
getObjectIcon
in classFileWriter
- Returns:
-