Posted by
ctrueden on
Dec 05, 2014; 9:15pm
URL: http://imagej.273.s1.nabble.com/JApplet-integration-interaction-tp5010762p5010800.html
Hi Marius,
> embedding in Swing
You can mix and match AWT and Swing components, so if you can tolerate
ImageJ 1.x's use of AWT, you may be all set.
Alternately, the ImageJ2 project has a more flexible UI plugin system,
which includes a Swing-based UI closely modeled after the ImageJ 1.x
interface:
https://github.com/imagej/imagej-ui-swingHowever, ImageJ2 UIs other than the "legacy" interface have very limited
support for ImageJ 1.x plugins.
Given your requirements, it would probably be the least effort to use
ImageJ1 as an applet, and tolerate its AWT-isms.
> is there a way to "remotecontrol" IJ and communicate with it in a
> bidirectional fashion.
If you use ImageJ2, there is limited support for running ImageJ1 code
headless; see:
http://imagej.net/Headless> Probably something like an eventbus?
The ImageJ2/SciJava architecture uses an event bus for all its event
handling:
https://github.com/scijava/scijava-common/blob/scijava-common-2.35.1/src/main/java/org/scijava/event/EventService.javaBut that won't help you w.r.t. ImageJ 1.x functionality.
Regards,
Curtis
On Thu, Dec 4, 2014 at 5:58 AM, Marius Giepz <
[hidden email]> wrote:
> Hello!
> I am new to ImageJ but I think it might be a good option for a project
> that I am
> currently planning.
>
> I have an allready existing application which is a Swing Applet that
> communicates with an applicationserver.
> It basically manages tabular data in a CRUD fashion. Now I have the
> additional
> requirement that some entities in a table
> are linked to stacks of images on the client filesystem (raw data that I
> was
> allready able to import and use in IJ).
>
> - The user should be able to open such an image and (graphically) interact
> with
> it.
> - Ideally the ImagePlus and the selectiontools should be embedded with in
> the
> Swing ui, but after reviewing the IJ Swing-UI it does not seem to offer
> all the
> options that I'd need, yet.
> Out of the box I could embedd the Image using JImagePanel but not
> interact
> with it, correct?
> - The following IJ core or plugin functions need to be supported:
> -- Import RAW image (just like with the import-raw option in the classic
> IJ ui)
> through api call
> -- Load addtional images as overlays through api call
> -- Zoom, move and scroll through slices using the mouse
> -- Select/Focus an existing ROI through api call
> -- Create new ROI by means of drawing on the image, then get the resulting
> data
> (position, measure..) back into the applet.
> -- Adjust window/level (HU), similar to the "CT Window Level" plugin
> -- Optionally show Orthoslices
>
> So the question is: If embedding in Swing is not feasable, as my
> requirements
> are not yet supported, is there a way to "remotecontrol" IJ and
> communicate with
> it in a bidirectional fashion. Probably something like an eventbus?
> Thnx in advance for your help!
>
> kind regards,
>
> Marius Giepz
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html