Examples of TextWindow


Examples of ij.text.TextWindow

        case ROI:
          IJ.runPlugIn("ij.plugin.RoiReader", path);
          break;
        case JAVA_OR_TEXT: case TEXT:
          if (IJ.altKeyDown()) { // open in TextWindow if alt key down
            new TextWindow(path,400,450);
            IJ.setKeyUp(KeyEvent.VK_ALT);
            break;
          }
          File file = new File(path);
          int maxSize = 250000;
          long size = file.length();
          if (size>=28000) {
            String osName = System.getProperty("os.name");
            if (osName.equals("Windows 95") || osName.equals("Windows 98") || osName.equals("Windows Me"))
              maxSize = 60000;
          }
          if (size<maxSize) {
            Editor ed = (Editor)IJ.runPlugIn("ij.plugin.frame.Editor", "");
            if (ed!=null) ed.open(getDir(path), getName(path));
          } else
            new TextWindow(path,400,450);
          break;
        case UNKNOWN:
          String msg =
            "File is not in a supported format, a reader\n"+
            "plugin is not available, or it was not found.";
View Full Code Here

Examples of ij.text.TextWindow

          sb.append(IJ.d2s(plot.xValues[i],xdigits)+"\t"+IJ.d2s(plot.yValues[i],ydigits)+"\n");
        else
          sb.append(IJ.d2s(plot.yValues[i],ydigits)+"\n");
      }
    }
    TextWindow tw = new TextWindow("Plot Values", headings, sb.toString(), 200, 400);
    if (autoClose)
      {imp.changes=false; close();}
  }
View Full Code Here

Examples of ij.text.TextWindow

    StringBuffer sb = new StringBuffer();
        String vheading = stats.binSize==1.0?"value":"bin start";
    if (cal.calibrated() && !cal.isSigned16Bit()) {
      for (int i=0; i<stats.nBins; i++)
        sb.append(i+"\t"+IJ.d2s(cal.getCValue(stats.histMin+i*stats.binSize), digits)+"\t"+histogram[i]+"\n");
      TextWindow tw = new TextWindow(getTitle(), "level\t"+vheading+"\tcount", sb.toString(), 200, 400);
    } else {
      for (int i=0; i<stats.nBins; i++)
        sb.append(IJ.d2s(cal.getCValue(stats.histMin+i*stats.binSize), digits)+"\t"+histogram[i]+"\n");
      TextWindow tw = new TextWindow(getTitle(), vheading+"\tcount", sb.toString(), 200, 400);
    }
  }
View Full Code Here

Examples of ij.text.TextWindow

          if (s.indexOf("ThreadDeath")>0)
            return;
          s = Tools.fixNewLines(s);
        }
        if (IJ.getInstance()!=null)
          new TextWindow("Exception", s, 350, 250);
        else
          IJ.log(s);
      }
    }
  }
View Full Code Here

Examples of net.bnubot.bot.gui.components.TextWindow

      menuBar.add(menu);
    }
    //frame.setJMenuBar(menuBar);

    // Main text area
    mainTextArea = new TextWindow();
    // Send chat textbox
    chatTextArea = new HistoryTextField();
    chatTextArea.setMaximumSize(new Dimension(Integer.MAX_VALUE, textHeight));
    // Enable tab character
    chatTextArea.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, EMPTY_SET);
View Full Code Here

Examples of org.apache.airavata.xbaya.ui.dialogs.TextWindow

      return null;
    }
   
  public boolean triggerAction(JTree tree,String action) throws Exception{
    if (action.equals(ViewAction.ID)) {
      TextWindow textWindow = new TextWindow(getXBayaEngine(), getParameter().getName(), getParameter().getValue().toString(),"Parameter Content");
      textWindow.show();
    } else if (action.equals(CopyAction.ID)) {
          Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(getParameter().getValue().toString()), null);
        }
    return super.triggerAction(tree, action);
  }
View Full Code Here

Examples of org.apache.airavata.xbaya.ui.dialogs.TextWindow

      return null;
    }
   
  public boolean triggerAction(JTree tree,String action) throws Exception{
    if (action.equals(ViewAction.ID)) {
      TextWindow textWindow = new TextWindow(getXBayaEngine(), getParameter().getName(), getParameter().getValue().toString(),"Parameter Content");
      textWindow.show();
    } else if (action.equals(CopyAction.ID)) {
          Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(getParameter().getValue().toString()), null);
        }
    return super.triggerAction(tree, action);
  }
View Full Code Here

Examples of org.apache.airavata.xbaya.ui.dialogs.TextWindow

    }
   
  public boolean triggerAction(JTree tree,String action) throws Exception{
    String value = getParameter().getValue().toString();
    if (action.equals(ViewAction.ID)) {
      TextWindow textWindow = new TextWindow(getXBayaEngine(), getParameter().getName(), value,"Parameter Content");
      textWindow.show();
    } else if (action.equals(CopyAction.ID)) {
          Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(value), null);
    } else if (action.equals(BrowserAction.ID)) {
      BrowserLauncher.openURL(getParameter().getValue().toString());
        }
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.