Package mgui.io.domestic.shapes
Class Graph3DWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.shapes.Graph3DWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class Graph3DWriter extends FileWriter
Writer for a Graph3DInt object; default is to write using the domestic
XML representation.
- 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 Graph3DWriter()
-
Method Summary
Modifier and Type Method Description java.util.ArrayList<java.lang.Class<?>>
getSupportedObjects()
Returns a list of classes for objects which are supported by this I/O interfaceboolean
write(InterfaceIOOptions options, ProgressUpdater progress_bar)
Writes this object according to the givenoptions
.boolean
writeGraph(Graph3DInt graph, ProgressUpdater progress_bar)
Writes this Graph3DInt to file using its domestic XML representation.Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFailureMessage, getFile, getIOType, getLoaderComplement, getObjectIcon, getOptions, getProgressMessage, getSuccessMessage, 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
-
Graph3DWriter
public Graph3DWriter()
-
-
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:
-
writeGraph
public boolean writeGraph(Graph3DInt graph, ProgressUpdater progress_bar) throws java.io.IOExceptionWrites this Graph3DInt to file using its domestic XML representation.- Parameters:
graph
-- Returns:
- Throws:
java.io.IOException
-
getSupportedObjects
public java.util.ArrayList<java.lang.Class<?>> getSupportedObjects()Description copied from interface:InterfaceIO
Returns a list of classes for objects which are supported by this I/O interface- Specified by:
getSupportedObjects
in interfaceInterfaceIO
- Overrides:
getSupportedObjects
in classFileWriter
- Returns:
-