|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
ij.ImageJ
public class ImageJ
This frame is the main ImageJ class.
ImageJ is a work of the United States Government. It is in the public domain and open source. There is no copyright. You are free to do anything you want with this source but I like to get credit for my work and I would like you to offer your changes to me so I can possibly add them to the "official" version.
The following command line options are recognized by ImageJ:
"file-name"
Opens a file
Example 1: blobs.tif
Example 2: /Users/wayne/images/blobs.tif
Example3: e81*.tif
-ijpath path
Specifies the path to the directory containing the plugins directory
Example: -ijpath /Applications/ImageJ
-port
Specifies the port ImageJ uses to determine if another instance is running
Example 1: -port1 (use default port address + 1)
Example 2: -port2 (use default port address + 2)
Example 3: -port0 (do not check for another instance)
-macro path [arg]
Runs a macro or script, passing it an optional argument,
which can be retieved using getArgument()
Example 1: -macro analyze.ijm
Example 2: -macro analyze /Users/wayne/images/stack1
-batch path [arg]
Runs a macro or script in batch (no GUI) mode, passing it an optional argument.
ImageJ exits when the macro finishes.
-eval "macro code"
Evaluates macro code
Example 1: -eval "print('Hello, world');"
Example 2: -eval "return getVersion();"
-run command
Runs an ImageJ menu command
Example: -run "About ImageJ..."
-debug
Runs ImageJ in debug mode
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
static Color |
backgroundColor
|
static String |
BUILD
|
static int |
DEFAULT_PORT
Address of socket where Image accepts commands |
static int |
EMBEDDED
Run embedded in another application. |
static int |
NO_SHOW
Run embedded and invisible in another application. |
static Font |
SansSerif12
SansSerif, 12-point, plain font. |
static int |
STANDALONE
Run as normal application. |
static String |
VERSION
Plugins should call IJ.getVersion() to get the version string. |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ImageJ()
Creates a new ImageJ frame that runs as an application. |
|
ImageJ(Applet applet)
Creates a new ImageJ frame that runs as an applet. |
|
ImageJ(Applet applet,
int mode)
If 'applet' is not null, creates a new ImageJ frame that runs as an applet. |
|
ImageJ(int mode)
Creates a new ImageJ frame that runs as an application in the specified mode. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Handle menu events. |
void |
exitWhenQuitting(boolean ewq)
ImageJ calls System.exit() when qutting when 'exitWhenQuitting' is true. |
static String[] |
getArgs()
Returns the command line arguments passed to ImageJ. |
static int |
getPort()
Returns the port that ImageJ checks on startup to see if another instance is running. |
Point |
getPreferredLocation()
|
ij.gui.ProgressBar |
getProgressBar()
|
Panel |
getStatusBar()
|
void |
itemStateChanged(ItemEvent e)
Handles CheckboxMenuItem state changes. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
static void |
main(String[] args)
|
static String |
modifiers(int flags)
Return the current list of modifier keys. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
quit()
Called by ImageJ when the user selects Quit. |
boolean |
quitting()
Returns true if ImageJ is exiting. |
void |
register(Class c)
Adds the specified class to a Vector to keep it from being garbage collected, causing static fields to be reset. |
void |
run()
Quit using a separate thread, hopefully avoiding thread deadlocks. |
void |
runFilterPlugIn(Object theFilter,
String cmd,
String arg)
|
Object |
runUserPlugIn(String commandName,
String className,
String arg,
boolean createNewLoader)
|
void |
savePreferences(Properties prefs)
Called once when ImageJ quits. |
void |
windowActivated(WindowEvent e)
|
void |
windowClosed(WindowEvent e)
|
void |
windowClosing(WindowEvent e)
|
void |
windowDeactivated(WindowEvent e)
|
void |
windowDeiconified(WindowEvent e)
|
void |
windowIconified(WindowEvent e)
|
void |
windowOpened(WindowEvent e)
|
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final String VERSION
public static final String BUILD
public static Color backgroundColor
public static final Font SansSerif12
public static final int DEFAULT_PORT
public static final int STANDALONE
public static final int EMBEDDED
public static final int NO_SHOW
| Constructor Detail |
|---|
public ImageJ()
public ImageJ(int mode)
public ImageJ(Applet applet)
public ImageJ(Applet applet,
int mode)
| Method Detail |
|---|
public Point getPreferredLocation()
public ij.gui.ProgressBar getProgressBar()
public Panel getStatusBar()
public void runFilterPlugIn(Object theFilter,
String cmd,
String arg)
public Object runUserPlugIn(String commandName,
String className,
String arg,
boolean createNewLoader)
public static String modifiers(int flags)
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenerpublic void register(Class c)
public void quit()
public boolean quitting()
public void savePreferences(Properties prefs)
public static void main(String[] args)
public static int getPort()
SocketListenerpublic static String[] getArgs()
public void exitWhenQuitting(boolean ewq)
public void run()
run in interface Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||