Package mgui.io.domestic.shapes
Class ShapeXmlLoader
java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.shapes.InterfaceShapeLoader
mgui.io.domestic.shapes.ShapeXmlLoader
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class ShapeXmlLoader extends InterfaceShapeLoader
Loader for an InterfaceShape stored in domestic XML format.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.FileLoader
dataFile, dataURL, options
-
Constructor Summary
Constructors Constructor Description ShapeXmlLoader()
ShapeXmlLoader(java.io.File dataFile)
-
Method Summary
Modifier and Type Method Description InterfaceShape
loadShape(ShapeInputOptions options, ProgressUpdater progress_bar)
Loads a shape with the givenoptions
.protected InterfaceShape
loadShapeBlocking(ShapeInputOptions options, ProgressUpdater progress_bar)
Methods inherited from class mgui.io.domestic.shapes.InterfaceShapeLoader
load, loadObject
Methods inherited from class mgui.io.FileLoader
getComplementIOType, getFailureMessage, getFile, getIOType, getObjectIcon, getOptions, getProgressMessage, getSuccessMessage, getSupportedObjects, getTitle, getWriterComplement, load, load, loadObject, loadObject, loadObject, setFile, setOptions, setURL, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ShapeXmlLoader
public ShapeXmlLoader() -
ShapeXmlLoader
public ShapeXmlLoader(java.io.File dataFile)
-
-
Method Details
-
loadShape
public InterfaceShape loadShape(ShapeInputOptions options, ProgressUpdater progress_bar) throws java.io.IOExceptionDescription copied from class:InterfaceShapeLoader
Loads a shape with the givenoptions
.- Specified by:
loadShape
in classInterfaceShapeLoader
- Returns:
- Throws:
java.io.IOException
-
loadShapeBlocking
protected InterfaceShape loadShapeBlocking(ShapeInputOptions options, ProgressUpdater progress_bar)
-