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
  • Constructor Details

    • InterfaceShapeWriter

      public InterfaceShapeWriter()
  • Method Details

    • writeShape

      public abstract boolean writeShape​(InterfaceShape shape, ProgressUpdater progress_bar) throws java.io.IOException
      Writes 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 interface InterfaceIO
      Overrides:
      getSupportedObjects in class FileWriter
      Returns: