Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
27
Добавлен:
09.02.2015
Размер:
281.6 Кб
Скачать

Information.

Example:

h=figure('ToolBar','none')

ht=uitoolbar(h)

See also get, set, uipushtool, uitoggletool, uimenu, figure.

Reference page in Help browser

doc uitoolbar

Handle Graphics operations

<set> - Set object properties.

SET Set object properties.

SET(H,'PropertyName',PropertyValue) sets the value of the

specified property for the graphics object with handle H.

H can be a vector of handles, in which case SET sets the

properties' values for all the objects.

SET(H,a) where a is a structure whose field names are object

property names, sets the properties named in each field name

with the values contained in the structure.

SET(H,pn,pv) sets the named properties specified in the cell array

of strings pn to the corresponding values in the cell array pv for

all objects specified in H. The cell array pn must be 1-by-N, but

the cell array pv can be M-by-N where M is equal to length(H) so

that each object will be updated with a different set of values

for the list of property names contained in pn.

SET(H,'PropertyName1',PropertyValue1,'PropertyName2',PropertyValue2,...)

sets multiple property values with a single statement. Note that it

is permissible to use property/value string pairs, structures, and

property/value cell array pairs in the same call to SET.

A = SET(H, 'PropertyName')

SET(H,'PropertyName')

returns or displays the possible values for the specified

property of the object with handle H. The returned array is

a cell array of possible value strings or an empty cell array

if the property does not have a finite set of possible string

values.

A = SET(H)

SET(H)

returns or displays all property names and their possible values for

the object with handle H. The return value is a structure whose

field names are the property names of H, and whose values are

cell arrays of possible property values or empty cell arrays.

The default value for an object property can be set on any of an

object's ancestors by setting the PropertyName formed by

concatenating the string 'Default', the object type, and the

property name. For example, to set the default color of text objects

to red in the current figure window:

set(gcf,'DefaultTextColor','red')

Defaults can not be set on a descendant of the object, or on the

object itself - for example, a value for 'DefaultAxesColor' can not

be set on an axes or an axes child, but can be set on a figure or on

the root.

Three strings have special meaning for PropertyValues:

'default' - use default value (from nearest ancestor)

'factory' - use factory default value

'remove' - remove default value.

See also get, reset, delete, gcf, gca, figure, axes.

Overloaded methods:

hgsetget/set

RandStream/set

scribehgobj/set

scribehandle/set

framerect/set

figobj/set

editrect/set

editline/set

celltext/set

cellline/set

axistext/set

axisobj/set

axischild/set

arrowline/set

timer/set

serial/set

avifile/set

audiorecorder/set

audioplayer/set

COM/set

tscollection/set

timeseries/set

instrument/set

phytree/set

BioSeq/set

BioRead/set

BioMap/set

opcond.set

InputOutputModel/set

DynamicSystem/set

daqdevice/set

daqchild/set

drivermanager/set

database/set

cursor/set

qfft/set

idmodel/set

idfrd/set

iddata/set

idnlmodel/set

idnlfun/set

customreg/set

imaqdevice/set

imaqchild/set

iviconfigurationstore/set

icgroup/set

icdevice/set

cgrules/set

cgprecpolyfix/set

cgpreclookupfix/set

cgprecfloat/set

cgprecfix/set

cgprec/set

cgoptim/set

cgoppoint/set

cgcalinput/set

csetinterface/set

cset_userdef/set

cset_stratlattice/set

cset_sobolset/set

cset_simplex/set

cset_pointset/set

cset_pb/set

cset_lhs/set

cset_lattice/set

cset_haltonset/set

cset_grid/set

cset_grdlatt/set

cset_fullfact/set

cset_ccd/set

cset_boxb/set

cgvariable/set

cgvalue/set

cgsymvalue/set

cgsubexpr/set

cgrelexpr/set

cgnormfunction/set

cgnormaliser/set

cgmswitchexpr/set

cgmodexpr/set

cgminmaxexpr/set

cglookuptwo/set

cglookupone/set

cgifexpr/set

cgfuncexpr/set

cgfeature/set

cgdivexpr/set

cgconstant/set

cgclipexpr/set

xregvectorinput/set

xregtextinput/set

xregtable/set

xregstepinput/set

xregrangeinput/set

xregmultigraph2d/set

xreglytinput/set

xreglistctrl/set

xreglegend/set

xregconstinput/set

xregcolorbar/set

xregclicktolinput/set

xregclickinput/set

xregaxesinput/set

texlistbox/set

seltext/set

roller/set

popupinput/set

mvgraph4d/set

mvgraph3d/set

mvgraph2d/set

mvgraph1d/set

multiinput/set

listitemselector/set

axiswrapper/set

axestext/set

xregtoolbarlayout/set

xregtablayout2/set

xregsplitlayout/set

xregsnapsplitlayout/set

xregslidefxlayout/set

xregpaneltitlelayout/set

xregpanellayout/set

xregmultisplitlayout/set

xreglayerlayout/set

xreggridlayout/set

xregframetitlelayout/set

xregframe3dlayout/set

xregflowlayout/set

xregcurtainfxlayout/set

xregcontainer/set

xregcardlayout/set

xregborderlayout/set

xregunispline/set

xregtwostage/set

xregtransient/set

xregrbf/set

xregoptmgr/set

xregnnet/set

xregmulti/set

xregmodel/set

xreglolimot/set

xreglinear/set

xreghybridrbf/set

xregexportmodel/set

xregdynlolimot/set

xregcubic/set

xregarx/set

xreg3xspline/set

term_selector/set

localusermod/set

localtruncps/set

localsurface/set

localpspline/set

localpoly/set

localmulti/set

localmod/set

localbspline/set

localavfit/set

testplansweepsetfilter/set

sweepsetfilter/set

sweepset/set

mdevtestplan/set

cgtablenode/set

cgnormnode/set

cgfeattblnode/set

mpcsimopt/set

mpc/set

opcroot/set

gsref/set

sgmltag/set

rptcp/set

rptsp/set

fdspec/set

fdmeas/set

fdline/set

fdax/set

dataset/set

vrworld/set

vrnode/set

vrfigure/set

wtbo/set

wptree/set

ntree/set

dtree/set

wpartobj/set

smnodesbs25x0/set

Reference page in Help browser

doc set

<get> - Get object properties.

GET Get object properties.

V = GET(H,'PropertyName') returns the value of the specified

property for the graphics object with handle H. If H is a

vector of handles, then get will return an M-by-1 cell array

of values where M is equal to length(H). If 'PropertyName' is

replaced by a 1-by-N or N-by-1 cell array of strings containing

property names, then GET will return an M-by-N cell array of

values.

GET(H) displays all property names and their current values for

the graphics object with handle H.

V = GET(H) where H is a scalar, returns a structure where each

field name is the name of a property of H and each field contains

the value of that property.

V = GET(0, 'Factory')

V = GET(0, 'Factory<ObjectType>')

V = GET(0, 'Factory<ObjectType><PropertyName>')

returns for all object types the factory values of all properties

which have user-settable default values.

V = GET(H, 'Default')

V = GET(H, 'Default<ObjectType>')

V = GET(H, 'Default<ObjectType><PropertyName>')

returns information about default property values (H must be

scalar). 'Default' returns a list of all default property values

currently set on H. 'Default<ObjectType>' returns only the

defaults for properties of <ObjectType> set on H.

'Default<ObjectType><PropertyName>' returns the default value

for the specific property, by searching the defaults set on H

and its ancestors, until that default is found. If no default

value for this property has been set on H or any ancestor of H

up through the root, then the factory value for that property

is returned.

Defaults can not be queried on a descendant of the object, or on the

object itself - for example, a value for 'DefaultAxesColor' can not

be queried on an axes or an axes child, but can be queried on a figure

or on the root.

When using the 'Factory' or 'Default' GET, if PropertyName is

omitted then the return value will take the form of a

structure in which each field name is a property name and the

corresponding value is the value of that property. If

PropertyName is specified then a matrix or string value will be

returned.

See also set, reset, delete, gcf, gca, figure, axes.

Overloaded methods:

hgsetget/get

RandStream/get

scribehgobj/get

scribehandle/get

hgbin/get

framerect/get

figobj/get

celltext/get

cellline/get

axistext/get

axisobj/get

axischild/get

arrowline/get

timer/get

serial/get

memmapfile/get

avifile/get

audiorecorder/get

audioplayer/get

COM/get

tscollection/get

timeseries/get

instrument/get

phytree/get

BioSeq/get

opcond.get

InputOutputModel/get

daqdevice/get

daqchild/get

rsmd/get

resultset/get

drivermanager/get

driver/get

dmd/get

database/get

cursor/get

yahoo/get

reuters/get

rdth/get

kx/get

idc/get

haver/get

fred/get

factset/get

datastream/get

blp/get

bloomberg/get

qfft/get

idmodel/get

idfrd/get

iddata/get

idnlmodel/get

idnlfun/get

customreg/get

imaqdevice/get

imaqchild/get

iviconfigurationstore/get

icgroup/get

icdevice/get

cgrules/get

cgprecpolyfix/get

cgpreclookupfix/get

cgprecfloat/get

cgprecfix/get

cgprec/get

cgoptimstore/get

cgoptim/get

cgoppoint/get

cgfuncmodel/get

cgcalinput/get

csetinterface/get

cset_userdef/get

cset_stratlattice/get

cset_sobolset/get

cset_simplex/get

cset_pointset/get

cset_pb/get

cset_lhs/get

cset_lattice/get

cset_haltonset/get

cset_grid/get

cset_grdlatt/get

cset_fullfact/get

cset_ccd/get

cset_boxb/get

cgvariable/get

cgvalue/get

cgtradeoff/get

cgsymvalue/get

cgsubexpr/get

cgrelexpr/get

cgnormfunction/get

cgnormaliser/get

cgmswitchexpr/get

cgmodexpr/get

cgminmaxexpr/get

cglookuptwo/get

cglookupone/get

cgifexpr/get

cgfuncexpr/get

cgfeature/get

cgdivexpr/get

cgconstvalue/get

cgconstant/get

cgclipexpr/get

xregvectorinput/get

xregtextinput/get

xregtable/get

xregstepinput/get

xregrangeinput/get

xregmultigraph2d/get

xreglytinput/get

xreglistctrl/get

xreglegend/get

xregconstinput/get

xregcolorbar/get

xregclicktolinput/get

xregclickinput/get

xregaxesinput/get

texlistbox/get

seltext/get

roller/get

popupinput/get

mvgraph4d/get

mvgraph3d/get

mvgraph2d/get

mvgraph1d/get

multiinput/get

listitemselector/get

axiswrapper/get

axestext/get

xregtoolbarlayout/get

xregtablayout2/get

xregsplitlayout/get

xregsnapsplitlayout/get

xregslidefxlayout/get

xregpaneltitlelayout/get

xregpanellayout/get

xregmultisplitlayout/get

xreglayerlayout/get

xreggridlayout/get

xregframetitlelayout/get

xregframe3dlayout/get

xregflowlayout/get

xregcurtainfxlayout/get

xregcontainer/get

xregcardlayout/get

xregborderlayout/get

xregunispline/get

xregtwostage/get

xregtransient/get

xregrbf/get

xregoptmgr/get

xregnnet/get

xregmulti/get

xregmodel/get

xreglolimot/get

xreglinear/get

xreginterprbf/get

xreghybridrbf/get

xregexportmodel/get

xregdynlolimot/get

xregcubic/get

xregarx/get

xreg3xspline/get

localusermod/get

localtruncps/get

localsurface/get

localpspline/get

localpoly/get

localmulti/get

localmod/get

localbspline/get

localavfit/get

testplansweepsetfilter/get

sweepsetfilter/get

sweepset/get

cgtablenode/get

cgnormnode/get

cgfeattblnode/get

mpcsimopt/get

mpc/get

opcroot/get

gsref/get

rptcp/get

rptsp/get

fdspec/get

fdmeas/get

fdline/get

fdax/get

dataset/get

vrworld/get

vrnode/get

vrfigure/get

wtbo/get

wptree/get

wdectree/get

ntree/get

laurpoly/get

dtree/get

wpartobj/get

wvtree/get

smpartsbs25x0/get

smpartition/get

smnodesbs25x0/get

Reference page in Help browser

doc get

<reset> - Reset graphics object properties to their defaults.

RESET Reset graphics object properties to their defaults.

RESET(H) resets all properties having factory defaults on the object

identified by handle H to their default values. If h is a figure, MATLAB

does not reset PaperPosition, PaperUnits, Position, Units or WindowStyle.

If h is an axes, MATLAB does not reset Position and Units.

For example,

RESET(GCA) resets the properties of the current axis.

RESET(GCF) resets the properties of the current figure.

See also cla, clf, gca, gcf, hold.

Overloaded methods:

RandStream/reset

vdspdebug/reset

modem.reset

equalizer.reset

channel.reset

adaptalg.reset

mfilt.reset

adaptfilt.reset

qfft/reset

ghsmulti/reset

des_constraints/reset

cset_pointset/reset

cset_lhs/reset

candidateset/reset

xregtwostage/reset

xregrbf/reset

xregmultilin/reset

xregmodel/reset

xreglinear/reset

xreginterprbf/reset

xreghybridrbf/reset

dfilt.reset

ccsdebug/reset

Reference page in Help browser

doc reset

<delete> - Delete object.

DELETE Delete file or graphics object.

DELETE file_name deletes the named file from disk. Wildcards

may be used. For example, DELETE *.p deletes all P-files from the

current directory.

Use the functional form of DELETE, such as DELETE('file') when the

file name is stored in a string.

DELETE checks the status of the RECYCLE option to determine whether

the file should be moved to the recycle bin on PC and Macintosh,

moved to a temporary folder on Unix, or deleted.

DELETE(H) deletes the graphics object with handle H. If the object

is a window, the window is closed and deleted without confirmation.

See also recycle.

Overloaded methods:

handle/delete

scribehgobj/delete

scribehandle/delete

hgbin/delete

editrect/delete

arrowline/delete

serial/delete

ftp/delete

COM/delete

instrument/delete

daqdevice/delete

daqchild/delete

imaqdevice/delete

imaqchild/delete

mctree/delete

cgprojconnections/delete

xregdesign/delete

des_constraints/delete

xregvectorinput/delete

xregtextinput/delete

xregtable/delete

xregstepinput/delete

xregrangeinput/delete

xreglytinput/delete

xreglistctrl/delete

xreglegend/delete

xregconstinput/delete

xregcolorbar/delete

xregclicktolinput/delete

xregclickinput/delete

xregaxesinput/delete

texlistbox/delete

seltext/delete

popupinput/delete

mvgraph4d/delete

mvgraph3d/delete

mvgraph2d/delete

mvgraph1d/delete

multiinput/delete

listitemselector/delete

axiswrapper/delete

axestext/delete

xregcontainer/delete

xregbdrydev/delete

cgproject/delete

opcda/delete

daitem/delete

dagroup/delete

rptcp/delete

rptsp/delete

rptgui/delete

fdspec/delete

fdmeas/delete

fdline/delete

fdax/delete

vrworld/delete

vrnode/delete

Reference page in Help browser

doc delete

<gco> - Get handle to current object.

GCO Get handle to current object.

OBJECT = GCO returns the current object in the current figure.

OBJECT = GCO(FIG) returns the current object in the figure FIG.

The current object is the last object clicked on, excluding

uimenus. If the click was not over a figure child, the

figure itself will be the current object.

The handle of the current object is stored in the figure

property CurrentObject, and can be accessed directly using GET

and SET.

Use GCO in a callback to obtain the handle of the object that

was clicked on. MATLAB updates the current object before

executing each callback, so the current object may change if

one callback is interrupted by another. To obtain the right

handle during a callback, get the current object early, before

any calls to DRAWNOW, WAITFOR, PAUSE, FIGURE, or GETFRAME which

provide opportunities for other callbacks to interrupt.

If no figures exist, GCO returns [].

See also gcbo, gcf, gca, gcbf.

Reference page in Help browser

doc gco

<gcbo> - Get handle to current callback object.

GCBO Get handle to current callback object.

OBJECT = GCBO returns the handle of the object whose callback is

currently executing. This handle is obtained from the root property

'CallbackObject'.

[OBJECT, FIGURE] = GCBO returns the handle of the object whose callback

is currently executing, and the figure containing that object.

During a callback, GCBO can be used to obtain the handle of the object

whose callback is executing, and the figure which contains that object.

If one callback is interrupted by another, the root CallbackObject is

updated to contain the handle of the object whose callback is

interrupting. When the execution of the interrupting callback has

completed, and the execution of the original callback resumes, the root

CallbackObject is restored to contain the handle of the original object.

The root CallbackObject property is read-only, so its value is

guaranteed to be valid at any time during a callback. The root

CurrentFigure property, and the figure CurrentAxes and CurrentObject

properties (returned by GCF, GCA, and GCO respectively) are

user-settable, so they may change during the execution of a callback,

especially if that callback is interrupted by another callback. As a

result, those functions should not be considered interchangeable with

GCBO, because they are not reliable indicators of which object's

callback is executing.

When no callbacks are executing, GCBO returns []. If the current object

gets deleted during callback execution, GCBO returns [].

See also gco, gcf, gca, gcbf.

Reference page in Help browser

doc gcbo

<gcbf> - Get handle to current callback figure.

GCBF Get handle to current callback figure.

FIG = GCBF returns the handle of the figure that contains the object

whose callback is currently executing. If the current callback object

Соседние файлы в папке Библиотеки Matlab