Interface SaveToFile

    • Method Detail

      • isSavable

        boolean isSavable()
        Replies the savable state of the layer (i.e. if it can be saved through a "File → Save" dialog). A layer that implements the SaveToFile interface must return true.
        Returns:
        true if the layer can be saved to a file; false, otherwise
      • requiresSaveToFile

        boolean requiresSaveToFile()
        Determines if the data managed by this layer needs to be saved to a file. Only replies true if a file is assigned to this layer and if the data managed by this layer has been modified since the last save operation to the file.
        Returns:
        true if the data managed by this layer needs to be saved to a file; false, otherwise
      • onPostSaveToFile

        void onPostSaveToFile()
        Initializes the layer after a successful save of data to a file.