Package mgui.io.domestic.shapes
Class InterfaceShapeWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.shapes.InterfaceShapeWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
- Direct Known Subclasses:
ShapeXmlWriter
public abstract class InterfaceShapeWriter extends FileWriter
General writer for an
InterfaceShape
object. The default implementation writes
shapes using their domestic XML representations (these must be implemented). See also
XMLObject.- 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 InterfaceShapeWriter()
-
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 interfaceabstract boolean
writeShape(InterfaceShape shape, ProgressUpdater progress_bar)
Writes this shape 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, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
InterfaceShapeWriter
public InterfaceShapeWriter()
-
-
Method Details
-
writeShape
public abstract boolean writeShape(InterfaceShape shape, ProgressUpdater progress_bar) throws java.io.IOExceptionWrites this shape 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:
-