public class DefaultLegacyHooks extends net.imagej.patcher.LegacyHooks
LegacyHooks encapsulating an active LegacyService for use
within the patched ImageJ 1.x.net.imagej.patcher.LegacyHooks.FatJarNameComparator| Constructor and Description |
|---|
DefaultLegacyHooks(LegacyService legacyService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMenuItem(String menuPath,
String command) |
boolean |
createInEditor(String title,
String content)
Creates the given file in the registered legacy editor, if any.
|
void |
debug(String string) |
void |
dispose() |
boolean |
disposing() |
void |
error(Throwable t) |
String |
getAppName()
Returns the application name for use with ImageJ 1.x.
|
String |
getAppVersion()
Returns the application version to display in the ImageJ 1.x status bar.
|
Object |
getContext() |
URL |
getIconURL()
Returns the icon for use with ImageJ 1.x.
|
Iterable<Thread> |
getThreadAncestors() |
void |
installed() |
boolean |
interceptCloseAllWindows() |
Object |
interceptDragAndDropFile(File f) |
Object |
interceptFileOpen(String path) |
void |
interceptImageWindowClose(Object window) |
boolean |
interceptKeyPressed(KeyEvent e) |
Object |
interceptOpen(String path,
int planeIndex,
boolean display) |
Object |
interceptOpenImage(String path,
int planeIndex) |
Object |
interceptOpenRecent(String path) |
Object |
interceptRunPlugIn(String className,
String arg) |
boolean |
isLegacyMode() |
void |
log(String message) |
boolean |
openInEditor(String path)
Opens the given path in the registered legacy editor, if any.
|
void |
registerImage(Object o) |
void |
runAfterRefreshMenus() |
void |
unregisterImage(Object o) |
addPluginClasspath, addPluginDirectory, autoGenerateConfigFile, autoGenerateConfigFile, enableIJ1PluginDirs, getClasspathElements, getMenuStructure, handleExtraPluginJars, handleNoSuchMethodError, initialized, newPluginClassLoader, quit, showProgress, showProgress, showStatuspublic DefaultLegacyHooks(LegacyService legacyService)
public boolean isLegacyMode()
isLegacyMode in class net.imagej.patcher.LegacyHookspublic Object getContext()
getContext in class net.imagej.patcher.LegacyHookspublic void installed()
installed in class net.imagej.patcher.LegacyHookspublic void dispose()
dispose in class net.imagej.patcher.LegacyHookspublic Object interceptRunPlugIn(String className, String arg)
interceptRunPlugIn in class net.imagej.patcher.LegacyHookspublic void registerImage(Object o)
registerImage in class net.imagej.patcher.LegacyHookspublic void unregisterImage(Object o)
unregisterImage in class net.imagej.patcher.LegacyHookspublic void debug(String string)
debug in class net.imagej.patcher.LegacyHookspublic void error(Throwable t)
error in class net.imagej.patcher.LegacyHookspublic void log(String message)
log in class net.imagej.patcher.LegacyHookspublic String getAppName()
getAppName in class net.imagej.patcher.LegacyHookspublic String getAppVersion()
getAppVersion in class net.imagej.patcher.LegacyHookspublic URL getIconURL()
getIconURL in class net.imagej.patcher.LegacyHookspublic void runAfterRefreshMenus()
runAfterRefreshMenus in class net.imagej.patcher.LegacyHookspublic boolean openInEditor(String path)
openInEditor in class net.imagej.patcher.LegacyHookspath - the path of the file to openpublic boolean createInEditor(String title, String content)
createInEditor in class net.imagej.patcher.LegacyHookstitle - the title of the file to createcontent - the text of the file to be createdpublic void addMenuItem(String menuPath, String command)
addMenuItem in class net.imagej.patcher.LegacyHookspublic Object interceptOpen(String path, int planeIndex, boolean display)
interceptOpen in class net.imagej.patcher.LegacyHookspublic Object interceptFileOpen(String path)
interceptFileOpen in class net.imagej.patcher.LegacyHookspublic Object interceptOpenImage(String path, int planeIndex)
interceptOpenImage in class net.imagej.patcher.LegacyHookspublic Object interceptOpenRecent(String path)
interceptOpenRecent in class net.imagej.patcher.LegacyHookspublic Object interceptDragAndDropFile(File f)
interceptDragAndDropFile in class net.imagej.patcher.LegacyHookspublic boolean interceptKeyPressed(KeyEvent e)
interceptKeyPressed in class net.imagej.patcher.LegacyHookspublic Iterable<Thread> getThreadAncestors()
getThreadAncestors in class net.imagej.patcher.LegacyHookspublic boolean interceptCloseAllWindows()
interceptCloseAllWindows in class net.imagej.patcher.LegacyHookspublic void interceptImageWindowClose(Object window)
interceptImageWindowClose in class net.imagej.patcher.LegacyHookspublic boolean disposing()
disposing in class net.imagej.patcher.LegacyHooksCopyright © 2009–2025 ImageJ. All rights reserved.