@Override public void actionPerformed(final ActionEvent e) { IJ.doCommand("Plots..."); } });
@Override public void actionPerformed(final ActionEvent e) { IJ.doCommand("Input/Output..."); } });
public void showOptionsDialog() { IJ.doCommand("Arrow Tool..."); }
public void showOptionsDialog() { IJ.doCommand("Arrow Tool..."); }
public void actionPerformed(ActionEvent e) { final Object source = e.getSource(); if (source == binomial) { IJ.doCommand("RandomJ Binomial"); } else if (source == exponential) { IJ.doCommand("RandomJ Exponential"); } else if (source == gamma) { IJ.doCommand("RandomJ Gamma"); } else if (source == gaussian) { IJ.doCommand("RandomJ Gaussian"); } else if (source == poisson) { IJ.doCommand("RandomJ Poisson"); } else if (source == uniform) { IJ.doCommand("RandomJ Uniform"); } else if (source == about) (new RJ_About()).run(""); else if (source == options) IJ.doCommand("RandomJ Options"); else if (source == help) (new RJ_Help()).run(""); }
public void actionPerformed(ActionEvent e) { final Object source = e.getSource(); if (source == affineButton) IJ.doCommand("TransformJ Affine"); else if (source == cropButton) IJ.doCommand("TransformJ Crop"); else if (source == embedButton) IJ.doCommand("TransformJ Embed"); else if (source == matrixButton) (new TJ_Matrix()).run(""); else if (source == mirrorButton) IJ.doCommand("TransformJ Mirror"); else if (source == rotateButton) IJ.doCommand("TransformJ Rotate"); else if (source == scaleButton) IJ.doCommand("TransformJ Scale"); else if (source == translateButton) IJ.doCommand("TransformJ Translate"); else if (source == turnButton) IJ.doCommand("TransformJ Turn"); else if (source == aboutButton) (new TJ_About()).run(""); else if (source == optionsButton) IJ.doCommand("TransformJ Options"); else if (source == helpButton) (new TJ_Help()).run(""); }
private void doCommand() { String arg = getStringArg(); if (arg.equals("Start Animation")) arg = "Start Animation [\\]"; IJ.doCommand(arg); }
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command==null) return; if (command.equals(moreLabel)) { Point bloc = moreButton.getLocation(); pm.show(this, bloc.x, bloc.y); } else if (command.equals("Convert to RGB")) IJ.doCommand("Stack to RGB"); else IJ.doCommand(command); }
private void doCommand() { String arg = getStringArg(); if (arg.equals("Start Animation")) arg = "Start Animation [\\]"; IJ.doCommand(arg); }
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command==null) return; if (command.equals(moreLabel)) { Point bloc = moreButton.getLocation(); pm.show(this, bloc.x, bloc.y); } else if (command.equals("Convert to RGB")) IJ.doCommand("Stack to RGB"); else IJ.doCommand(command); }
protected void runCommand(String command) { IJ.showStatus("Running command "+command); IJ.doCommand(command); closeWhenRunning = closeCheckBox.isSelected(); if (closeWhenRunning) closeWindow(); }
protected void runCommand(String command) { IJ.showStatus("Running command "+command); IJ.doCommand(command); closeWhenRunning = closeCheckBox.isSelected(); if (closeWhenRunning) closeWindow(); }
/** Implements the Clear command. */ public void doClear() { if (getLineCount()>0 && selStart!=-1 && selEnd!=-1) clearSelection(); else if ("Results".equals(title)) IJ.doCommand("Clear Results"); else { selectAll(); clearSelection(); } }
public void windowClosing(WindowEvent e) { if (closed) return; if (ij!=null) { WindowManager.setCurrentWindow(this); IJ.doCommand("Close"); } else { dispose(); WindowManager.removeWindow(this); } }
public void windowClosing(WindowEvent e) { if (closed) return; if (ij!=null) { WindowManager.setCurrentWindow(this); IJ.doCommand("Close"); } else { dispose(); WindowManager.removeWindow(this); } }
/** Implements the Clear command. */ public void doClear() { if (getLineCount()>0 && selStart!=-1 && selEnd!=-1) clearSelection(); else if ("Results".equals(title)) IJ.doCommand("Clear Results"); else { selectAll(); clearSelection(); } }
void flatten() { ImagePlus imp = WindowManager.getCurrentImage(); if (imp==null) {IJ.noImage(); return;} ImageCanvas ic = imp.getCanvas(); if ((ic!=null && ic.getShowAllList()==null) && imp.getOverlay()==null && imp.getRoi()==null) error("Image does not have an overlay or ROI"); else IJ.doCommand("Flatten"); // run Image>Flatten in separate thread }
void flatten() { ImagePlus imp = WindowManager.getCurrentImage(); if (imp==null) {IJ.noImage(); return;} ImageCanvas ic = imp.getCanvas(); if ((ic!=null && ic.getShowAllList()==null) && imp.getOverlay()==null && imp.getRoi()==null) error("Image does not have an overlay or ROI"); else IJ.doCommand("Flatten"); // run Image>Flatten in separate thread }