Package mgui.io.domestic.shapes
Class ShapeXmlWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.shapes.InterfaceShapeWriter
mgui.io.domestic.shapes.ShapeXmlWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class ShapeXmlWriter extends InterfaceShapeWriter
Writes an
InterfaceShape
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 ShapeXmlWriter()
ShapeXmlWriter(java.io.File file)
-
Method Summary
Modifier and Type Method Description boolean
write(InterfaceIOOptions options, ProgressUpdater progress_bar)
Writes this object according to the givenoptions
.boolean
writeShape(InterfaceShape shape, ProgressUpdater progress_bar)
Writes this shape to file using its domestic XML representation.Methods inherited from class mgui.io.domestic.shapes.InterfaceShapeWriter
getSupportedObjects
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
-
ShapeXmlWriter
public ShapeXmlWriter() -
ShapeXmlWriter
public ShapeXmlWriter(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:
-
writeShape
public boolean writeShape(InterfaceShape shape, ProgressUpdater progress_bar) throws java.io.IOExceptionDescription copied from class:InterfaceShapeWriter
Writes this shape to file using its domestic XML representation.- Specified by:
writeShape
in classInterfaceShapeWriter
- Returns:
- Throws:
java.io.IOException
-