public class DefaultLegacyOpener extends Object implements LegacyOpener
LegacyOpener
plugin.
When the DefaultLegacyHooks
are installed, the
LegacyOpener
plugin (if any) is given a chance to handle various
open
requests from ImageJ 1.x by using IJ2.
Constructor and Description |
---|
DefaultLegacyOpener() |
Modifier and Type | Method and Description |
---|---|
Object |
open(String path,
int planeIndex,
boolean displayResult)
Optionally override opening resources via legacy hooks.
|
public Object open(String path, int planeIndex, boolean displayResult)
LegacyOpener
This is intended as a "HandleExtraFileTypesPlus".
open
in interface LegacyOpener
path
- the path to the resource to open, or null
if a dialog
needs to be shownplaneIndex
- If applicable - the index of plane to open or -1 for all
planesdisplayResult
- if true, the opened object should be displayed before
returningnull
if the open failed.Copyright © 2014–2022 ImageJ. All rights reserved.