MATLAB Function Reference (Volume 2: Graphics)
MATLAB Function Reference (Volume 2: Graphics) MATLAB Function Reference (Volume 2: Graphics)
uicontextmenuProperty Name Property Description Property ValueControlling Callback Routine ExecutionBusyAction Callback routine interruption Value: cancel, queueDefault: queueCallback Control action Value: stringCreateFcnDeleteFcnCallback routine executed duringobject creationCallback routine executed duringobject deletionValue: stringValue: stringInterruptible Callback routine interruption mode Value: on, offDefault: onControlling Access to ObjectsHandleVisibilityWhether handle is accessible fromcommand line and GUIsValue: on, callback, offDefault: onExampleThese statements define a context menu associated with a line. When the userextend-clicks anywhere on the line, the menu appears. Menu items enable theuser to change the line style.% Define the context menucmenu = uicontextmenu;% Define the line and associate it with the context menuhline = plot(1:10, 'UIContextMenu', cmenu);% Define callbacks for context menu itemscb1 = ['set(hline, ''LineStyle'', ''--'')'];cb2 = ['set(hline, ''LineStyle'', '':'')'];cb3 = ['set(hline, ''LineStyle'', ''-'')'];% Define the context menu itemsitem1 = uimenu(cmenu, 'Label', 'dashed', 'Callback', cb1);item2 = uimenu(cmenu, 'Label', 'dotted', 'Callback', cb2);item3 = uimenu(cmenu, 'Label', 'solid', 'Callback', cb3);2-528
uicontextmenuWhen the user extend-clicks on the line, the context menu appears, as shownin this figure:ObjectHierarchyRootFigureAxesUicontrolUimenuUicontextmenuUimenuUimenuSee Alsouicontrol, uimenu2-529
- Page 507 and 508: surfaceObjectHierarchyRootFigureAxe
- Page 509 and 510: surfaceProperty Name Property Descr
- Page 511 and 512: surfaceProperty Name Property Descr
- Page 513 and 514: Surface PropertiesButtonDownFcn str
- Page 515 and 516: Surface PropertiesEdgeColor{ColorSp
- Page 517 and 518: Surface PropertiesFaceColorColorSpe
- Page 519 and 520: Surface Propertiesgetframe, or paus
- Page 521 and 522: Surface PropertiesMarkerSize size i
- Page 523 and 524: Surface PropertiesVertexNormals vec
- Page 525 and 526: surfllight source, use surfl(X',Y',
- Page 527 and 528: surfnormPurpose2surfnormCompute and
- Page 529 and 530: terminalPurpose2terminalSet graphic
- Page 531 and 532: texlabelPurpose2texlabelProduce TeX
- Page 533 and 534: textPurpose2textCreate text object
- Page 535 and 536: textannotate the point at (pi,0) wi
- Page 537 and 538: textProperty Name Property Descript
- Page 539 and 540: textProperty Name Property Descript
- Page 541 and 542: Text PropertiesCreateFcnstringCallb
- Page 543 and 544: Text PropertiesExtentposition recta
- Page 545 and 546: Text PropertiesWhen a handle is not
- Page 547 and 548: Text PropertiesPosition[x,y,[z]]Loc
- Page 549 and 550: Text PropertiesCharacterSequenceSym
- Page 551 and 552: Text PropertiesVerticalAlignment to
- Page 553 and 554: titlePurpose2titleAdd title to curr
- Page 555 and 556: trimeshPurpose2trimeshTriangular me
- Page 557: uicontextmenuPurpose2uicontextmenuC
- Page 561 and 562: uicontextmenu Propertiesdefines a d
- Page 563 and 564: uicontextmenu Propertieswhere vecto
- Page 565 and 566: uicontrolString property (even thou
- Page 567 and 568: uicontrolProperty Name Property Des
- Page 569 and 570: uicontrolProperty Name Property Des
- Page 571 and 572: uicontrolObjectHierarchyRootFigureA
- Page 573 and 574: uicontrol Propertiesinterrupting ca
- Page 575 and 576: uicontrol Properties• on - The ui
- Page 577 and 578: uicontrol PropertiesFixedWidthFontN
- Page 579 and 580: uicontrol Propertiesdefined, that c
- Page 581 and 582: uicontrol Properties• Toggle butt
- Page 583 and 584: uicontrol PropertiesFor multiple li
- Page 585 and 586: uicontrol PropertiesSet the Value p
- Page 587 and 588: uigetfileSee Alsouiputfile2-557
- Page 589 and 590: uimenuYou can set and query propert
- Page 591 and 592: uimenuExamplesThis example creates
- Page 593 and 594: uimenu Propertiescallbacks; see the
- Page 595 and 596: uimenu PropertiesForegroundColor Co
- Page 597 and 598: uimenu Propertiescharacter while th
- Page 599 and 600: uiputfilePurpose2uiputfileInteracti
- Page 601 and 602: uiresume, uiwaitPurpose2uiresume, u
- Page 603 and 604: uisetfontPurpose2uisetfontModify fo
- Page 605 and 606: viewPurpose2viewViewpoint specifica
- Page 607 and 608: viewaxes graphics object properties
uicontextmenuWhen the user extend-clicks on the line, the context menu appears, as shownin this figure:ObjectHierarchyRootFigureAxesUicontrolUimenuUicontextmenuUimenuUimenuSee Alsouicontrol, uimenu2-529