Examples of saveAs()


Examples of com.itstherules.image.AWTImage.saveAs()

    try {
      File thumbnailFile = new File(thumbnailsDirectory + file.getName());
      if(!thumbnailFile.exists()){
        IImage image = new AWTImage(file.getAbsolutePath());
        image.scale(125, 125, true, true);
        image.saveAs(thumbnailFile.getAbsolutePath());
        writer.write("<br>Generated thumbnail: <img src=\"/photos/"+currentDirectory+"/thumbnails/"+file.getName()+"\"/><br/>");
        writer.flush();
      }
    } catch (IOException e) {
      thumbsDirFile.delete();
View Full Code Here

Examples of com.itstherules.image.IImage.saveAs()

    try {
      File thumbnailFile = new File(thumbnailsDirectory + file.getName());
      if(!thumbnailFile.exists()){
        IImage image = new AWTImage(file.getAbsolutePath());
        image.scale(125, 125, true, true);
        image.saveAs(thumbnailFile.getAbsolutePath());
        writer.write("<br>Generated thumbnail: <img src=\"/photos/"+currentDirectory+"/thumbnails/"+file.getName()+"\"/><br/>");
        writer.flush();
      }
    } catch (IOException e) {
      thumbsDirFile.delete();
View Full Code Here

Examples of com.screenrunner.data.Song.saveAs()

  }
 
  public void songEditorSave() {
    Song s = ScreenRunner.songs.get(songEditorCurrentSong);
    songEditorDataToSong(s);
    s.saveAs(songEditorCurrentSong);
    setSongEditorModified(false);
    loadSong();
  }
 
  public void songEditorSaveAs() {
View Full Code Here

Examples of ij.measure.ResultsTable.saveAs()

        String file = sd.getFileName();
        if (file == null) return false;
        path = sd.getDirectory() + file;
      }
      try {
        rt.saveAs(path);
      } catch (IOException e) {
        IJ.error(""+e);
      }
    }
    return true;
View Full Code Here

Examples of ij.plugin.frame.Editor.saveAs()

    if (frame!=null && (frame instanceof TextWindow)) {
      TextPanel tp = ((TextWindow)frame).getTextPanel();
      tp.saveAs("");
    } else if (frame!=null && (frame instanceof Editor)) {
      Editor ed = (Editor)frame;
      ed.saveAs();
    } else {
      IJ.error("Save As Text",
        "This command requires a TextWindow, such\n"
        + "as the \"Log\" window, or an Editor window. Use\n"
        + "File>Save>Text Image to save an image as text.");
View Full Code Here

Examples of ij.text.TextPanel.saveAs()

 
  public boolean save(String path) {
    if (IJ.isResultsWindow()) {
      TextPanel tp = IJ.getTextPanel();
      if (tp!=null) {
        if (!tp.saveAs(path))
          return false;
      }
    } else {
            ResultsTable rt = ResultsTable.getResultsTable();
            if (rt==null || rt.getCounter()==0)
View Full Code Here

Examples of net.sourceforge.marathon.util.FileHandler.saveAs()

    public File saveAs() {
        File file = null;
        try {
            FileHandler fileHandler = (FileHandler) editor.getData("filehandler");
            file = fileHandler.saveAs(editor.getText(), editor.getComponent(), "");
            if (file != null) {
                editor.clearUndo();
                editor.setData("filename", fileHandler.getCurrentFile().getName());
            }
            updateView();
View Full Code Here

Examples of org.analyse.core.util.save.AnalyseSave.saveAs()

            s.save();
        } else if (action.equals(Constantes.SAVEAS)) {
            AnalyseSave s = Main.analyseFrame.getAnalyseSave();

            s.saveAs();
        } else if (action.equals(Constantes.SHOWHIDE_NAVIGATOR)) {
            Main.analyseFrame.showHideNavigator();         
        } else if (action.equals(Constantes.PARAMETRAGE)) {
          Main.parametrageWindow.setVisible(true);      
        }
View Full Code Here

Examples of org.apache.cayenne.project.FileProjectSaver.saveAs()

        rootNode.getNodeDescriptors().addAll(Arrays.asList(nodes));

        Project project = new Project(new ConfigurationTree<DataChannelDescriptor>(
                rootNode));

        saver.saveAs(project, new URLResource(testFolder.toURL()));

        File target = new File(testFolder, "cayenne-test.xml");
        assertTrue(target.isFile());
        assertSaveAs_Sorted(target);
    }
View Full Code Here

Examples of org.apache.cayenne.project.ProjectSaver.saveAs()

        Preferences tempOldPref = null;
        if (isNewProject) {
            tempOldPref = getApplication().getMainPreferenceForProject();
        }

        saver.saveAs(p, res);

        if (oldPath != null
                && oldPath.length() != 0
                && !oldPath.equals(p.getConfigurationResource().getURL().getPath())) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.