Class FXContextManager

  • All Implemented Interfaces:
    FXContext

    public class FXContextManager
    extends AbstractFXContext
    Global or application wide singleton instances implementation of FXContext
    Author:
    Kiyut
    • Method Detail

      • getInstance

        public static FXContextManager getInstance()
        Returns the single instance.
        Returns:
        The single instance.
      • getLookup

        public org.openide.util.Lookup getLookup()
        Return this object lookup
        Returns:
        Lookup
      • open

        public void open​(File file)
        Open Image File as the specified file param
        Parameters:
        file - File
        See Also:
        revert()
      • revert

        public void revert()
        Reopen the Image File
        See Also:
        open(File)
      • saveImpl

        protected void saveImpl​(BufferedImage image,
                                boolean copy)
        Save the supplied image. It delegated to the ImageWriterDialog
        Parameters:
        image - BufferedImage
        copy - true (saveCopy) or false (saveAs)
        See Also:
        saveAs(), saveCopy()