|
|||||||||
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.plugin.frame.PlugInFrame
ij.plugin.frame.Editor
public class Editor
This is a simple TextArea based editor for editing and compiling plugins.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected boolean |
changes
|
static String |
JavaScriptIncludes
ImportPackage statements added in front of scripts. |
static int |
MACROS_MENU_ITEMS
|
static int |
MAX_SIZE
|
static int |
MENU_BAR
|
static int |
MONOSPACED
|
static int |
XINC
|
static int |
YINC
|
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 ij.macro.Debugger |
---|
FAST_TRACE, NOT_DEBUGGING, RUN_TO_CARET, RUN_TO_COMPLETION, STEP, TRACE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Editor()
|
|
Editor(int rows,
int columns,
int fontSize,
int options)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
void |
append(String s)
|
void |
close()
Overrides close() in PlugInFrame. |
void |
create(String name,
String text)
|
void |
createMacro(String name,
String text)
|
int |
debug(Interpreter interp,
int mode)
|
void |
display(String title,
String text)
|
void |
evaluateScript(String ext)
|
boolean |
fileChanged()
|
void |
fixLineEndings()
Changes Mac OS 9 (CR) and Windows (CRLF) line separators to line feeds (LF). |
static Editor |
getInstance()
|
static String |
getJSPrefix(String arg)
|
String |
getText()
|
TextArea |
getTextArea()
|
void |
itemStateChanged(ItemEvent e)
|
void |
lostOwnership(Clipboard clip,
Transferable cont)
|
void |
open(String dir,
String name)
Opens a file and replaces the text (if any) by the contents of the file. |
void |
positionWindow()
|
protected void |
revert()
|
void |
run()
Downloads BeanShell or Jython interpreter using a separate thread. |
void |
saveAs()
|
static void |
setDefaultDirectory(String defaultDirectory)
|
void |
setFont(Font font)
|
void |
setIsMacroWindow(boolean mw)
|
void |
showLogWindow()
|
protected void |
showMacroFunctions()
|
void |
textValueChanged(TextEvent e)
|
void |
updateClassName(String oldName,
String newName)
Changes a plugins class name to reflect a new file name. |
void |
windowActivated(WindowEvent e)
Override windowActivated in PlugInFrame to prevent Mac menu bar from being installed. |
Methods inherited from class ij.plugin.frame.PlugInFrame |
---|
focusGained, focusLost, run, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened |
Methods inherited from class java.awt.Frame |
---|
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
public static String JavaScriptIncludes
public static final int MAX_SIZE
public static final int XINC
public static final int YINC
public static final int MONOSPACED
public static final int MENU_BAR
public static final int MACROS_MENU_ITEMS
protected boolean changes
Constructor Detail |
---|
public Editor()
public Editor(int rows, int columns, int fontSize, int options)
Method Detail |
---|
public void positionWindow()
public void create(String name, String text)
public void createMacro(String name, String text)
public void open(String dir, String name)
public String getText()
public TextArea getTextArea()
public void display(String title, String text)
public void evaluateScript(String ext)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
protected void showMacroFunctions()
public void textValueChanged(TextEvent e)
textValueChanged
in interface TextListener
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
windowActivated
in class PlugInFrame
public void close()
close
in class PlugInFrame
public void saveAs()
protected void revert()
public void updateClassName(String oldName, String newName)
public void setFont(Font font)
setFont
in class Container
public void append(String s)
public void setIsMacroWindow(boolean mw)
public static void setDefaultDirectory(String defaultDirectory)
public void lostOwnership(Clipboard clip, Transferable cont)
lostOwnership
in interface ClipboardOwner
public int debug(Interpreter interp, int mode)
debug
in interface Debugger
public static Editor getInstance()
public static String getJSPrefix(String arg)
public void fixLineEndings()
public void showLogWindow()
public boolean fileChanged()
public void run()
run
in interface Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |