Package editor

Class LabFrame

All Implemented Interfaces:
IGosuEditor, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class LabFrame extends JFrame implements IGosuEditor
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • instance

      public static LabFrame instance()
    • makeCustomFrameDecorations

      private void makeCustomFrameDecorations()
    • exit

      public void exit()
    • configUI

      private void configUI()
    • setInitialSize

      private void setInitialSize()
    • reset

      public void reset()
      Specified by:
      reset in interface IGosuEditor
    • resetNow

      private void resetNow()
    • openInitialFile

      public void openInitialFile(IScriptPartId partId, Path file)
      Specified by:
      openInitialFile in interface IGosuEditor
    • openFile

      public void openFile(Path anySourceFile)
      Specified by:
      openFile in interface IGosuEditor
    • showMe

      public void showMe()
      Specified by:
      showMe in interface IGosuEditor
    • getGosuPanel

      public GosuPanel getGosuPanel()
      Specified by:
      getGosuPanel in interface IGosuEditor
    • restoreState

      public void restoreState(Experiment experiment)
      Specified by:
      restoreState in interface IGosuEditor
    • selectTab

      public void selectTab(Object contentId)
    • closeTab

      public void closeTab(Object contentId)
    • getRestoreBounds

      public Rectangle getRestoreBounds()
    • setRestoreBounds

      public void setRestoreBounds(Rectangle restoreBounds)
    • getExperiments

      public List<String> getExperiments()
    • setExperiments

      public void setExperiments(List<String> experiments)
    • addExperiment

      public void addExperiment(Experiment exp)
    • create

      public static LabFrame create()
    • checkForUpdate

      public void checkForUpdate(GosuPanel gosuPanel)
    • getUserGosuDir

      public static Path getUserGosuDir()
    • getUserGosuEditorDir

      public static Path getUserGosuEditorDir()
    • getIndexDir

      public static Path getIndexDir()
    • getStockExperimentsDir

      public static Path getStockExperimentsDir()
    • copyExampleExperiments

      private static void copyExampleExperiments(Path gosuDir)
    • copyExamples

      private static void copyExamples(IResource from, Path to)
    • getStockExamplesDir

      public static Path getStockExamplesDir()
    • getStockExampleExperiments

      public static List<Path> getStockExampleExperiments()
    • findExperimentFile

      public static Path findExperimentFile(Path dir)
    • makeScratchExperiment

      private static Experiment makeScratchExperiment(GosuPanel gosuPanel)
    • openFileOrDir

      public static void openFileOrDir(Path file)
    • doOpen

      private static void doOpen(Path dir, Path toSelect) throws IOException
      Throws:
      IOException
    • loadLabIcon

      public static ImageIcon loadLabIcon()
    • getUserFile

      public static Path getUserFile(GosuPanel gosuPanel)
    • getVersion

      public static Integer getVersion(GosuPanel gosuPanel) throws MalformedURLException
      Throws:
      MalformedURLException
    • loadRecentExperiment

      public Experiment loadRecentExperiment(GosuPanel gosuPanel)
    • saveLabState

      public void saveLabState(Experiment experiment)
    • saveScreenProps

      private static void saveScreenProps(Expando bindings)
    • restoreLabState

      private void restoreLabState(Bindings bindings)
    • setInitialFrameBounds

      private static void setInitialFrameBounds(Frame frame)
    • getSettings

      public static Map<String,ISettings> getSettings()
    • findSettings

      public ISettings findSettings(Predicate<ISettings> matcher)
    • loadSettings

      public static void loadSettings()
    • saveSettings

      public static void saveSettings()
    • getSettingsFile

      private static Path getSettingsFile()