5.0

5.0 | 1 rating Rate this file 21 downloads (last 30 days) File Size: 3.38 KB File ID: #18106

Manage and Dock Figures into Group

by Anh Huy Phan

 

23 Dec 2007 (Updated 26 Dec 2007)

Code covered by BSD License  

SETFIGDOCKED allows docking figures at specified positions in group of figures whose structure is

Download Now | Watch this File

File Information
Description

group = setfigdocked('PropertyName1',value1,'PropertyName2',value2,...)
  PropertyName:
      - GroupName name of group need to be generated
      - GridSize scalar or vector quantity, defines number of rows
                    and columns of cell in group
      - SpanCell vector or matrix quantity, size n x 4,
                    [row col occupiedrows occupiedcols]
                    build an cell at the position (row, col) in group
                    cell (GridSize) which occupies "occupiedrows"
                    rows and "occupiedcols" columns
      - Figure handle of figure
      - Figindex index position of figure in group cell
      - Maximize 0/1, maximize group
      - GroupDocked 0/1, dock group

Example:
         group = setfigdocked('GroupName','Image and Edges','GridSize',3,'SpanCell',[1 2 2 2]);
         im1 = imread('cameraman.tif');
         figure;imshow(im1);set(gcf,'Name','Cameraman','NumberTitle','off')
         group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',2);
 
         figure; edge(im1,'prewitt');set(gcf,'Name','Prewitt method','NumberTitle','off')
         group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',1);
 
         figure; edge(im1,'roberts');set(gcf,'Name','Roberts method','NumberTitle','off')
         group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',3);

         figure; edge(im1,'roberts');set(gcf,'Name','Roberts method','NumberTitle','off')
         group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',4);

         figure; edge(im1,'roberts');set(gcf,'Name','Roberts method','NumberTitle','off')
         group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',5);

         figure; edge(im1,'canny');set(gcf,'Name','Canny Method','NumberTitle','off')
         group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',6);

         group = setfigdocked('GroupName','Image and Edges','Maximize',1,'GroupDocked',0);

MATLAB release MATLAB 7.1.0 (R14SP3)
Other requirements This function runs on MATLAB 7.1 sp3 or higher
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
11 Feb 2009 Sebastian Hölz

SWEET !!!
Great job. I've been searching the Matlab Java Archives for the appropriate objects/methods/properties for (almost) years and just could not find them. The docking of figures into seperate containers is a great way to organize your work-flow, if you have lots of figures to work with at the same time and don't want to get lost. I'll highly recommend to look into this ...

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Anh Huy Phan 22 Oct 2008 09:40:20
example Anh Huy Phan 22 Oct 2008 09:40:20
setfigdocked setgroupdocked java docked figure Anh Huy Phan 22 Oct 2008 09:40:20
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com