Is it possible to save/get a Layout of docked figures?

조회 수: 4 (최근 30일)
Thierry Dalon
Thierry Dalon 2014년 3월 28일
편집: per isakson 2014년 3월 28일
Hello As explained by Yair Altman it is possible to set a Layout of docked figures, for example as follows:
desktop = com.mathworks.mde.desk.MLDesktop.getInstance; myGroup = desktop.addGroup('myGroup'); desktop.setGroupDocked('myGroup', 0); myDim = java.awt.Dimension(5, 2); desktop.setDocumentArrangement('myGroup', 2, myDim) figH = zeros(1, 10); for iFig = 1:10 figH(iFig) = figure('WindowStyle', 'docked', ... 'Name', sprintf('Figure %d', iFig), ... 'NumberTitle', 'off'); set(get(handle(figH(iFig)), 'javaframe'), ... 'GroupName', 'myGroup'); end
See related question here .
Do you know a way how to get these properties: DocumentArrangement, DocumentColumnWidths, DocumentRowHeights, DocumentRowSpan...?
If one could retrieve these properties, one could save some user defined layout. Many thanks
  댓글 수: 1
per isakson
per isakson 2014년 3월 28일
편집: per isakson 2014년 3월 28일
Markup your question. That improves the chances to get an answer.
Try
uiinspect( desktop )
You'll find uiinspect in the File Exchange.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by