Posted by
Michael B. on
Aug 27, 2013; 11:18am
URL: http://imagej.273.s1.nabble.com/GUI-issue-tp5004567.html
Suppose to have three different ImagePlus objects, like these:
ImagePlus imp1 = IJ openImage("FirstImage tiff");
ImagePlus imp2 = IJ openImage("SecondImage jpg");
ImagePlus imp2 = IJ openImage("ThirdImage tiff");
How can I display these images into a single Frame ?
(and multiple tabs ?)
How can I display a generic ImagePlus object into a any kind of UI component (AWT or Swing) like Panel,JPanel,JTabbedPane,etc ?
I'm studying the IJ code, and every image display process turn around the ImageWindow class that extend a Frame
Inside this class there is a reference to a SINGLE image and HIS SINGLE canvas
So, it seem that IJ was developed along the concept to display just one image/or/stacks into a single Frame
Then, no way to add several ImagePlus (then image or stacks) objects into a Frame: is it correct ?
Or is possible to create something like the two following schemas ?
(in a rapid way, without changing the logic of the ij gui packages)
(Tab1 is Visibile)
______________________________________________
_My Custom GUI____________________________ - o X|
_____ ______
__|Tab1 \| Tab2 \
| ---------------------------------------
|
| ****************** ****************
| ***First image**** ****************
| ***(is a stack)*** **Second Image**
| ****************** ****************
| *>*(scroll bar)*** ****************
| ******************
|
| +++++++++++++++
| ++My Button 1++
| +++++++++++++++
|
|_______________________________________________
(Tab2 is Visibile)
______________________________________________
_My Custom GUI____________________________ - o X|
_____ ______
__|Tab1 \| Tab2 \
------------ --------------------------------
|
| ******************
| ***Third image****
| ***(is a stack)***
| ******************
| *>*(scroll bar)***
| ******************
|
| +++++++++++++++
| ++My Button 2++
| +++++++++++++++
|
|_______________________________________________
This example
http://imagej nih gov/ij/plugins/download/Panel_Window java
can create something like this:
______________________________________________
_Panel Window Example_____________________ - o X|
|
| ******************
| ******image*******
| *(can be a stack)*
| ******************
| *>*(scroll bar)***
| ******************
|
| ++++++++++++
| ++A Button++
| ++++++++++++
|
|_______________________________________________
Cool, but not enough for my purpose
Do you know how to modify the Panel_Window java example in order to
create a more generic GUI like the previous "My Custom GUI" ?
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html