Class PointSet2DLoader

java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.shapes.InterfaceShapeLoader
mgui.io.domestic.shapes.PointSet2DLoader
All Implemented Interfaces:
InterfaceIO, IconObject

public class PointSet2DLoader
extends InterfaceShapeLoader
Loader class for PointSet2DInt objects.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • PointSet2DLoader

      public PointSet2DLoader()
    • PointSet2DLoader

      public PointSet2DLoader​(java.io.File file)
  • Method Details

    • load

      public boolean load​(InterfaceIOOptions options, ProgressUpdater progress_bar)
      Description copied from class: FileLoader
      Loads data from the set of files or URLs specified by options. Loading is controlled by the specifications of options. If loaded object is of type PersistentObject, this method should also set the file loader and reference URL for the object.

      This method should also set the URL reference and writer and loader attributes to match this one and its complement.

      Overrides:
      load in class InterfaceShapeLoader
      progress_bar - An optional progress updater. Can be null.
      Returns:
    • loadShape

      public InterfaceShape loadShape​(ShapeInputOptions options, ProgressUpdater progress_bar) throws java.io.IOException
      Description copied from class: InterfaceShapeLoader
      Loads a shape with the given options.
      Specified by:
      loadShape in class InterfaceShapeLoader
      Returns:
      Throws:
      java.io.IOException
    • loadPointSet

      public PointSet2DInt loadPointSet​(ProgressUpdater progress_bar) throws java.io.IOException
      Throws:
      java.io.IOException
    • loadPointSetBlocking

      protected PointSet2DInt loadPointSetBlocking​(ProgressUpdater progress_bar) throws java.io.IOException
      Throws:
      java.io.IOException