12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ectangle propertiesPositionfour-element vecotr [x,y,width,height]Location and size of rectangle. This property specifies the location and size ofthe rectangle in the data units of the axes. The point defined by x, y specifiesone corner of the rectangle, and width and height define the size in units alongthe x and y axes respecitvely.Selectedon | offIs object selected? When this property is on <strong>MATLAB</strong> displays selection handlesif the SelectionHighlight property is also on. You can, for example, define theButtonDownFcn to set this property, allowing users to select the object with themouse.SelectionHighlight {on} | offObjects highlight when selected. When the Selected property is on, <strong>MATLAB</strong>indicates the selected state by drawing handles at each vertex. WhenSelectionHighlight is off, <strong>MATLAB</strong> does not draw the handles.TagstringUser-specified object label. The Tag property provides a means to identifygraphics objects with a user-specified label. This is particularly useful whenconstructing interactive graphics programs that would otherwise need todefine object handles as global variables or pass them as arguments betweencallback routines. You can define Tag as any string.Typestring (read only)Class of graphics object. For rectangle objects, Type is always the string'rectangle'.UIContextMenu handle of a uicontextmenu objectAssociate a context menu with the rectangle. Assign this property the handle ofa uicontextmenu object created in the same figure as the rectangle. Use theuicontextmenu function to create the context menu. <strong>MATLAB</strong> displays thecontext menu whenever you right-click over the rectangle.UserDatamatrixUser-specified data. Any data you want to associate with the rectangle object.<strong>MATLAB</strong> does not use this data, but you can access it using the set and getcommands.2-398

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!